Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'set PATH for command-line apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
set PATH for command-line apps
Authored by: hayne on Dec 13, '05 04:18:12PM
Changing the symbolic link is the *only* way to get command-line executed apps like Tomcat, or something you wrote, to use the proper JVM.
You clearly didn't read the article that I linked to - since that explained in detail how to change the PATH variable to get whichever version of Java you want. In fact you didn't even seem to fully read my comment above since I mentioned changing the execution PATH there.

[ Reply to This | # ]
set PATH for command-line apps
Authored by: sjk on Dec 13, '05 08:20:31PM

Any suggestion how to change the JVM version for a Java app launched from a preference pane (EyeHome, to be specific)?



[ Reply to This | # ]
apps launched from Preference panes
Authored by: hayne on Dec 14, '05 09:25:36AM

I have no experience with this, but I would guess that a Java app launched from a preference pane would be supplied in the form of an application bundle and thus should be affected by the settings of the Java Preferences utility. Of course, the developer of that Java app may have specified some Java version (in the Info.plist I think) that results in your settings being ineffective.



[ Reply to This | # ]
apps launched from Preference panes
Authored by: sjk on Dec 16, '05 01:30:44PM
Setting the version in Java Preferences didn't work since it's hardcoded in the Info.plist for the app bundle (thanks for the tip to check that), which was trivial to change:

% pwd
/Library/PreferencePanes/EyeHome.prefPane/Contents/Resources/EyeHome.app/Contents

% diff -C1 'Info copy.plist' Info.plist
*** Info copy.plist     Mon Nov 21 14:12:38 2005
--- Info.plist  Fri Dec 16 11:14:54 2005
***************
*** 33,35 ****
                JVMVersion
!               1.4*
                MainClass
--- 33,35 ----
                JVMVersion
!               1.5*
                MainClass
EyeHome launches okay but I haven't tested it yet.

[ Reply to This | # ]