Gul Dukat Posted May 30, 2006 Report Share Posted May 30, 2006 (edited) 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 May 30, 2006 by Gul Dukat Quote Link to comment Share on other sites More sharing options...
neddie Posted May 30, 2006 Report Share Posted May 30, 2006 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? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 30, 2006 Report Share Posted May 30, 2006 Doesn't work with Konqueror, or every browser in general? Quote Link to comment Share on other sites More sharing options...
Gul Dukat Posted May 30, 2006 Author Report Share Posted May 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
neddie Posted May 30, 2006 Report Share Posted May 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
Gul Dukat Posted May 30, 2006 Author Report Share Posted May 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
neddie Posted May 30, 2006 Report Share Posted May 30, 2006 And you're sure the path /opt/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so is correct? Quote Link to comment Share on other sites More sharing options...
Gul Dukat Posted May 30, 2006 Author Report Share Posted May 30, 2006 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 Quote Link to comment Share on other sites More sharing options...
daniewicz Posted May 30, 2006 Report Share Posted May 30, 2006 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. Quote Link to comment Share on other sites More sharing options...
Reiver_Fluffi Posted May 30, 2006 Report Share Posted May 30, 2006 (edited) Gul Dukat, are you using SELinux? If so you need to edit the policy to allow the library to be accessed from the symlink You need to allow the following in your policy: compatibility>Allow the use of shared libraries with Text Relocation Edited May 30, 2006 by Reiver_Fluffi Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 30, 2006 Report Share Posted May 30, 2006 Yes, it seems that it's something related with Fedora's enhanced security, and not java itself. BTW if you want to create symbolic links without the danger of mistyping, use Midnight Commander for the task... Quote Link to comment Share on other sites More sharing options...
Gul Dukat Posted May 31, 2006 Author Report Share Posted May 31, 2006 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? Quote Link to comment Share on other sites More sharing options...
neddie Posted May 31, 2006 Report Share Posted May 31, 2006 Maybe firefox just needed to be really restarted before it picked up the plugin?? Quote Link to comment Share on other sites More sharing options...
Gul Dukat Posted May 31, 2006 Author Report Share Posted May 31, 2006 Could be, but I´ve done that several times yesterday..... :wacko: Quote Link to comment Share on other sites More sharing options...
Reiver_Fluffi Posted May 31, 2006 Report Share Posted May 31, 2006 Yes, it seems that it's something related with Fedora's enhanced security, and not java itself.BTW if you want to create symbolic links without the danger of mistyping, use Midnight Commander for the task... Or, of course, the magical tab key helps ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.