wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Java Runtime Environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Runtime Environment" Watch "Java Runtime Environment" New topic
Author

Java Runtime Environment

Adrian Lee
Ranch Hand

Joined: May 10, 2007
Posts: 71
Hi everyone. I'm having trouble installing JRE.

I'm currently using Fedora 6 and Mozilla Firefox(version 1.5.0.7) as my web browser. I've downloaded and extract jdk1.6.0_01 into /usr/java/jdk1.6.0_01.

I tried checking whether it's installed on the terminal.

[root@localhost ~]# java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

At the same time, I've also changed the profile description from etc folder.

#set JDK enviroment variable
export JAVA_HOME=/usr/java/jdk1.6.0_01
#export JAVA_HOME=/usr/java/j2sdk1.4.2_13
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib
export PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

Is there something that I can do in order to allow Java to run on my web browser? Please advice. Thanks in advance.

Best Regards
Adrian Lee
[ June 07, 2007: Message edited by: Adrian Lee ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14345
    
  22

export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib

Do not put $JAVA_HOME/lib/tools.jar and $JAVA_HOME/lib in your CLASSPATH. It's not necessary to have these in the classpath. Also, Java 6 automatically looks in the current directory for classes, so you don't need "." in the classpath.

Just remove the whole "export CLASSPATH..." line.

Are you running a 32-bit or a 64-bit version of Linux? To be able to run Java in your browser, you need to have a Java plug-in for your browser, but Sun only makes a 32-bit Java plug-in. If you're running 64-bit Firefox on 64-bit Linux, then you'll not be able to run Java in your browser.

Try asking your question on a forum about Fedora Linux, there are most likely more people there who know how to run Java on that OS.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Adrian Lee
Ranch Hand

Joined: May 10, 2007
Posts: 71
Thanks Jesper.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Runtime Environment