Just for fun, I'd like to install a java runtime environment. I'm a hobbyist rather than a technical user, but I run Debian Unstable. So far I'm not having any luck.
I've downloaded the Sun self-extracing binary from: http://www.java.com/en/download/help/linux_install.jsp
Are you sure that is the right file name? I download files ending in .bin: /usr/local/j2re-1.4.1-01-linux-i586-gcc3.2.bin
and unpacked it into: /usr/lib/j2re1.4.2_04/
Have I used the right directory?
Anywhere will do. But /usr/local might be better than /usr/lib
I'm following instructions from the Mozilla site. The Debian GNU/Linux Java FAQ mentions unpacking "in /usr/local with links made in /usr/local/bin". I know how to make a symbolic link, but I don't know what to link. http://www.debian.org/doc/manuals/debian-java-faq/ch7.html
I link /usr/local/jre... to /usr/local/jdk so that when I upgrade I just reset the link to the new version rather than having to modify paths
I've added /usr/lib/j2re1.4.2_04/bin to my $PATH:
echo $PATH /usr/lib/j2re1.4.2_04/bin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X
11:/usr/games
Should I set that new path in ~/.bash_profile, or in /etc/profile?
Do you want it just for your use (first choice) or for any user e.g. root (second choice)
I've also made a symbolic link from ~/firebird/plugins:
lrwxrwxrwx 1 mark 66 Jul 3 09:50 libjavaplugin_oji.so -> /usr/lib/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so*
-rwx--x--x 1 mark 19K Jun 15 18:21 libnullplugin.so*
When I open Firefox and type about:plugins, firefox tells me that the java plugin is in place.
Alas, when I visit the java plugin test page, http://www.java.com/en/download/help/testvm.jsp Firefox crashes immediately.
Is this a Firefox bug, or do I need to do more to configure the JRE?
Some people have had to try a variety of plugins with different browsers to get one that works. How about mozilla, konqueror? Mine is working okay with mozilla
When I try to run a .jar file, I get the following error:
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
When Java "boots" it tries to find its "bootstrap" files such as /usr/local/jdk/jre/rt.jar. To do this, it needs to work out its home directory. It makes lots of guesses, but sometimes fails. You can/could help by setting JAVA_HOME
This suggests that I have some more configuring to do! Thanks in advance, all advice gratefully received.
Good luck
Jan --
Jan Newmarch, School of Network Computing Monash University Email: [EMAIL PROTECTED] WWW: http://jan.netcomp.monash.edu.au Tel: +61 3 9904 4249, Fax: +61 3 9904 4124 (ESOS: Monash Provider No. 00008C)
If Pacman had affected us as kids, we'd be running around in dark rooms, munching pills and listening to repetitive music (Marcus Brigstocke) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html