Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java doesnt work in Opera
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
spaceturtle
n00b
n00b


Joined: 21 Nov 2003
Posts: 34

PostPosted: Mon Sep 06, 2004 2:33 am    Post subject: Java doesnt work in Opera Reply with quote

I just installed java jdk 1.5.0 rc for the amd64. everything was going fine. I started up opera, and Java applets wouldnt load. I checked and java is working fine, i can get java working in konqueror, but opera doesnt recognize the installed path's.

I went into the config and saw that no path was set to the java install. I set them to /opt/sun-jdk-1.5.0_rc1/bin/ where the java executables are located. I hit the "validate path" button, and it tells me that it isnt a valid location. I try looking around for a bit until i find that the path /opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/ is valid. this folder contains the lib*.so files (such as libjava.so), but no executables. I figure whatever, It says its a valid folder, so I save the changes and restart opera. It says java is enabled and I go to load an applet, and the applet fails to load and right after i check again, and suddenly it says java is not enabled.

Here is the output of opera -debugjava:
Code:
turtle@gentoo64 turtle $ opera -debugjava
Qt: Locales not supported on X server
opera: [java] failed to load libawt.so: libawt.so: cannot open shared object file: No such file or directory
opera: [java] failed to load libjawt.so: libjawt.so: cannot open shared objectfile: No such file or directory
opera: [java] failed to load a suitable awt library.  Java will not work
opera: Could not initialize spell checker interface. File not found or could not be opened (-7)
opera: libjava.so: cannot open shared object file: No such file or directory


any help would be really appreciated.
Thanks.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Mon Sep 06, 2004 11:55 am    Post subject: Reply with quote

which version of opera are you using? because when i tried beta 7.60, java didnt work for me. i had to reinstall 7.54
Back to top
View user's profile Send private message
spaceturtle
n00b
n00b


Joined: 21 Nov 2003
Posts: 34

PostPosted: Mon Sep 06, 2004 6:13 pm    Post subject: Reply with quote

My opera version is 7.54 final. I also had blackdown java installed before sun java, and opera didnt support java then either.
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Tue Sep 07, 2004 3:57 am    Post subject: Reply with quote

spaceturtle:

1. what does locate libjava.so display?

2. what does env | grep JAVA display?

On my system the answers are:

1. /opt/blackdown-jdk-1.4.1/jre/lib/i386/libjava.so

2. JAVAC=/opt/blackdown-jdk-1.4.1/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.4.1

The library libawt.so should be in the same directory as libjava.so

java works on 7.54 (static .1 and shared .5). java works in 7.60tp1
(shared .5 only).

Note1: the easiest way to test java under opera is to start opera and
then enter alt t a j -- if the java console comes up then java
'should' work.

Note2: I never use emerge to install opera -- alway download the file
myself in install it (./install.sh) with a prefix of /usr/local
Back to top
View user's profile Send private message
spaceturtle
n00b
n00b


Joined: 21 Nov 2003
Posts: 34

PostPosted: Wed Sep 08, 2004 7:02 pm    Post subject: Reply with quote

Locate retunrs the folowing:
Code:
turtle@gentoo64 turtle $ locate libjava.so
/opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/libjava.so
/home/turtle/programs/jre1.5.0/lib/amd64/libjava.so


(the /home/turtle/programs directory is where i placed files i extracted by hand, so they should not be having an effect on the system, at least that i know of)

And grep returns the following:
Code:
turtle@gentoo64 turtle $ env | grep JAVA
JAVA_HOME=/opt/sun-jdk-1.5.0_rc1
JAVAC=/opt/sun-jdk-1.5.0_rc1/bin/javac


The java console does not open under java, both with the keyboard shortcut or by going to it in the menus and clicking it. I also install opera by hand, and have tried reinstalling it to ensure it knows my current setup, but of course that hasnt worked. libawt.so is also located in the same directory as libjava.so, as you said. From everything ive seen on my system, Java should be working fine, and it is in everything but opera.

I think i will try to install opera 7.6 beta and see if that works. I really dont care which version i have as long as it works.

Thanks for the reply.
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Thu Sep 09, 2004 3:10 am    Post subject: Reply with quote

Okay Space Turtle, should be a pretty simple fix.

Either:

1. Start Opera and go to the preferences (alt p); select 'Multimedia' and in the field 'Java path' enter the following: /opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/

Stop Opera and restart it from the command line:

opera --debugjava &

Does anything change? Test it via alt t a j.


Or

2. Stop opera. Invoke your favorite editor on the file ~/.opera/javapath.txt. If the file doesn't exist, create it and put /opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/ in it. Then start Opera and see if alt t s j works.

Opera's not finding your java (see the code in the Opera script). They don't look for amd64 in the path, the default is i386.

I would not recommend Opera 7.60tp -- plugins are a mess. Stick with 7.54.
Back to top
View user's profile Send private message
spaceturtle
n00b
n00b


Joined: 21 Nov 2003
Posts: 34

PostPosted: Fri Sep 10, 2004 5:09 am    Post subject: Reply with quote

My opera java path was already set to /opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/. If I press the validate path button in opera, it tells me that the path is valid and accepts it. I edited the file javapath.txt and /opt/sun-jdk-1.5.0_rc1/jre/lib/amd64/ was already in the file. Either way the java console still does not open and I still so not have java support. Here is the output of opera --javadebug &:
Code:
turtle@gentoo64 turtle $ opera --debugjava &
[1] 31240
turtle@gentoo64 turtle $ Qt: Locales not supported on X server
opera: [java] failed to load libawt.so: libawt.so: cannot open shared object file: No such file or directory
opera: [java] failed to load libjawt.so: libjawt.so: cannot open shared objectfile: No such file or directory
opera: [java] failed to load a suitable awt library.  Java will not work
opera: Could not initialize spell checker interface. File not found or could not be opened (-7)


Thanks for the replies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum