dcsimg
Running JDK1.3.1 on Linux 7.0
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lou_Rosas
Posted On:   Saturday, October 6, 2001 12:03 PM

I Installed the Sun JDK 1.3.1 onto my Linux machine. I modified my path and class path correctly. I installed the JDK at the root level (/), not at the /usr/local/bin level. I was noticing that I could not get the Swing classes to build. So, I did a: java -version I found out I was using: Kaffe JVM and the version of java it was using was 1.1 I tried tweeking the path to where it would recognize the JDK 1.3.1 before the Kaffe. I tried modifying the Kaffe scripts related to java and javac. I even tried to modify the .java_wrapper script. But everytime I try to compile a java program by: javac I always get the same error: In   More>>

I Installed the Sun JDK 1.3.1 onto my Linux machine. I modified my path and class path correctly. I installed the JDK at the root level (/), not at the /usr/local/bin level. I was noticing that I could not get the Swing classes to build. So, I did a:

			
java -version

I found out I was using:
			
Kaffe JVM and the version of java it was using was 1.1

I tried tweeking the path to where it would recognize the JDK 1.3.1 before the Kaffe. I tried modifying the Kaffe scripts related to java and javac. I even tried to modify the .java_wrapper script.

But everytime I try to compile a java program by:

			
javac

I always get the same error:
			
Invalid Initial heap size: -Xms8m
Could not create the Java Virtual Machine


When I switch back to the original configuration with Kaffe, I have no problem: just can't compile jdk 1.2 and above classes. Does anyone know how I can compile and run my java programs using the jdk 1.3.1?

   <<Less

Re: Running JDK1.3.1 on Linux 7.0

Posted By:   Nathan_Meyers  
Posted On:   Saturday, October 13, 2001 06:15 PM

You're running the open source Kaffe product, not the Sun Java. Do this



  • Get rid of Kaffe:


        rpm -e kaffe

  • Make sure the Sun Java stuff is in your path:


        PATH=:$PATH

    where is the bin subdirectory of wherever you installed the Sun JDK.

Re: Running JDK1.3.1 on Linux 7.0

Posted By:   Luigi_Viggiano  
Posted On:   Sunday, October 7, 2001 09:06 AM

Sun's JDK1.3.1 works perfectly in 2.4 kernels.

I believe you have wrongly installed and configured JDK.


Install jdk in a good place, example /opt/jdk1.3.1.

Change your PATH environment variable as following:


export JAVA_HOME=/opt/jdk1.3.1
export PATH=$JAVA_HOME/bin:$PATH

Or remove kaffe, with "rpm -e kaffe" or something like that.
About | Sitemap | Contact