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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...