• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Runtime Environment

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Adrian Lee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jesper.
 
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic