LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-14-2005, 11:08 PM   #1
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Rep: Reputation: 0
opera 8.02 and Java prob


Im Runnin Mandrake 10.2 ..My java is not workin for opera 8.02 ....i enabled java set the path and even validated it succesfully ... When i restart my browser for the settings to take effect java gets disabled somehow ... Plz help
 
Old 09-15-2005, 12:56 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
What version of java are you using? How do you know java is getting disabled?
 
Old 09-15-2005, 03:08 AM   #3
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
java 1.5 i think .... the latest one anyway .... as for ur second q .. cuz whenever i restart my browser the enable java button is unchecked
 
Old 09-15-2005, 06:10 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Can you launch opera from the command line and see if it spits out any errors? Do this just after you enter (and validate) the java path.

Can you also go to a java website and test it out both just after entering the path and after a restart of opera.

Last edited by adz; 09-15-2005 at 06:12 AM.
 
Old 09-15-2005, 07:33 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Opera Software - Knowledge Base
 
Old 09-17-2005, 08:45 AM   #6
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
thx guyz ... craigevil the link u gave was the one i followed originally to set it up .. n adz i think u hit nail on head ...when i run opera from command i get following error

opera: [java] Disabling java due to potential problems. If you know
what you are doing, you can set the environment variable
OPERA_FORCE_JAVA_ENABLED to '1' to override this.
Start Opera with '-debugjava' argument for more information.

what should i do now ?
 
Old 09-17-2005, 08:49 AM   #7
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
i ran opera with -debugjava and got the following error
opera: [java] There seems to be a preloaded version of Xt.
There is a workaround for this problem in the opera
startup script. If that workaround fails, opera will
most likely crash every time it tries to use Java.
The workaround seems to have failed. Java will be disabled.
Technical explanation:
There is a problem with the order of loading Xt and
Java. If Xt is loaded before libawt (part of Java),
Java will crash when it tries to access the screen.
The workaround is based on using LD_PRELOAD to load
libawt.so first.

opera: [java] Disabling java due to potential problems. If you know
what you are doing, you can set the environment variable
OPERA_FORCE_JAVA_ENABLED to '1' to override this.
The actual problems should be described above.

what should i do ?
 
Old 09-17-2005, 09:18 AM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
opera: [java] Disabling java due to potential problems. If you know
what you are doing, you can set the environment variable
OPERA_FORCE_JAVA_ENABLED to '1' to override this.
Start Opera with '-debugjava' argument for more information.
Why not do as the app itself suggests?
 
Old 09-17-2005, 09:55 AM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
OK I didn't see the second message until I posted mine so ignore what I said last. Try forcing java load the way opera suggested. Try the command export OPERA_FORCE_JAVA_ENABLED=1 in a terminal and then from the same terminal run opera. See if it indeed crashes at a java site and if it does then try with the -debugjava switch.
 
Old 09-17-2005, 11:01 AM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Hmm all I did was open the java box in Opera put /usr/lib/j2re1.4.0/lib/i386
in it and click validate. It came back with this seems to be a valid directory. Restarted and it worked.

I didn't even realize I didn't have JAVA working in Opera until this thread, I use Firefox 99% of the time.
 
Old 09-17-2005, 08:05 PM   #11
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I've never had any problems with opera and java. Although I find that 1.4.X is a little old and doesn't run as well as my current version 1.5.0_1.

arjunjeyaprakash, try installing another version of java and test that. Maybe the version you have doesn't work very well (with opera).
 
Old 09-19-2005, 01:21 AM   #12
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
ok i tried the command export OPERA_FORCE_JAVA_ENABLED=1 and java still doesnt work on java site

when i gave ./opera the error i got was
opera: libjava.so: cannot open shared object file: No such file or directory

when i gave ./opera -debugjava i got
opera: [java] There seems to be a preloaded version of Xt.
There is a workaround for this problem in the opera
startup script. If that workaround fails, opera will
most likely crash every time it tries to use Java.
The workaround seems to be working.
Technical explanation:
There is a problem with the order of loading Xt and
Java. If Xt is loaded before libawt (part of Java),
Java will crash when it tries to access the screen.
The workaround is based on using LD_PRELOAD to load
libawt.so first.

opera: [java] The Java enable flag will not be reset
because the OPERA_FORCE_JAVA_ENABLED environment
variable has been defined.




my jre is jre1.5.0_04 ... maybe that is not compatible with opera 8.02 ?

Last edited by arjunjeyaprakash; 09-19-2005 at 01:24 AM.
 
Old 09-19-2005, 01:21 AM   #13
arjunjeyaprakash
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Mandriva
Posts: 13

Original Poster
Rep: Reputation: 0
ok i tried the command export OPERA_FORCE_JAVA_ENABLED=1 and java still doesnt work on java site

when i gave ./opera the error i got was
opera: libjava.so: cannot open shared object file: No such file or directory

when i gave ./opera -debugjava i got
opera: [java] There seems to be a preloaded version of Xt.
There is a workaround for this problem in the opera
startup script. If that workaround fails, opera will
most likely crash every time it tries to use Java.
The workaround seems to be working.
Technical explanation:
There is a problem with the order of loading Xt and
Java. If Xt is loaded before libawt (part of Java),
Java will crash when it tries to access the screen.
The workaround is based on using LD_PRELOAD to load
libawt.so first.

opera: [java] The Java enable flag will not be reset
because the OPERA_FORCE_JAVA_ENABLED environment
variable has been defined.



what should i do ?
 
Old 09-19-2005, 04:39 AM   #14
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I believe using the qt-static version may solve your problem. It's what I use and I've never encountered such a problem.

Last edited by adz; 09-19-2005 at 04:42 AM.
 
Old 09-20-2005, 09:59 PM   #15
chemdawg
Member
 
Registered: Jan 2005
Distribution: Mandriva
Posts: 206

Rep: Reputation: 30
I, too have this same problem. Only I have java correctly installed and working on firefox. When I point the java browser at the correct plugin, it says that it's an invalid path!

ADZ - where to get such a qt-static version???? I looked on java's website and it wasn't obvious to me that they have older or different versions?
 
  


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
Opera 8.02 and Java wildmacaw Linux - Newbie 4 01-01-2007 06:12 AM
Java in Opera... penguinguy Linux - Software 22 01-16-2005 11:48 AM
java for linux/opera firestomper41 Linux - General 2 09-12-2004 02:27 PM
Opera 7 and Java JoeDuncan Linux - Software 3 08-14-2003 12:12 PM
Opera 7.1.0 B1 and Java Vlad_M Linux - Software 4 05-09-2003 11:46 AM


All times are GMT -5. The time now is 03:10 AM.

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