Jump to content

Java help needed [SOLVED]


Guest Skuttfarkuss
 Share

Recommended Posts

Guest Skuttfarkuss

I am a Linux newbie and loving it so far. They can keep Windows but I am having some minor problems getting things running as they should and java is one of them. When I click on a link in my browser (Konqueror) that opens a java window I get the message that the jave executable file could not be found. I have downloaded and installed java succesfully. I know I need to tell the browser where to find the file and I know how to do that if I just knew where to find the file myself. I know where the main jave directory is but how do I identify the excutable file?

Link to comment
Share on other sites

Welcome,

 

Konq needs a symlink for java to work:

[scoopy@localhost scoopy]$ su
Password:
[root@localhost scoopy]# cd /usr/bin
[root@localhost bin]# ln -s /usr/java/j2re1.4.2_01//bin/java java
[root@localhost bin]#

 

then

[root@localhost scoopy]# cd /usr/lib/netscape/plugins
[root@localhost plugins]# ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns4/libjavaplugin.so  libjavaplugin.so

 

now goto:

K --> Configuration --> Configure your Desktop

under WebBrowsing, be sure Endable Java globally is checked and,

under Plugins click on Scan for New Plugins.

 

Restart your browser and you should be good to go.

 

Here's a test page:

http://java.com/en/download/help/testvm.jsp

Link to comment
Share on other sites

another way to get Java working in Konqueror............

 

open Kontrol Center (IE: configure your desktop)->web browsing->java & javascript, & in the box where it says "path to java executable, or java" point it to /usr/java/jre<version #>/bin/java, then click apply.

 

for help with Java in Mozilla, see my post #39 in This Thread. it's for an earlier version of Java, but the intructions are still valid. just replace the version # i used there with the current one.

 

and, for Java in Opera (should you need it), go to tools->preferences->multimedia & in the "Java path" box make it point to /usr/java/jre<version #>/lib/i386/, "apply"->"ok".

 

Chris

Link to comment
Share on other sites

Im relatively new to linux myself, and I the way I find best to find a file is to use 'locate'. You just run 'updatedb' as root to update the database - then whenever you want to find something, just do this..

[unholy@localhost unholy]$ locate javac
/home/unholy/programming/documents/TIPatterns/code/javac.mac
/home/unholy/j2sdk1.4.2_02/bin/javac
/home/unholy/j2sdk1.4.2_02/man/man1/javac.1
/home/unholy/j2sdk1.4.2_02/man/ja_JP.eucJP/man1/javac.1
/usr/share/doc/gettext-devel-0.14.1/examples/config/javacomp.m4
/usr/share/doc/gettext-devel-0.14.1/examples/config/javacomp.sh.in
/usr/share/vim/compiler/javac.vim
/usr/share/vim/syntax/javacc.vim

 

Just remember that any new files on your machine wont be in the database until you run 'updatedb'!

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...