LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-12-2009, 01:16 PM   #1
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Thumbs down Java 64bit plugin not working


Can someone spot the obvious error?

Slamd64 here (= 64 bit Slackware) so it's DIY linux :-/.

I got the java 64 bit plugin, tried all the instructions on the web that definitely don't work and leave out the juicy bits. Then I found a set that might work and tried them. I'll leave out earlier attempts.

Step 77. Installed jre1.6.0_14 from Sun's website (again). It gave me /usr/ja va/jre1.6.0_14. The plugin directory only had a .desktop file :-(

78. Go to /usr/lib64/firefox-3.0.5/plugins and symlinked in /usr/java/jre1.6.0_14/lib/libj2pnp.so

79. Go to /usr/lib64/mozilla/plugins and symlink it in there as well. Adobe's alpha 64 bit flash plugin is the same spot and works.

80. Restart firefox, and try aboutlugins. It shows me a big list under java and says "Yes, yes, yes, we can do all of that - why are you asking?"

81. Try a website. The browser crashes instantly. I have a twin core turion (amd) here - a new well specced laptop

There is a 'jexec' script near the startup scripts and I have tried starting it manually(/etc/rc.d/jexec start) as root. It exits with half a line and no newline (starting, checking, or stopping jexec services), and starts nothing afaict.

It shows in tools/plugins, but verifying the version on sun's site
http://www.java.com/en/download/installed.jsp
it crashes firefox. I trapped it the error it threw

None
None
None
Error during the initialisation of the VM
Java/Lang/NoClassDefFoundError: JavaLangObject

Whassat? Any ideas appreciated
 
Old 05-12-2009, 03:38 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
It does work, but you're doing it wrong, so first get:
http://www.java.net/download/jdk6/6u...6_may_2009.bin

Extract it to wherever (usually /usr/lib64 then symlink to /usr/lib64/java), then symlink /usr/lib64/java/lib/amd64/libnpjp2.so to the FF plugins directory whichever you want, I use ~/.mozilla/plugins.
 
Old 05-13-2009, 09:46 AM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Quote:
Originally Posted by H_TeXMeX_H View Post
It does work, but you're doing it wrong, so first get:
http://www.java.net/download/jdk6/6u...6_may_2009.bin

Extract it to wherever (usually /usr/lib64 then symlink to /usr/lib64/java), then symlink /usr/lib64/java/lib/amd64/libnpjp2.so to the FF plugins directory whichever you want, I use ~/.mozilla/plugins.
Thanks for the reply.

There is a bit of java stuff in /usr/lib64/java (no plugin btw) but I don't know if it is active.I did exactly as you said, except we landed in /usr/java/jre1.6.0_14 again. I wasn't offered a choice this time. The link you sent me was the installed plugin.

I did the basic stuff when it crashed out again, as always

cd /usr/java/jre1.6.0_14/lib/amd64
ldd *.so |grep -i found

find the missing libs and make them available
and of course add the java dir to /etc/ld.so.conf & run ldconfig.

If it works for others, there must be something up with my system. But I can't spot it, short of marrying the 2 installations. I even set $JAVA_HOME to /jsr/java/jre1.6.0_14 and added the bin directory to the path.
 
Old 05-13-2009, 10:29 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
That's odd, but you should get rid of any old jre that might be there, 'removepkg' it and then install the new one, and then symlink.

Also check that you don't have extra plugins in your plugin directories, it might conflict.
 
Old 05-14-2009, 06:46 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Thumbs down

Thanks H_TeXMeX_H (How do you pronounce that?)

To the subject. Removed the old java, and tried again. Bless Firefox the way it can resume all the tabs after an unexpected (or in this case, expected) crash!

ldd showed me all the binaries had their libs too. For some reason the /usr/java/jre1.6.0_14/lib/amd64 entry in /etc/ld/so/conf allows the situation where the subdirectories are not read :-/. The jexec script appears to register BINFMT_MISC, so not having that compiled into the kernel would affect Java, but I have that.

I did take out the pdf plugin to get around 32/64 bit issues, but all the others seem to work fine.

So here, I grind to a shuddering halt. Anyone got tech support from Sun?
Perhaps a relevant email? If we are all out of ideas, we are all beaten by this one.

Last edited by business_kid; 05-14-2009 at 06:49 AM. Reason: question unanswered
 
Old 05-14-2009, 11:20 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What version of slamd64 do you have ? You may also want to post this on the slamd64 forums:
http://forums.slamd64.com/
 
Old 05-14-2009, 12:10 PM   #7
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Thumbs up SORTED IT! Good Grief

This is actually horrible, but I think I have sorted it.

In /usr/java/jre1.6.0_14/lib/amd64 we have a (one of many)libs missing, libmawt.so. I thought that specifying a dir in /etc/ld.so.conf meant it's subdirs were searched, but that is not happening here.

When I was linking these libs in, I did a 'locate' command without updatedb and was shown ~/headless/libmawt.so in fedora - some earlier version. So I linked that one in. That was my problem.

There is also a libmawt.so in ~/lib/amd64/motif21, and another in ~/lib/amd64/xawt/ :-///. They differ!!

Polite words fail me at this point, so we pass over commenting on this.
This proved to be a real horror story.

symlinking in the one from ~/lib/amd64/motif21 gets me past the java test. If I crash on websites, There's always the one in xawt to play with.


This is what kills me about 64 bit software. Every step of setup is a war, and companies don't seem to give an <expletive deleted>.
 
Old 05-14-2009, 12:48 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Well so far I haven't used it much, but it hasn't crashed.
 
Old 05-16-2009, 09:42 AM   #9
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
For the record, I mentioned 3 versions of libmawt.so. Linking in one from usr/java/jre1.*/lib/amd64/motif21/ or xawt/ gets me going. Try this on your 64 bit box:

http://www.myhome.ie (I am not in the housing market btw)

Choose a County - Dublin 6W
locality Choose Templeogue
Street or Address - Rushbrook

That throws up 4 Pages. On all pages, If I want to map the property, I see blue house icons on a black background with no map. On my 32 bit Athlon, all is fine.

31 Rushbrook Park: I see nothing wrong

6 Rushbrook View - No pictures. I see the icons, and I can right clickon the black frame and select "view image" and I see it.

21 Rushbrook Court - I only can see the outside view. The other 4 images come up black, but the outside is fine.

On all of these, If I left click and drag the images somewhere, they show up full size. I don't know if this is a video thing, or a java thing.This one

http://www.myhome.ie/residential/sea...co/EHBIY398732

has 16 pictures. When I expand them out I can see the right half of them!

/begin spontaneous rant

Installing a java plugin should not be a war. Ditto video, wifi, sound, and everything else. I should not have an alpha 64bit flash plugin which adobe won't support. Neither should I be using a 32 bit browser. This is 2009, <expletive!>. These things should work.

/end CENSORED spontaneous rant
 
Old 05-16-2009, 10:05 AM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Well, I tried those and they seem to work fine. However, you should know that these are NOT java based, they are javascript, something the browser interprets, so it's a browser issue I think. Try upgrading or using a different browser.

For a java test you can try:
http://www.javatester.org/
http://www.java.com/en/download/help/testvm.xml
or I usually use:
http://www.chemexper.com/
click 'property explorer' and draw some chemicals.
 
Old 05-17-2009, 06:11 AM   #11
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Java Passes those tests.

Given your comments about Javscript, I went off and found a javascript tester at

http://www-k12.atmos.washington.edu/...t/jsindex.html

This has 33 tests, of which I failed 2, and they explain the myhome.ie pages.

02) On Mouse over - How to use the on mouse over event along with image swapping.
&
24) An animation - A simple animation example using javascript.

I have the distinct feeling that some came out a little differently from the intended result, but they displayed, so I passed them. Now where do I report the bug? Mozilla or Sun?

Fedora 10 x86_64 also is on this box (mainly for multimedia and yum if I ever need them). 'yum install k3b' saves me an hour farting with dependencies, for example. Fedora ignores Sun and uses the OSS java.

http://jnlp.sourceforge.net/netx/

But that setup (64 bit all round) also fails the same 2 tests. It looks a great future and I will use it henceforth. Fedora 10 also has firefox-3.0.8 (vs 3.0.5 in slamd64). So it's not just a slamd thing.
 
Old 05-17-2009, 06:24 AM   #12
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
My FF also fails # 2 and 24. Odd, maybe try Opera or konqueror, even tho with opera those same 2 tests fail.
 
Old 05-18-2009, 04:44 AM   #13
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Original Poster
Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
I tried those tests (02 & 24) on a 32 bit box. 2 behaved differently but not well, and 24 failed. (Slackware-12.0)

Hmmm. That page was done in 2000 and tested against (spit!)IE and NS-4.6. It _may_ be the tester at fault. I'll report the fault there. If he knows the code, or has a frank opinion of his own work, he may put his hands up and say "My fault". I'll post with any update, I'd encourage you to also. There's definitely a problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Plugin for 64bit browsers vasmakk Linux - Newbie 5 02-03-2009 05:04 PM
Firefox java plugin for FC3 64bit zmanzbo Linux - Software 5 08-15-2007 07:38 PM
Can't get Java plugin working under Firefox 64bit killy9999 Suse/Novell 13 02-12-2007 09:49 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 03:38 PM
Any ideas when a 64bit java plugin for firefox? carl0ski Linux - Software 1 11-29-2005 04:09 PM


All times are GMT -5. The time now is 07:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration