Re: Switching version of Java for appserver user

2009-08-26 Thread Mike Schrag
i would check the JAVA_HOME env variable and also ~/Library/ Preferences/com.apple.java.util.prefs for the user that is running the app On Aug 25, 2009, at 8:50 PM, Mr. Frank Cobia wrote: Do you have any other idea of what value may affect it? Or should I just stick with changing the link?

Re: Switching version of Java for appserver user

2009-08-26 Thread Mr. Frank Cobia
Thanks for the help. I have not tested it yet, but I had been wondering if there was a way to set those variables in the build. Frank On Aug 25, 2009, at 11:21 PM, Chuck Hill wrote: On Aug 25, 2009, at 5:50 PM, Mr. Frank Cobia wrote: Do you have any other idea of what value may affect

Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I am currently having trouble deploying an application under JavaMonitor because of incompatible version errors on a class file. When I launch the app as admin, the app launches fine. I finally traced the problem to the fact that when the appserver user invokes java it is 1.5 but when

Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I figured out that my problem is that /System/Library/Frameworks/ JavaVM.framework/Versions/Current is linked to /System/Library/ Frameworks/JavaVM.framework/Versions/A. Somehow the java in A can change depending on which user invokes it. I have no clue how this works, but I changed Current

Re: Switching version of Java for appserver user

2009-08-25 Thread Mike Schrag
There are several factors that go into determining which VM runs in OS X ... It's not just a matter of the symlink. Your java preference settings can change which version it uses also, the Info.plist of a launcher can change it, etc. So the actual symlink for A is the same, but the java

Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I do see that there is an entry in the Info.plist of my app that says 1.5+. Is there somewhere in Eclipse/WOLips I can change that? Frank On Aug 25, 2009, at 3:13 PM, Mike Schrag wrote: There are several factors that go into determining which VM runs in OS X ... It's not just a matter of

Re: Switching version of Java for appserver user

2009-08-25 Thread Mike Schrag
if this is just a .woa, I'm pretty sure WO doesn't care about that value ... you can manually change it and verify that. On Aug 25, 2009, at 3:35 PM, Mr. Frank Cobia wrote: I do see that there is an entry in the Info.plist of my app that says 1.5+. Is there somewhere in Eclipse/WOLips I can

Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
Do you have any other idea of what value may affect it? Or should I just stick with changing the link? I did notice that the help for the java executable say that you can do -version:version but I have not had any luck figuring out what value to put. Everything I tried just ends up with it

Re: Switching version of Java for appserver user

2009-08-25 Thread Chuck Hill
On Aug 25, 2009, at 5:50 PM, Mr. Frank Cobia wrote: Do you have any other idea of what value may affect it? Or should I just stick with changing the link? In the classpath file of the app, you will see # JVM == java Changing that to # JVM ==