Hi,

It maybe because your current env is setup using default Fedora Core
Java (GNU Java), instead of the Sun JVM (even though you install it).
To check you are using Sun Java (instead of GNU Java), just open
terminal / console / etc and type "java -version"

If by any case it is GNU Java, you can modify your env to use Sun JVM by:
(note: It is tested on my Fedora Core 6)

1) Download Sun Java RPM version or tar.gz version
2) install the RPM will end up in eg: /usr/java/jre1.5.0_xx
3) type the following command
   a) /usr/sbin/alternatives --install /usr/bin/java java
/usr/java/jre1.5.0_xx/bin/java 2
   b) /usr/sbin/alternatives --config java
Note: the point 3a is all in single line.
4) when asked to choose which java, just press 2 and enter
5) reboot if neccesarry
6) you are done, now fedora will use Sun Java
7) try type "java -version" in the terminal / console, make sure it is Sun Java

Note: if you want to go back to GNU Java just type
/usr/sbin/alternatives --config java, and press 1

If the above step still not working please do the following as well
1) Edit / create new file in /etc/profile.d/java.sh
2) inside that java.sh put the following
export J2RE_HOME=/opt/jre1.5.0_xx
export PATH=$J2RE_HOME/bin:$PATH
3) type the following command "source /etc/profile.d/java"
4) to make sure it is correct type "which java" which should indicate
eg: /opt/jre1.5.0_xx/bin/java

HINT: you could easily install multiple java version eg: 1.5 and 1.6 by
using the following ways:

/usr/sbin/alternatives --install /usr/bin/java java
/usr/java/jre1.5.0_xx/bin/java 1509 (for 1.5.0_xx)

/usr/sbin/alternatives --install /usr/bin/java java
/usr/java/jre1.6.0_xx/bin/java 1600 (for 1.6.0_xx)

and to choose Java version just type the following
/usr/sbin/alternatives --config java (press the number for Java you like to use)

Cheers
Tonny Kohar
-- 
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to