Can't override invalid -vm argument for eclipse startup on OS X [message #257847] |
Sun, 08 June 2008 17:43  |
Eclipse User |
|
|
|
Originally posted by: brian.navelplace.com
This appears to be a problem specific to OS X. I'm running Leopard, and
have a dangerous combination of Unix literacy and Mac illiteracy. :) I
am using eclipse-jee-europa-winter-macosx-carbon.tar.gz.
The problem started with me monkeying with the symlinks for the Current
and CurrentJDK directories. I did not know until trying it that Eclipse
would not run on 1.6 under OS X.
So I have restored the symlinks thusly:
brian-deacons-imac:Versions Brian$ ls -l
/System/Library/Frameworks/JavaVM.framework/Versions/
total 56
lrwxr-xr-x 1 root wheel 5 May 28 21:46 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Jan 13 21:12 1.3.1
lrwxr-xr-x 1 root wheel 5 Mar 3 00:01 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 May 28 21:46 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 Mar 3 00:01 1.4.2
lrwxr-xr-x 1 root wheel 5 Mar 3 00:01 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Mar 3 00:01 1.5.0
lrwxr-xr-x 1 root wheel 5 May 28 21:46 1.6 -> 1.6.0
drwxr-xr-x 9 root wheel 306 Jun 8 07:56 1.6.0
drwxr-xr-x 8 root wheel 272 May 28 21:46 A
lrwxr-xr-x 1 root wheel 3 Jun 8 08:15 Current -> 1.5
lrwxr-xr-x 1 root wheel 3 Jun 8 08:15 CurrentJDK -> 1.5
I had wanted my bash-invoked maven compiles to use 1.6, so I had kept the
settings pointed to 1.6, and tried modifying the -vm arguments
specifically for eclipse by alternately editing
eclipse/configuration/config.ini and
eclipse/Eclipse.app/Contents/MacOS/eclipse.ini.
I must have fat-fingered something at some point, because after no success
in getting eclipse to run, and restoring the machine to JDK1.5, eclipse
now says the following:
2008-06-08 14:28:40.275 eclipse[1056:10b] Cannot find executable for
CFBundle 0x1138d0 </System/Library/Frameworks/JavaVM.framework> (not
loaded)
And if I invoke eclipse with -debug, I see the same bogus value for vm:
-vm /System/Library/Frameworks/JavaVM.framework
Trying a command line override to some sane value seems to be completely
ignored.
/eclipse -vm /System/Library/Frameworks/JavaVM.framework/Home/bin/java
[get the same error, and the vm value is not changed to what I put on the
command line]
And more puzzling, this behavior survived a complete delete of the eclipse
installation, and a re-unpacking of the tar.gz.
So somewhere is hiding a configuration telling eclipse to use this bogus
value for vm, but I can't seem to locate it. (Somewhere in ~/Library or
/System/Library?)
Other things I have tried is fiddling with the JDK version with Java
Preferences (I think that's the first thing I did, but it didn't change my
bash command-line behavior.) And also different values for JAVA_HOME and
PATH in my ~/.profile. (Don't THINK eclipse pays attention to those
things when double-clicked from finder.)
Any ideas?
Thanks!
|
|
|
Re: Can't override invalid -vm argument for eclipse startup on OS X [message #257851 is a reply to message #257847] |
Sun, 08 June 2008 21:29   |
Eclipse User |
|
|
|
Originally posted by: codeslave.ca.ibm.com
I don't use Mac so I'm not sure wtf is up with your strangely cached
bogus value...
But as to running with multiple JVMs, try starting Eclipse with 1.5 (-vm
/path/to/1.5), but using multiple JVMs as part of your workspace
settings (Window* > Preferences > Java > Installed JREs). Then, specific
projects can be set to use ONLY the 1.6 JVM instead of the default 1.5.
* The "Window" menu might not be under "Window" on Mac... it's the
topmost menu item between Run and Help. I vaguely recall seeing that on
Macs the menu has a different name, though for the life of me can't
image why.
You might also look for a .eclipse file/folder in your home dir, with
other overriding settings.
See also:
http://wiki.eclipse.org/IRC_FAQ#Installation.2C_Startup_and_ Runtime
http://wiki.eclipse.org/IRC_FAQ#How_do_I_start_Eclipse.3F
Nick
Brian Deacon wrote:
> This appears to be a problem specific to OS X. I'm running Leopard, and
> have a dangerous combination of Unix literacy and Mac illiteracy. :) I
> am using eclipse-jee-europa-winter-macosx-carbon.tar.gz.
> The problem started with me monkeying with the symlinks for the Current
> and CurrentJDK directories. I did not know until trying it that Eclipse
> would not run on 1.6 under OS X.
>
> So I have restored the symlinks thusly:
> brian-deacons-imac:Versions Brian$ ls -l
> /System/Library/Frameworks/JavaVM.framework/Versions/
> total 56
> lrwxr-xr-x 1 root wheel 5 May 28 21:46 1.3 -> 1.3.1
> drwxr-xr-x 3 root wheel 102 Jan 13 21:12 1.3.1
> lrwxr-xr-x 1 root wheel 5 Mar 3 00:01 1.4 -> 1.4.2
> lrwxr-xr-x 1 root wheel 3 May 28 21:46 1.4.1 -> 1.4
> drwxr-xr-x 8 root wheel 272 Mar 3 00:01 1.4.2
> lrwxr-xr-x 1 root wheel 5 Mar 3 00:01 1.5 -> 1.5.0
> drwxr-xr-x 8 root wheel 272 Mar 3 00:01 1.5.0
> lrwxr-xr-x 1 root wheel 5 May 28 21:46 1.6 -> 1.6.0
> drwxr-xr-x 9 root wheel 306 Jun 8 07:56 1.6.0
> drwxr-xr-x 8 root wheel 272 May 28 21:46 A
> lrwxr-xr-x 1 root wheel 3 Jun 8 08:15 Current -> 1.5
> lrwxr-xr-x 1 root wheel 3 Jun 8 08:15 CurrentJDK -> 1.5
>
> I had wanted my bash-invoked maven compiles to use 1.6, so I had kept
> the settings pointed to 1.6, and tried modifying the -vm arguments
> specifically for eclipse by alternately editing
> eclipse/configuration/config.ini and
> eclipse/Eclipse.app/Contents/MacOS/eclipse.ini.
>
> I must have fat-fingered something at some point, because after no
> success in getting eclipse to run, and restoring the machine to JDK1.5,
> eclipse now says the following:
> 2008-06-08 14:28:40.275 eclipse[1056:10b] Cannot find executable for
> CFBundle 0x1138d0 </System/Library/Frameworks/JavaVM.framework> (not
> loaded)
>
> And if I invoke eclipse with -debug, I see the same bogus value for vm:
> -vm /System/Library/Frameworks/JavaVM.framework
>
> Trying a command line override to some sane value seems to be completely
> ignored.
>
> /eclipse -vm /System/Library/Frameworks/JavaVM.framework/Home/bin/java
> [get the same error, and the vm value is not changed to what I put on
> the command line]
>
> And more puzzling, this behavior survived a complete delete of the
> eclipse installation, and a re-unpacking of the tar.gz.
>
> So somewhere is hiding a configuration telling eclipse to use this bogus
> value for vm, but I can't seem to locate it. (Somewhere in ~/Library or
> /System/Library?)
>
> Other things I have tried is fiddling with the JDK version with Java
> Preferences (I think that's the first thing I did, but it didn't change
> my bash command-line behavior.) And also different values for JAVA_HOME
> and PATH in my ~/.profile. (Don't THINK eclipse pays attention to those
> things when double-clicked from finder.)
|
|
|
Re: Can't override invalid -vm argument for eclipse startup on OS X [message #257909 is a reply to message #257851] |
Mon, 09 June 2008 13:10  |
Eclipse User |
|
|
|
Originally posted by: brian.navelplace.com
Thanks, Nick.
Looks like it had more to do with OS X than eclipse. Hunted down the JDK
6 Update from apple support and reinstalled it and everything is happy
again. Guessing it had a lot to do with the update package just putting
everything back the way it was rather than anything to do with how eclipse
was configured.
Brian
|
|
|
Powered by
FUDForum. Page generated in 0.08553 seconds