Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-14-2007, 10:44 PM   #1
LQ Newbie
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Help installing JDK JRE SuSE

I just tried installing the JRE going through sun's instructions. i know that the jre did install in my /usr/java directory. but i do not think it is working with firefox?? when i go to test java on suns java test website firefox says i have missing plugins. do i have to take more steps? the JRE is installed but do files need to be copied to other directories? How would this apply to the JDK? I have installed the JDK in windows the only tricky part was to remember to set the path. do i have to do the equivalent in linux for firefox to see my JRE and eventually when i decide to install the JDK?



P.S. I am Running SuSE Linux
Old 07-14-2007, 11:34 PM   #2
LQ Newbie
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Lightbulb Okay...

I have found a text file in /etc/java
it is named java.conf
it contains the following text:

# System-wide Java configuration file -*- sh -*-
# JPackage Project <>
# Location of jar files on the system
# Location of arch-specific jar files on the system
# Root of all JVM installations
# You can define a system-wide JVM root here if you're not using the default one
# Options to pass to the java interpreter

Should i try changing #JAVA_HOME= to where a file called java is in my new install. it is an executable file called java. so i would try this but dont want to cause any damage to the computer?? could use someone to tell me i am trying the correct thing.

so the line would read:


not sure about the punctuation for the slash and the dollar sign. should i only have the dollar or only the slash?

what does the dollar symbol mean in linux?

PPS this is 64 bit linux
Old 11-09-2007, 09:33 PM   #3
Registered: Nov 2006
Location: East Coast, USA (in "the great northeast")
Distribution: Custom / from source; Fedora, Debian, CentOS, Scientific; LFS.
Posts: 94

Rep: Reputation: 15
Hopefully, this will help clear things up some...

Originally Posted by CS_Student_DrewU View Post
I have found a text file in /etc/java
it is named java.conf


Should i try changing #JAVA_HOME= to where a file called java is in my new install. it is an executable file called java. so i would try this but dont want to cause any damage to the computer?? could use someone to tell me i am trying the correct thing.

so the line would read:

The hash mark (#) at the start of the line means it's a comment, so it doesn't really matter what you set it to. Generally speaking, if you installed java so it's in /var/jre1.6.0_02 (with bin underneath that directory) then you would want to set JAVA_HOME to /var/jre1.6.0_02. If you type
ls $JAVA_HOME/bin
you should get a listing of the 40-some files in /var/jre1.6.0_02/bin (which is what $JAVA_HOME/bin expands to).

It sounds like your problem is directly related to the fact that you're trying to use something that doesn't exist; Sun's Java doesn't currently have a plugin.

You said the how-to that someone else pointed you to was over your head; all it was saying, pretty much, is that - on a platform where a plugin is part of the JRE or the JDK - you would figure out where the java plugin was create a symbolic link from your browser's "plugins" dir to it. This generally works:

$ find . -name "libjavaplugin*"

Of the two listed, the plugin I want is the first (my gcc's newer than 2.9). Next, figure out where your browser's plugins directory is; some use /usr/lib/mozilla/plugins for everything, some (like firefox) use /usr/lib/usr/lib/firefox-2.0.0.x where x is the minor version number like 6, 7 or 8. Assuming that yours uses /usr/lib/firefox-, you would:

$ cd /usr/lib/firefox-
$ ln -s $JAVA_HOME/jre/plugin/i386/ns7/ .

That should do it. Exit ALL browser and email windows (if you're not sure if it's related, close it) and, when you start your browser back up, you should have java support.

With some plugins, under some circumstances, in order to get the browser to figure out that you installed something, you have to find and delete all instances of xpti.dat, pluginreg.dat, and compreg.dat. I would make sure everything else is correct before going that route; it can end up taking a while and making for a lot of work, especially if that's not really the problem.

what does the dollar symbol mean in linux?
It depends on the shell you're using. In the BASH shell, it means you want the value of a variable (eg., if the variable is PATH, then $PATH means "the value of PATH").

PPS this is 64 bit linux
Then you're not going to get Sun's Java Plugin to work with Linux; they don't yet supply a 64-bit browser plugin. If you need the full JDK then you might want to grab Blackdown's JDK package; it's a bit dated (1.4.2) but still runs the bulk of what's out there. In my experience, it's been very stable (at least, if you choose an O/S that it works well with). Check out this link:

If it's just the browser plugin you're after, or if you want / need both, you might consider getting them from different sources. Kaffeine (the browser) seems to work well; the GCJ web plugin has virtually no security features implemented yet. So, you might consider using GNU Classpath for development, etc. but something else for browsing.

Or, you might want to consider taking the Eclipse route (; if you're using Fedora or Debian etc. there should be ready-built packages with the Java SDK and a pretty snazzy IDE. And an optional plugin; you'll want to verify this, but I believe they're (Eclipse) shipping a beta-quality browser plugin.

One final thought - one of the biggest areas where FOSS is lagging is documentation, partiuclarly documentation for new users. If you can somehow manage to get a system up and running with, say, Sun's Java, and at the same time, set up an open source development system, I would think that you would have a uniquely advantageous perspective from which to write some of the documentation for that system, and for users new to it. Maybe pick a project and get in touch w someone there regarding what you're considering doing.

Good luck; I hope this helps.

- Larry


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help installing the Java JDK CS_Student_DrewU Programming 2 07-14-2007 11:43 PM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 03:15 PM
Installing IDEA and jdk shahnazyousuf Linux - Software 1 12-29-2004 02:14 AM
How do I Uninstall Firefox, Jre, jdk, Mozilla TSynergy Linux - Newbie 2 11-18-2004 06:35 PM
installing JDK on Slackware pogopogo Linux - Newbie 3 10-19-2004 03:33 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration