MadKAT Posted August 13, 2004 Report Share Posted August 13, 2004 (edited) Hi I just installed Mandrake 10.0 with both j2sk and j2re 1.4, but when i run java i get an error: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. libjava.so actually exists in /usr/lib/jdk-1.4.2_04/jre/lib/i386 but java could not find it. I've already tried adding it to LD_LIBRARY_PATH, but that didn't work. Anybody knows? Thanks Edited August 16, 2004 by MadKAT Quote Link to comment Share on other sites More sharing options...
scoopy Posted August 13, 2004 Report Share Posted August 13, 2004 welcome to our forum MadKAT, Wasn't sure if you were trying to run it in a browser or what, but sounds like your just missing a symlink? Here's my notes on how to make it work with konquorer. Maybe it will help ??? Adjust your paths and version numbers accordingly. in terminal or console: [scoopy@localhost scoopy]$ su Password: [root@localhost scoopy]# cd /usr/bin [root@localhost bin]# ln -s /usr/java/j2re1.4.2_01//bin/java java [root@localhost bin]# then [root@localhost scoopy]# cd /usr/lib/netscape/plugins [root@localhost plugins]# ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns4/libjavaplugin.so libjavaplugin.so now goto: K --> Configuration --> Configure your Desktop under WebBrowsing, be sure Endable Java globally is checked and, under Plugins click on Scan for New Plugins. Restart your browser and you should be good to go. Here's a test page: http://java.com/en/download/help/testvm.jsp Quote Link to comment Share on other sites More sharing options...
MadKAT Posted August 14, 2004 Author Report Share Posted August 14, 2004 Thanks for the reply scoopy! However, I was actually trying to run java apps from the command line rather than applets through the browser. Anyway, since you talked about links I decided to follow them, and here's what I found: /usr/bin: [root@xilke bin]# ls -l java* lrwxrwxrwx 1 root root 22 Aug 10 01:22 java -> /etc/alternatives/java* lrwxrwxrwx 1 root root 23 Aug 10 01:22 javac -> /etc/alternatives/javac* lrwxrwxrwx 1 root root 25 Aug 10 01:22 javadoc -> /etc/alternatives/javadoc* lrwxrwxrwx 1 root root 23 Aug 10 01:22 javah -> /etc/alternatives/javah* lrwxrwxrwx 1 root root 23 Aug 10 01:22 javap -> /etc/alternatives/javap* /etc/alternatives: [root@xilke alternatives]# ls -l java* lrwxrwxrwx 1 root root 30 Aug 10 01:22 java -> /usr/lib/jdk-1.4.2_05/bin/java* lrwxrwxrwx 1 root root 31 Aug 10 01:22 javac -> /usr/lib/jdk-1.4.2_05/bin/javac* lrwxrwxrwx 1 root root 33 Aug 10 01:22 javadoc -> /usr/lib/jdk-1.4.2_05/bin/javadoc* lrwxrwxrwx 1 root root 31 Aug 10 01:22 javah -> /usr/lib/jdk-1.4.2_05/bin/javah* lrwxrwxrwx 1 root root 31 Aug 10 01:22 javap -> /usr/lib/jdk-1.4.2_05/bin/javap* /usr/lib: [root@xilke lib]# ls -ld j* drwxr-xr-x 3 root root 120 Aug 10 00:16 jdk-1.4.2_04/ drwxr-xr-x 8 root root 400 Aug 13 21:22 jdk-1.4.2_05/ lrwxrwxrwx 1 root root 30 Aug 10 00:16 jre-1.4.2_04 -> ../../usr/lib/jdk-1.4.2_04/jre/ Now, here's the curious part: The java commands are effectively the ones in jdk-2.4.3_05, but in that directory, there is no jre! :o The other jdk on the other hand (jdk-2.4.2_04) only has a jre! So what i tried is to create symlink: jdk-1.4.2_05/jre->../jdk-1.4.2_04/jre. And with that java worked. Even in konqueror (strangely though, java worked in firefox even before I created that link). I don't really know why the configuration was like that but since this was a fresh install from the MDK 10.0 powerpack disks, I think this should be considered a bug (I don't know how to file one). Thanks! and I hope my experience may inform some who are encountering the same. :D [copy of preceding post removed by spinynorman - please use 'add reply' button] 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.