Re: Application Starting Problems Fixed - Java (5.0 and 1.4.2.) Related

Hsu <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
There are a number of ways around this...

1. Specify the full path to the java (or javac) executable (e.g. "/ 
System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/ 
java" instead of "java" (which is implicitly "/usr/bin/java").

2. Specify "-source 1.4 -target 1.4" when using javac (and,  
optionally, use the -bootclasspath flag as well).

3. Install the 1.6 Developer Preview, which allows changing of the  
commandline "java" to be controlled by Java Preferences.

Karl


On Sep 8, 2006, at 11:15 AM, Tony Hoffman wrote:

> I did what several people suggested, which was configure my  
> development box to compile on Java 1.4.2 (or what is set up on my  
> deployment box). I had Java 5 on my development machine, and  
> although I could set the Java compiler in XCode to 1.4* this had  
> (obviously) no effect on my build through the command line.
>
> I can go on record as saying that the Java preferences window in  
> the Utilities folder that comes with Java 5.0 (setting both options  
> down to 1.4.2) has no impact on the Terminal's build. Resetting the  
> JavaVM framework through the Terminal ended up being a lot harder  
> than I hoped it would be (I'm not a Unix guy), so I reinstalled  
> Tiger and restarted the Terminal, did a Java check (Java -version),  
> confirmed the 1.4.2, and everything went swimmingly from there.
>
> Thanks to everyone who chimed in on this. Here's hoping someone  
> finds this next time they try and install on a Development box with  
> 1.4.2 from a deployment box on Java 5.0. I have a feeling that's  
> going to happen at least a couple more times.
>
>
> Tony Hoffman
> Dog Eat Dog Advertising, Inc.
> 67 West Chippewa Street, Suite 100
> Buffalo, New York 14202-2010
> Phone: 716-856-0142 / Fax: 716-856-0176
> www.superfetch.com
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev

--

Meandering to a different drummer.

Homepage:
      http://homepage.mac.com/khsu/index.html

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.