Re: Java 5 and WO problem
Re: Java 5 and WO problem
- Subject: Re: Java 5 and WO problem
- From: Greg Guerin <email@hidden>
- Date: Fri, 12 May 2006 08:48:10 -0700
Dave Stewart wrote:
> I did
>notice something on the java-dev list about the bootclasspath being
>needed for this to work, so I tried this next:
>
>- added the following line to the executable itself through "Get
>Info" as "Arguments to be passed on launch":
>-Xbootclasspath:"/System/Library/Frameworks/JavaVM.framework/Versions/
>1.4.2/Classes/classes.jar"
The posting on Java-dev says that the bootclasspath should be specified
during compilation, using the -bootclasspath option to 'javac'. That's a
completely different thing than specifying -Xbootclasspath for the
executable. The latter is almost certainly fatal, as it tells the 1.5 JVM
to use a bootclasspath of 1.4's classes.jar, and isn't even the complete
1.4 bootable classpath, either.
For an explanation of -bootclasspath for compilation, read 'man javac', in
the section on cross-compiling and target-compiling. Also refer to the
original Java-dev message thread:
<http://lists.apple.com/archives/java-dev/2006/Apr/msg00436.html>
To summarize, you're going to need BOTH a -bootclasspath option for the
compiler, AND a change to the executable. If you only change the
compilation, then your code will be compiled for 1.4 but still be run under
1.5.
To get it to RUN under 1.4, you're going to have to point your executable
at 1.4's 'java' command, or whatever is appropriate for executing a WO
project. I'm guessing at this because I don't have the WO components
installed, so I can't tell you exactly what to change.
Looking at your log output, I see this:
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -
...
The unadorned 'java' command probably needs to be changed to point at 1.4's
java command:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Commands/java
And you also need to remove the '-Xbootclasspath ...' option, since 1.4
knows its own default boot classpath already. It would be fine if it were
complete, but since it's incomplete it's not.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden