Jump to content

Java on FC5 [solved]


Recommended Posts

Hi,

I´ve managed to succesfully configure Java on my two desktops, on which I installed FC5 and using Gnome. I´ve been using the Manual as it was written by Stanton Finley on this site: http://www.stanton-finley.net/fedora_core_...tion_notes.html

 

But last night I´ve installed FC5 on my laptop with KDE 3.5.2. All went well, accept for the installation of Java. I followed Stanton Finley´s guidelines step-by-step, but it doesn´t seem to be working. After that I tried a different methode, which I found on this site: http://www.fedorafaq.org/#java But this didn´t work either. I´ve tested the instalation of Java on this site: http://www.java.com/en/download/help/testvm.xml But in both cases, the applet wouldn´t work. Does Java need some additional configuration under KDE? Or did I do something wrong?

 

Btw, I´ve also tried to change the directory of the plugins from the mozilla directorie to the forefox-1.5.0.3 directorie. But that didn´t help either.

Edited by Gul Dukat
Link to comment
Share on other sites

Does java work outside the browser, I mean from the CLI? It could be that java is installed fine but just not linked right to your browser. Try from the command line "java" and see what you get. If that doesn't work, have a hunt round your /opt directory (if that's where you put it) and call java with the full path.

 

Are you trying to get the JRE or the JDK? And are you using firefox as your browser?

Link to comment
Share on other sites

When typing Java in the CLi, I getting the following:

[guldukat@localhost ~]$ java
Usage: java [-options] class [args...]
	   (to execute a class)
  or  java [-options] -jar jarfile [args...]
	   (to execute a jar file)

where options include:
-d32		  use a 32-bit data model if available

-d64		  use a 64-bit data model if available
-client	   to select the "client" VM
-server	   to select the "server" VM
-hotspot	  is a synonym for the "client" VM  [deprecated]
			  The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
			  A : separated list of directories, JAR archives,
			  and ZIP archives to search for class files.
-D<name>=<value>
			  set a system property
-verbose[:class|gc|jni]
			  enable verbose output
-version	  print product version and exit
-version:<value>
			  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -jre-no-restrict-search
			  include/exclude user private JREs in the version search
-? -help	  print this help message
-X			print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
			  enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
			  disable assertions
-esa | -enablesystemassertions
			  enable system assertions
-dsa | -disablesystemassertions
			  disable system assertions
-agentlib:<libname>[=<options>]
			  load native agent library <libname>, e.g. -agentlib:hprof
				see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
			  load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
			  load Java programming language agent, see java.lang.instrument

 

I've tried JRE first and JDK second. Firefox is my browser.

 

By the way, about:plugins gives me the following:

application/x-java-vm 	Java 		Ja
application/x-java-applet 	Java 		Ja
application/x-java-applet;version=1.1 	Java 		Ja
application/x-java-applet;version=1.1.1 	Java 		Ja
application/x-java-applet;version=1.1.2 	Java 		Ja
application/x-java-applet;version=1.1.3 	Java 		Ja
application/x-java-applet;version=1.2 	Java 		Ja
application/x-java-applet;version=1.2.1 	Java 		Ja
application/x-java-applet;version=1.2.2 	Java 		Ja
application/x-java-applet;version=1.3 	Java 		Ja
application/x-java-applet;version=1.3.1 	Java 		Ja
application/x-java-applet;version=1.4 	Java 		Ja
application/x-java-applet;version=1.4.1 	Java 		Ja
application/x-java-applet;version=1.4.2 	Java 		Ja
application/x-java-applet;version=1.5 	Java 		Ja
application/x-java-applet;jpi-version=1.5.0_07 	Java 		Ja
application/x-java-bean 	Java 		Ja
application/x-java-bean;version=1.1 	Java 		Ja
application/x-java-bean;version=1.1.1 	Java 		Ja
application/x-java-bean;version=1.1.2 	Java 		Ja
application/x-java-bean;version=1.1.3 	Java 		Ja
application/x-java-bean;version=1.2 	Java 		Ja
application/x-java-bean;version=1.2.1 	Java 		Ja
application/x-java-bean;version=1.2.2 	Java 		Ja
application/x-java-bean;version=1.3 	Java 		Ja
application/x-java-bean;version=1.3.1 	Java 		Ja
application/x-java-bean;version=1.4 	Java 		Ja
application/x-java-bean;version=1.4.1 	Java 		Ja
application/x-java-bean;version=1.4.2 	Java 		Ja
application/x-java-bean;version=1.5 	Java 		Ja
application/x-java-bean;jpi-version=1.5.0_07 	Java 		Ja

 

Looks like Java is installed properly, doesn't it?

 

Doesn't work with Konqueror, or every browser in general?

 

Yep, it works in Konqi. Had to test it. ;)

But it doesn't with Firefox.

Link to comment
Share on other sites

OK, so it looks like java is installed fine, so the only thing missing is the link to firefox. Those pages you referenced explain the ln -s command, double-check the paths exactly and make sure they point to where your directories are:

 

ln -s /opt/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

 

(Note that by default Firefox looks in /usr/lib/mozilla/plugins for its plugins. If you have trouble with your plugins in Firefox you could substitute "firefox-1.5.0.1" or your most recent firefox directory name in place of "mozilla" in the above command.) Hit enter. Close the terminal. Restart Firefox to enable the java plugin.

Link to comment
Share on other sites

Tried, that already by changing the path name to ln -s /opt/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.5.0.3/plugins/libjavaplugin_oji.so. But it didn work.

Link to comment
Share on other sites

Yep.

[guldukat@localhost ~]$ ls -al /opt/jre1.5.0_07/plugin/i386/ns7/
totaal 156
drwxr-xr-x 2 root root   4096 mei  3 12:56 .
drwxr-xr-x 4 root root   4096 mei  3 12:56 ..
-rwxr-xr-x 1 root root 135084 mei  3 12:22 libjavaplugin_oji.so

Link to comment
Share on other sites

The fact that java was seen using about:plugins suggests the path specified in the symbolic link is fine. Something else is wrong.

 

Try running firefox using a new profile when you do your java testing:

firefox -profilemanager

 

Maybe there is a problem with your current firefox profile.

Link to comment
Share on other sites

Somehow the problem is solved. I really don´t understand it. The only thing I did this morning was installing the ATi-drivers with yum. Could this be the problem? And if so, why would I have Java-support in Konqi before installing the ATi-drivers?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...