Make sure that you have Sun's java and tool chain in your path before
the GNU Java and tool chain.
You can do that in /etc/profile (I keep this under RCS control) with the
following:
pathmunge /opt/jdk1.5.0_08/bin/java
I also add JAVA_HOME and JRE_HOEE environment variables for Tomcat.
If you do not want to do this, you can specify the option on the command
line.
From the documentation under Eclipse runtine options:
-vm <path to java executable> (Executable, Main)
when passed to the Eclipse executable, this option is used to locate the
Java VM to use to run Eclipse. It must be the full file system path to
an appropriate Java executable. If not specified, the Eclipse executable
uses a search algorithm to locate a suitable VM. In any event, the
executable then passes the path to the actual VM used to Java Main using
the -vm argument. Java Main then stores this value in eclipse.vm
I prefer changing the system path. That way all programs will run under
the same Java VM.
In addition, you might want to link /opt/jdk1.5.0_08 to /opt/java and use:
pathmunge /opt/java
instead.
This will allow easy system-wide modification of the Java VM just by
changing links. You can test other virtual machines just by pointing
the link at a different distribution.
HTH
/mde/
just my two cents . . . .
fedora-list-request@xxxxxxxxxx wrote:
On 9/5/06, Andrew Overholt <overholt@xxxxxxxxxx> wrote:
Are you perhaps using a 32-bit Sun download?
No, it is the x86_64 bit version for Linux:
$ java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_08-b03, mixed mode)
$ /usr/sbin/alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 2 /opt/jdk1.5.0_08/bin/java