Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse isn't using the Java VM I specify.
Eclipse isn't using the Java VM I specify. [message #480693] Tue, 18 August 2009 04:57 Go to next message
Eclipse UserFriend
Originally posted by: Eclipse.pedriana.com

Eclipse isn't using the Java VM I specify. Is there a way to diagnose this
so I can tell what about the steps below Eclipse doesn't like?

I ran the JDK installer from Sun, and it put it at:
/home/me/jdk1.6.0_16

I made a /home/me/EclipseWorkspace/eclipse.ini like so:
-vm
/home/me/jdk1.6.0_16/bin/java
-vmargs
-Xms40m
-Xmx256m

Then I ran the following in my bash terminal:
ECLIPSE_HOME=/home/me/EclipseWorkspace
export ECLIPSE_HOME
eclipse

The terminal prints the following and starts Eclipse:
searching for compatible vm...
testing /usr/lib/jvm/java-gcj...found

And Eclipse doesn't use the java at /home/me/jdk1.6.0_16/bin/java. The
Eclipse Configuration Details says:
. . .
eclipse.vm=/usr/lib/jvm/java-gcj/bin/java
. . .

I have verified that all file paths I made and specified are correct,
including case sensitivity. I'm at a loss for how to diagnose this. My
best guess is that it somehow isn't using or seeing my ECLIPSE_HOME env
variable. I wonder if there's a way to specify the eclipse.ini on the
Eclipse command line.

Thanks.
Re: Eclipse isn't using the Java VM I specify. [message #480705 is a reply to message #480693] Tue, 18 August 2009 05:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Eclipse.pedriana.com

I have more information. I made the default eclipse.ini writable and added
the given lines to it:
-vm
/home/me/jdk1.6.0_16/bin/java

And it still isn't using the given VM. I'm confused because this seems
from the documentation to to be exactly what I need to do. Maybe the
eclipse.ini -vm feature is only available with Eclipse 3.3 and later? I
have Eclipse 3.2 which comes with Kubuntu.

Then I found that I could specify a vm directly on the command line with:
eclipse -vm /home/me/jdk1.6.0_16/bin/java

Well that worked and it results in the usage of the given VM.
Re: Eclipse isn't using the Java VM I specify. [message #480880 is a reply to message #480705] Tue, 18 August 2009 14:15 Go to previous message
Eclipse UserFriend
Paul Pedriana wrote:
> I have more information. I made the default eclipse.ini writable and
> added the given lines to it:
> -vm
> /home/me/jdk1.6.0_16/bin/java
>
> And it still isn't using the given VM. I'm confused because this seems
> from the documentation to to be exactly what I need to do. Maybe the
> eclipse.ini -vm feature is only available with Eclipse 3.3 and later? I
> have Eclipse 3.2 which comes with Kubuntu.

You're right, adding that to eclipse.ini should work. However, since
you're using a very old version of Eclipse my first recommendation is to
get the latest version (Galileo/3.5) from www.eclipse.org

Hope this helps,
Eric
Previous Topic:Importing 3 parties libraries
Next Topic:WSDL and AXIS Dev with Eclipse
Goto Forum:
  


Current Time: Mon Jul 28 04:46:53 EDT 2025

Powered by FUDForum. Page generated in 0.10050 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top