LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-01-2007, 09:28 PM   #1
nnadithya
LQ Newbie
 
Registered: Dec 2006
Location: Bangalore
Distribution: Fedora Core 6
Posts: 17

Rep: Reputation: 0
Java totally screwed up!!!!


hi
I am running fedora core6 plus all the latest updatesand patches
my java runtime enviornment is totally screwed up can any body help here are some of the screenshots...

Quote:
http://www.adithyann.net/phpgraphy/i...?display=1.png
this is how my opera window looks when i try to open cricinfo.com and notice the bar below it contains a lot of untitled windows which are no where to be seen


http://www.adithyann.net/phpgraphy/i...Screenshot.png
this is how the java settings part of my opera look like

http://www.adithyann.net/phpgraphy/i...reenshot-1.png
this is a screenshot of any random site which has a java content in it .. notice an untitled window at the bottom
http://www.adithyann.net/phpgraphy/i...display=12.png
this is how the site looks in mozilla



http://www.adithyann.net/phpgraphy/i...reenshot-2.png
this is what happens to limewire when i start it up


these are the satus of my system

[root@localhost ~]#java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
[root@localhost ~]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.5.0-sun/bin/java
please some body help me
thanks in advance
 
Old 01-02-2007, 04:23 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
None of the websites you refer to here have any java embedded on their pages, but they do use JavaScript. It appears that JavaScript isn't being processed in Opera.
I have the "NoScript" Firefox extension installed, and the pages pretty much show up as they do for you in Opera if JavaScript is disabled for those pages.

Anyway, check your JavaScript settings in Opera, not your Java settings. Besides, even if the pages used embedded Java, since the pages render perfectly fine in Firefox this would indicate the problem is with Opera, not Java.

Last edited by ciotog; 01-02-2007 at 04:25 AM.
 
Old 01-02-2007, 05:29 AM   #3
dpospisi
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Do you use compiz? Unfortunatelly, sun JRE does not work properlly with compiz. Try disabling desktop effects and chceck if this helps.
 
Old 01-02-2007, 08:27 AM   #4
harishpillay
LQ Newbie
 
Registered: Mar 2004
Location: West Coast Way, Singapore
Distribution: red hat and fedora
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by dpospisi
Do you use compiz? Unfortunatelly, sun JRE does not work properlly with compiz. Try disabling desktop effects and chceck if this helps.
I am not sure that the Sun JRE would have anything to do with it. I have fc6+desktop effects
and Sun's Java running for internet banking and it is all fine.

To the original poster: I think the problem is with the Javascript not Java per se. Javascript -
inspite of it's name - has nothing to do with Java and you do not even have to have Java installed
to run it. JS is self contained within the browser.

BTW, I could not see the screen shots of the original post's links.

Harish
 
Old 01-02-2007, 08:40 AM   #5
thomas.hedden
Member
 
Registered: May 2006
Location: Carlisle, MA
Distribution: Ubuntu, Fedora
Posts: 45

Rep: Reputation: 15
Hi,

> ... my java runtime enviornment is totally screwed up ...
I haven't followed any of the links you provided,
and I don't know whether or not any of the problems
you experience at these web sites have to do with
your JRE ...

> There are 2 programs which provide 'java'.
> /usr/lib/jvm/jre-1.4.2-gcj/bin/java
> /usr/lib/jvm/jre-1.5.0-sun/bin/java
... however, the fact that you have two
JRE's installed suggests to me that the
problem could be in your PATH statement.

It's not enough for the JRE to be installed:
Any Java programs that you want to use must
be able to find it. If you have two JRE's
installed, your PATH statement could be
pointing to the wrong one. Or, perhaps
it's not pointing to either one.

I would suggest that you start by reading
my article about this:
http://www.hedden.org/jrelinux.html

Best regards,

Tom
 
Old 01-02-2007, 11:01 AM   #6
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
OK, just to be absolutely clear:

The Opera / website problem is with JavaScript, NOT Java. Specifically, it is with Opera's handling of the JavaScript code. JavaScript is loosely based on Java (well, actually the developers of JavaScript used this name to increase recognition, initially it was called LiveWire and then LiveScript), but they are distinct.

You may very well have issues with Java as well, but they are completely unrelated. The jrelinux article by Tom has a number of issues with it, although if your setup happens to be similar to his then his advice might help with any Java problems.
 
Old 01-02-2007, 07:26 PM   #7
nnadithya
LQ Newbie
 
Registered: Dec 2006
Location: Bangalore
Distribution: Fedora Core 6
Posts: 17

Original Poster
Rep: Reputation: 0
ok i got that about javascript but what about limewire
 
Old 01-03-2007, 03:04 AM   #8
dpospisi
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by nnadithya
ok i got that about javascript but what about limewire
Did you tried to switch off desktop effects? Unfortunatelly, it definatelly is related to Java JRE. Since version 6 of Java, it uses some offscreen rendering which seems to be incompatible with compiz. If I switch it ON on my computer, I have exactly the same problem. Java windows are not rendered at all. However after switching OFF, everything works well.
 
Old 01-03-2007, 07:46 AM   #9
nnadithya
LQ Newbie
 
Registered: Dec 2006
Location: Bangalore
Distribution: Fedora Core 6
Posts: 17

Original Poster
Rep: Reputation: 0
actually i have been using beryl window manager when i switch back to metacity its fine but when in beryl that is what is happening can any body tell the solution
 
Old 01-03-2007, 09:12 AM   #10
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Ok, then add the following to your ~/.bash_profile (and then log out and back in):
Code:
AWT_TOOLKIT=MToolkit
export AWT_TOOLKIT
BTW you might have considered mentioning you were using Beryl in your original post, especially since Metacity worked fine!
 
Old 01-03-2007, 09:20 AM   #11
nnadithya
LQ Newbie
 
Registered: Dec 2006
Location: Bangalore
Distribution: Fedora Core 6
Posts: 17

Original Poster
Rep: Reputation: 0
sorry for forgetting that but i tried ou metacity only later

thanks anyway
 
Old 01-03-2007, 01:43 PM   #12
joejavacavalier2001
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Cool

Hello there,

To test for Java Applet support in Firefox and Mozilla you should do the following:

1. Browse to this website: http://java.com/en/download/installed.jsp
2. Click "Verify Installation"

If you are using the Sun JRE and you want to view and use Java Applets in Firefox or Mozilla, you need to make a symbolic link. (The good news is that both Firefox and Mozilla share SOME of the same settings so these directions are the same for both.)

The general idea is to link the "libjavaplugin_oji.so" file from your Java installation to your mozilla plugins directory.

You can either use your private Mozilla plugin directory that sits in your home directory or the global one for all Mozilla users on your Linux box. I'll demonstrate the former here. That's easier. It should not require the "su" command. lol...

1. In a command window type: cd $HOME/.mozilla/plugins
2. Type: ln -s /usr/java/j2sdk1.4.2_11/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

(If you installed the Java software in any other location besides /usr/java/ or if you are using a different version of Java than I am using, you will need to adjust the command in number 2 to work for you!)

You may just want to use the find command to find where the "libjavaplugin_oji.so" file lives. Use the one that lives in the "jre/plugin/i386/ns610-gcc32" directory inside your Java installation!

I think that http://java.sun.com/ might contain more information about this plugin and how to use it. I would highly suggest browsing that site for more information! :-)

Sincerely,
joejavacavalier2001
 
  


Reply

Tags
configuration, configuring, environment, installation, installing, java, jre, path, runtime, statement


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
weird slack prob, totally screwed up my sys AgentDukey Slackware 9 11-23-2004 01:55 AM
Mozilla 1.5 and Java (totally exasperating!) TippyToes Linux - Software 2 01-06-2004 05:57 AM
Am I totally screwed? mylo2003 Linux - Newbie 4 09-01-2003 10:32 AM
Totally screwed up! Prommy Linux - Software 2 08-26-2003 03:14 PM
I totally can not get Java to run (Help!!) TippyToes Linux - General 21 07-13-2003 05:19 PM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
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