LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2004, 11:00 PM   #1
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Rep: Reputation: 15
java Virtual Machine in Linux 10, kernel 2.6.3


Does anybody know how to make Java VM work under Linux Mandrake 10, with 2.6.3. kernel?
It worked in 8.1 and up.
I've browsed around Sun Java website but it's a jungle, VERY difficult to navigate or find anything..

I'm trying to use it with Yahoo Games but all I get is the error messages.
I've installed Mandrake 8.1 on my spare hard drive and I was able to save the Java VM plugin file. I've tried it on Madrake 10 but it wouldn't install.
 
Old 07-15-2004, 11:43 PM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Point your symlink to the one that's been compiled with gcc3.2, rather than the older 2.95. Its in the same "plugins" folder. Its not really a kernel issue. Its a "what compiler did the mozilla guys use" problem. The browser and the plugin need to be compiled with the sme family of compilers, due to significant changes in the compilers. Small thing makes big problem.
 
Old 07-16-2004, 12:14 AM   #3
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Ehm.. I'm not sure what symlink is..
Can you be more specific?
thanks
 
Old 07-16-2004, 04:29 AM   #4
BluePyre
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172

Rep: Reputation: 30
A symbolic link is a "link-to" an application, just like a shortcut type thing.
Ok, first things first.
You have the java plugin, yes? What browser are you using? I'm assuming mozilla / firefox, as thats what most people seem to be using these days.
Lets make this as simple as we can. Here's how to get things set up as painlessly as possible.

For mozilla...... from a terminal:

Code:
cd /usr/java/j2*/plugins/ns610-*
wearehere=`pwd`
pathtoplugin="$wearehere/libjavaplugin_oji.so"
mkdir -p ~/.mozilla/plugins/dummy; rm -rf ~/.mozilla/plugins/dummy
ln -s $pathtoplugin ~/.mozilla/plugins/libjavaplugin_oji.so

For firefox...... Replace the /path/to/firefox part with the path your firefox directory
Code:
firefoxpath=/path/to/firefox
firefoxjavaplugin="$firefoxpath/plugins/libjavaplugin_oji.so"
cd /usr/java/j2*/plugins/ns610-*
wearehere=`pwd`
pathtoplugin="$wearehere/libjavaplugin_oji.so"
ln -s $pathtoplugin $firefoxjavaplugin
NOTE: The above assumes you are using jre, the java runtime environment. If you have the development kit, then replace the j2* with j2*/jre in the first line.

Sorry for the amount of commands, its just to make sure there's less need for user interaction and less chance of errors.
 
Old 07-16-2004, 07:21 AM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Sorry. Since you had java working before, I had assumed that you already knew what a symlink was. A symbolic link is the equivalent of a MSWin "shortcut", as BluePyre has pointed out. Most commands have a manual page, so if you want to know the difference between symbolic (or soft) links and hard links, you can "man ln". To make the "shortcut" you would use the -s switch. So,
Code:
ln -s /path/to/java/plugin/gcc3.2version /path/to/mozilla/or/firefox/or/netscape/plugin/directory
gives you a symbolic link. Sun wants you to link to it. Macromedia suggests you copy their plugin. Go figure. They have their reasons (likely the link sends you to the directory where all the libs are). The instructions are included on the Sun site. I know if you read them too quickly, you'll miss what they mean, as they're to used to writing billion page EULAs instead of human-readable instructions, but you won't need them if you're asking here.
 
  


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
Java Virtual machine ServalSoft Linux - Software 1 02-13-2004 08:27 PM
Java Virtual Machine gilch Linux - Newbie 8 10-23-2003 01:38 AM
Anyone Know where I can get a Java Virtual Machine? pmorkert Linux - Software 2 07-29-2003 11:17 PM
Java Virtual Machine beajedi Linux - Newbie 4 07-09-2003 01:31 AM
java virtual machine infamous41md Linux - Newbie 6 04-19-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration