Unrecognized option -startup [message #635459] |
Tue, 26 October 2010 17:37  |
Eclipse User |
|
|
|
Running LINUX Ubuntu 10.10, trying to test an Eclipse plugin.
I get: "Unrecognized option: -startup \n Could not create the Java virtual machine."
Interestingly enough, I also have Ubuntu on my laptop where EVERYTHING WORKS.
There is NO difference between the eclipse.ini files on either machine.
There is a difference reported for "java -version"
Laptop (where things work):
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
Desktop (where Run As Eclipse Application fails):
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
So what do I have to do? Back down to older release of Java?
Thanks in advance for your help.
Dave
|
|
|
|
|
|
|
|
|
Re: Unrecognized option -startup [message #635591 is a reply to message #635583] |
Wed, 27 October 2010 08:40   |
Eclipse User |
|
|
|
On 2010.10.27 6:29, Dave Dick wrote:
> I already had one for jdk1.6.0-22 down and unpacked so I tried it - NO
> JOY,.
>
> Then what the hey, in for a nickel in for a buck, I downloaded and
> expanded jdk1.6.021 - it no workee either.
>
> Same errors: "Unrecognized option: -startup \n Could not create the Java
> virtual machine."
> Eclipse.ini reads:
> ..
> openFile
> -vm
> /home/dave/Downloads/jdk1.6.0_21/bin/java
> -vmargs
> ..
>
> (I know Eclipse processes this file since in a third (accidental)
> attempt, I misspelled the command line and Eclipse refused to start up.
> Spelling it properly and Eclipse comes up as I expect it to, just won't
> Run As Eclipse Application.
>
> BTW, Eclipse will handle a Java app, just NOT an Eclipse plugin. I also
> forgot to mention this is Eclipse Helios - Version: 3.6.1 \n Build id:
> M20100909-0800
> (Ubuntu software center downloads Ganymede, and it too failed.)
>
> Dave
Yeah, I haven't attempted to use build 22 which is in beta (?)
In the case of Eclipse, it's never a good idea to use what Ubuntu
Software Center offers and it's too easy to download the right stuff
from eclipse.org anyway.
I'm stumped...
1) You've verified that /home/dave/Downloads/jdk1.6.0_21/bin/java exists
and is executable?
2) You're not mixing a 64-bit Eclipse with a 32-bit JDK by happenstance?
Here's my __working__ Helios JEE eclipse.ini:
russ@tuonela:~/dev/eclipse-64/helios-jee-eclipse> cat eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1. R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/home/russ/dev/jdk-64/jdk1.6.0_21/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
|
|
|
Re: Unrecognized option -startup [message #635685 is a reply to message #635583] |
Wed, 27 October 2010 13:37   |
Eclipse User |
|
|
|
On 10/27/10 8:29 AM, Dave Dick wrote:
> I already had one for jdk1.6.0-22 down and unpacked so I tried it - NO
> JOY,.
>
> Then what the hey, in for a nickel in for a buck, I downloaded and
> expanded jdk1.6.021 - it no workee either.
>
> Same errors: "Unrecognized option: -startup \n Could not create the Java
> virtual machine."
> Eclipse.ini reads:
> ..
> openFile
> -vm
> /home/dave/Downloads/jdk1.6.0_21/bin/java
> -vmargs
> ..
>
> (I know Eclipse processes this file since in a third (accidental)
> attempt, I misspelled the command line and Eclipse refused to start up.
> Spelling it properly and Eclipse comes up as I expect it to, just won't
> Run As Eclipse Application.
>
> BTW, Eclipse will handle a Java app, just NOT an Eclipse plugin. I also
> forgot to mention this is Eclipse Helios - Version: 3.6.1 \n Build id:
> M20100909-0800
> (Ubuntu software center downloads Ganymede, and it too failed.)
Setting vm params in the eclipse.ini file only controls the JVM that
Eclipse itself runs in, it DOES NOT affect apps launched from inside
Eclipse. It sounds like you're talking about the latter. If so, you need
to adjust settings in the Launch Configuration that is used to run your
app (including an Eclipse instance that hosts plugin(s) you are developing).
Launching is also influenced by the Installed JREs section of the
Preferences; make sure that JRE that's being used in your Launch is the
one you intend.
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10583 seconds