• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
Our first order of business must be this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic