Unrecognized option -startup[message #635459] | Tue, 26 October 2010 21:37 | Dave Dick Messages: 5 Registered: October 2010 |
| 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 #635466 is a reply to message #635459] | Tue, 26 October 2010 23:02 | Russell Bateman Messages: 3798 Registered: July 2009 Location: Provo, Utah, USA |
|
| On 2010.10.26 15:38, Dave Dick wrote: > 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 You should be using a -vm option in your eclipse.ini (regardless of whether the working platform doesn't seem to need it) and you should be pointing this option to a download of whatever JDK (not mere JRE) you want, in your case, 1.6.0 build 22. |
|
Re: Unrecognized option -startup[message #635470 is a reply to message #635466] | Tue, 26 October 2010 23:46 | Dave Dick Messages: 5 Registered: October 2010 |
| Trying to put in '-vm' line DID NOT CHANGE ANYTHING. There are many different instances of 'java,exe' to choose from, so I tried them all one at a time. No joy, it still breaks. Dave |
|
Re: Unrecognized option -startup[message #635475 is a reply to message #635470] | Wed, 27 October 2010 00:06 | Russell Bateman Messages: 3798 Registered: July 2009 Location: Provo, Utah, USA |
|
| On 2010.10.26 17:46, Dave Dick wrote: > Trying to put in '-vm' line DID NOT CHANGE ANYTHING. > > There are many different instances of 'java,exe' to choose from, so I > tried them all one at a time. No joy, it still breaks. > > Dave Post the eclipse.ini from the broken one here? Made sure you followed http://wiki.eclipse.org/Eclipse.ini? (Forgive me: I don't know how far into this you are, so I may be asking stupid questions you've already answered.) |
|
Re: Unrecognized option -startup[message #635476 is a reply to message #635470] | Wed, 27 October 2010 00:27 | Dave Dick Messages: 5 Registered: October 2010 |
| Both machines have identical files (checked by eye ball): -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36 x_v20100810 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Xms40m -Xmx384m Dave |
|
Re: Unrecognized option -startup[message #635566 is a reply to message #635476] | Wed, 27 October 2010 11:01 | Russell Bateman Messages: 3798 Registered: July 2009 Location: Provo, Utah, USA |
|
| On 2010.10.26 18:27, Dave Dick wrote: > Both machines have identical files (checked by eye ball): > > -startup > plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar > --launcher.library > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36 x_v20100810 > -showsplash > org.eclipse.platform > --launcher.XXMaxPermSize > 256m > --launcher.defaultAction > openFile > -vmargs > -Xms40m > -Xmx384m > > Dave I see you are not pointing to your JDK. Best Eclipse practice would have you do so, even on the machine where it seems to work. My suggestion would be: 1) Download and explode a copy of the latest Sun JDK somewhere privately. (Not a mere JRE, but a JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk6 -jsp-136632.html) 2) Add to your eclipse.ini the two following lines (with a path appropriate to where you downloaded and exploded the JDK): .. -vm /home/dave/dev/jdk1.6.0_21/bin/java -vmargs .. |
|
Re: Unrecognized option -startup[message #635583 is a reply to message #635566] | Wed, 27 October 2010 12:29 | Dave Dick Messages: 5 Registered: October 2010 |
| 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 |
|
Re: Unrecognized option -startup[message #635591 is a reply to message #635583] | Wed, 27 October 2010 12:40 | Russell Bateman Messages: 3798 Registered: July 2009 Location: Provo, Utah, USA |
|
| 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 17:37 | Eric Rizzo Messages: 3071 Registered: July 2009 |
| 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 |
|
Re: Unrecognized option -startup[message #636222 is a reply to message #635685] | Fri, 29 October 2010 18:00 | Dave Dick Messages: 5 Registered: October 2010 |
| Problem is solved, and was NOT JAVA related. I had an older project created with Ganymede on Windows in the workspace. Its run configuration had a set of arguments that began '-startup ' and then a file name (I forgot the exact contents since I got rid of it. This run configuration was somehow used in place of the right one for Helios and LINUX. Don't know if this is an incompatibility between Windows an LINUX versions of Eclipse, or just old project or I didn't add the project into the current Eclipse correctly. Dave |
|
Re: Unrecognized option -startup[message #636576 is a reply to message #635459] | Tue, 02 November 2010 01:28 | No real name Messages: 1 Registered: November 2010 |
| Hi Dave, I had this problem too, and others I found the tips here very useful cheers! |
|