Java & Fedora RC1...how?

Place to discuss Fedora and/or Red Hat

Java & Fedora RC1...how?

Postby lovswr » Sat Jan 03, 2004 12:50 pm

Hello. I installed java via apt get..which resulted in the following when I do a slocate for j2re

/usr/java/j2re1.4.2_03

so I assume it is there/working/ready to be used.

However, neither Mozilla nor Konq work with java apps. They both want me to get a java plugin (Mozilla does offer to download the plugin in but the install always fails because it is not root...when I actually log in as root it does "appear" to install but it still does not run the java app)

I saw this thread here
& I did that with both /usr/bin & /usr/sbin...but still no dice.

What am I missing here?
lovswr
scripter
scripter
 
Posts: 59
Joined: Tue Apr 08, 2003 2:06 pm
Location: [H]otlanta

Postby Void Main » Sat Jan 03, 2004 7:48 pm

Can you open a shell and type "java" on the command line and get a page full of options? If so do you have your java plugin installed? On my system I have created a symbolic link in my /usr/lib/mozilla/plugins directory that points to the proper plugin from my java installation. In my case the command would have been:

Code: Select all
# ln -s /opt/j2sdk_nb/j2sdk1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so


Find the correct libjavaplugin*.so file from your installation and create a link to it in your /usr/lib/mozilla/plugins (or just put a copy of it there). When I installed Java it installed under /opt/j2sdk_nb as you can see. You should have a plugin directory somewhere under your installation directory.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby lovswr » Mon Jan 05, 2004 12:40 pm

I will do as you suggest after work today!
lovswr
scripter
scripter
 
Posts: 59
Joined: Tue Apr 08, 2003 2:06 pm
Location: [H]otlanta

Postby lovswr » Tue Jan 06, 2004 6:05 am

Well apparently I do not have java installed.

The commoand returns bash: java: command not found
lovswr
scripter
scripter
 
Posts: 59
Joined: Tue Apr 08, 2003 2:06 pm
Location: [H]otlanta

Postby Void Main » Tue Jan 06, 2004 6:46 am

You may have it installed but not in your PATH. I usually create symbolic links to the java executables in /usr/bin. It would be extremely nice if this were part of the Java RPM installation but Sun apparently doesn't want to make life easy on us. They of course would rather have us add the Java directories to our PATHs but that's not the way I prefer it. I would prefer to have the RPM built to install like every other software package built for my distro into the same standard directory structure that every other software package for my distro installs in, but no.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby lovswr » Sat Jan 17, 2004 2:30 pm

Just as an FYI:

I finally got it to work...did the following

Bad symlink:
ln -s
/usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/lib/mozilla-1.4.1/plugins/libjavaplugin_oji.so


Good symlink:
ln -s
/usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so


the good got me over the hump :)
lovswr
scripter
scripter
 
Posts: 59
Joined: Tue Apr 08, 2003 2:06 pm
Location: [H]otlanta

Postby Void Main » Sat Jan 17, 2004 3:10 pm

You mean kinda like where I said to put it a few posts up? :)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby lovswr » Sun Jan 18, 2004 9:53 am

:oops:

Well of course! Actually, I have a very hard time figuring out exactly 'where' stuff is installed. slocate mozilla gets about 2 hundred responses..so I needed total hand holding to get the 'right' one.
lovswr
scripter
scripter
 
Posts: 59
Joined: Tue Apr 08, 2003 2:06 pm
Location: [H]otlanta

Postby Tux » Sun Jan 18, 2004 11:04 am

try whereis mozilla next time :)
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 1 guest

cron