Jump to content

How to get Opera 7 working with Java


Cannonfodder
 Share

Recommended Posts

These instructions were created using Opera 7.1 Beta TP4. Use them if you can't get Java to enable..

 

1. Create a file in your .opera directory. Call this file javapath.txt.

2. Locate your java directory for your distro. In Mandrake 9.1, this is

 

/usr/java/j2re1.4.1_02/lib/i386

 

Note: If you are not sure where this is, do a search for a file called libjava.so. In some distros you can type locate libjava.so to find it.

 

3. Type or copy the path into javapath.txt and save. If you type j2re1 (as shown above), be aware that is j2re followed by a one, not the letter L. This is why my java wasn't working before.

 

4. su to root and use your fav editor to modify the file /usr/bin/opera. I suggest backing up the file first (cp opera opera.bak). Locate a line

 

# Uncomment the next lines to workaround the "preloaded libXt" problem.

 

and uncomment the following 3 lines. When done, should look like:

 

# Uncomment the next lines to workaround the "preloaded libXt" problem.

LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so"

OPERA_FORCE_JAVA_ENABLED='1'

export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED

 

5. Save the opera file and then type exit to leave root.

 

All done..

 

I tested this with a java applet and can also open the java console. That's as far as I went..

 

--

Check out our Mandrake Linux Discussion board at www.mandrakeusers.org/index.php

 

Mark Ryan

aka cannonfodder

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...