[Open Office] JRE register component still broken

jim jim at amarooas.com.au
Fri Jun 23 21:07:58 EDT 2006


On Fri, Jun 23, 2006 at 07:44:48PM +0200, Andreas Radke wrote:
> when i remove j2re and j2sdk from the system "javadoc" from j2sdk is
> missing:

It may be enough for you to make a symbolic link such that 

javadoc -> /usr/bin/gjdoc

If you use java-gcj-compat as suggested by VMiklos, it does almost the same thing: 
/usr/bin/javadoc -> /etc/alternatives/javadoc
/etc/alternatives/javadoc -> /usr/bin/gjdoc

> It's strange that you recommend to remove sun java. apache-ant depends
> on it. So I see no way to build it without j2re/j2sdk packages.

It must be possible because I build vanilla OOo on GNU/Linux SPARC with
apache-ant-1.6.5 using only gcc/gcj which is built from vanilla gcc sources
at gcc.gnu.org. This needs the patches in cws_src680_maho1 to remove some
hard-coded java commands.

> Jim, what you mean as I'm only a packager/no coder?

Sorry if I missed this before - which Linux distribution are you using? Some
distributions provide different methods to handle gcj. It will be easier to
use what is recommended for your distribution, again I think that is the
message from VMiklos comments.

But it also might be useful to see the java properties as these might be
related to the error message. You would need to put that code in a file then
compile and run it, put the full path for the required javac and java
commands:

/path/to/javac GetJVMInfo.java
or
/path/to/gcj -C GetJVMInfo.java

then
/path/to/java GetJVMInfo
or
/path/to/gij GetJVMInfo

Jim

> What values do you get for running this
> GetJVMInfo.java?
> 
> class GetJVMInfo
> {
>   public static void main(String [] args)
>    {
>     System.out.println("java.version=
> "+System.getProperty("java.version"));
> System.out.println("java.vendor=  "+System.getProperty("java.vendor"));
> System.out.println("java.home=    "+System.getProperty("java.home")); }
> }
> 


More information about the Openoffice mailing list