I can't get Java to work.
I tried the following with both JRE 1.5 and JDK 1.5.
I'll explain with JDK since this is the one I want at the end.
I'm a Linux newbie, i hope I can get some help.
I got most of those instructions from
First I downloaded jdk-1_5_0_04-linux-i586.bin
("Fedora Core 4 users are advised not to use the Java RPM provided by Sun.")
, saved it under /opt.
As a root, I did a chmod +x on the file, then a ./*.bin
Agreed to the license. The instalation went fine without any error message.
I did the following command:
ln -s /opt/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
I did this command several times with variations. One "firefox-1.0.6" instead of "mozilla", and one with "jdk1.5.0_04/jre" instead of "jre1.5.0_04".
The 4 of them went fine with no error.
(I didn't do all of them at once, I did one, test it, tried the other one...)
Now came the time for testing
I went on http://www.java.com/en/download/help/testvm.xml
to test the virtual machine. At first the good sign was that Firefox was not asking for a missing plugin anymore. But actually nothing appeared at the place where the Java Test box was supposed to be. Tried it many times, even reboot the computer...
I also tried the samples given in the package (demo/applets.html).
It didn't work.
I guess I could stop here, and ask for help.
Also, I tried something else.
I went in the folder where Clock.class is, and I tried to do a "appletviewer Clock.class".
It said 'bash appletviewer command not found".
I also tried the same thing but by going in the folder where the file "appletviewer" is. Even though the file was in front of me, it said "command not found".
I thought that if I was in the same folder of an application, there wouldn't be any problem when calling its name. Was I wrong?