Posted: Tue Jul 06, 2004 6:28 am Post subject: Trouble with Java / xmerge / XSLT
Sorry for the cross-post, but it's not quite clear if it's for the users or developers list.
I want to use the XML import/export feature that uses Java (xmerge/XSLT I guess) on the OOo 1.1.2 build.
OpenOffice aborts with a fatal error message whenever I try this. In the console log, I saw this message:
javaloader - could not init javaloader cause of javaloader error - could not find class com/sun/star/comp/loader/JavaLoader
Just a CLASSPATH problem I thought, and after lots and lots of tweaking I found the javarc file in the "users" directory (At ~/Library/Preferences/OpenOffice.org1.1.2/user/config/javarc).
This file seems to be used to set up the classpath, and it was totally messed up, i.e. incorrect entries. It was configured to use Java 1.3.1 instead of 1.4.2, it contained wrong path references to "/Volumes/perdition" , non-existent .jar files in program/classes were mentioned, and others were missing.
After tweaking that file a bit it seems that OpenOffice can now find this JavaLoader class, but now I get a different error message:
javaloader - could not init javaloader cause of javaloader error - no mapping from java to C++
Does anyone have any idea how I can fix this? It works well on a Linux system, I just tried it there.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Wed Jul 07, 2004 9:47 am Post subject:
The javarc problem with the paths is bizarre as the installer should be putting the correct javarc onto the system. "perdition" is the name of the build partition for the release which is obviously being embedded into the files or hardcoded somewhere. I'll look into that.
The Java bridges and the like weren't really tested during the release process and may have some issues. It sounds like the Java loader itself is broken from that error message. Best bet is to file a bug against OOo in its IssueZilla system since it'll require a devleoper to actually go in and look at the class loaders and the Java language bindings perhaps.
You may want to look around to see if anyone's gotten JDBC working (anyone?). That'll at least ensure that the JVM code for executing java classes is functional. I don't have a setup myself where I can do JDBC testing.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum