Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > Can't install latest version of Java

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-19-2007   #1 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Question Can't install latest version of Java

I'm experiencing a great deal of trouble trying to update my Java version. I have a version of Knoppix with Java 1.4.2_05 (out of the box) and I need to upgrade to the latest Java. I have been struggling this for some time, and have carried out numerous searches on Google trying to find the solution, with no success at all.

I have downloaded the self-extracting .bin file from the Java site, and this has unpacked normally on my system. I have followed the configuration and setup instructions, using ln -s, with the correct download and install paths for JRE and for my plugins directory for my browser.

Despite all this, my system has not registered the new Java. The version remains at 1.4.2_05. What I would like to do is completely remove this old version of JRE, and install the latest one afresh. How do I do this? The goal is to have the latest Java version up and running on my system.

Thanks in advance for any suggestions
Zulloi is offline  


Reply With Quote
Old 12-19-2007   #2 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
A quick update: I've deleted usr/lib/java which linked to the old version of Java on my system. Now, I am able to play Java games on the internet, which is how I'm testing it. java -version no longer works, so I don't know if it's still the old version working.

Trying my 2 browsers (Mozilla and Firefox) out on Runescape (which requires the very latest Java) I am now experiencing a new problem: the browser shuts itself down before the game-playing screen opens. I no longer get to the stage of seeing a white screen with a note from my browser telling me I'm missing a plugin - the browser just instantly shuts down. Anyone have any ideas about this?
Zulloi is offline   Reply With Quote
Old 12-19-2007   #3 (permalink)
Linux Newbie
 
Join Date: Nov 2007
Location: Planet Earth
Posts: 130
Hi,

The dirty way:

* extract the package downloades from java.sun.com, move to (say) /usr/local/java ...
* locate the old exec java files:

whereis java

normally is /usr/bin/

* then create symbolic links from your new installation:

sudo ln -sf /usr/local/java/your_java_version/bin/* /usr/bin/

* About the browsers, depends how you did the installation of plugins: local or global (all users)... try to locate the file:

sudo find / -name libjavaplugin_oji.so

* and replace the files located in firefox plugin directory, using a symbolic link:

sudo ln -sf /usr/local/java/your_java_version/jre/plugin/i386/ns7/libjavaplugin_oji.so /path/to/your/browser/dir/of/plugins/


ok... that was the dirty way... of course, there are other clean ways to do the job

EOF
__________________
EOF
hugortega is offline   Reply With Quote
Old 12-22-2007   #4 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Thanks ht. Worked!
Zulloi is offline   Reply With Quote
Old 01-16-2008   #5 (permalink)
Just Joined!
 
Join Date: Nov 2007
Posts: 2
Having problems with java

Quote:
Originally Posted by hugortega View Post
Hi,

The dirty way:

* extract the package downloades from java.sun.com, move to (say) /usr/local/java ...
* locate the old exec java files:

whereis java

normally is /usr/bin/

* then create symbolic links from your new installation:

sudo ln -sf /usr/local/java/your_java_version/bin/* /usr/bin/

* About the browsers, depends how you did the installation of plugins: local or global (all users)... try to locate the file:

sudo find / -name libjavaplugin_oji.so

* and replace the files located in firefox plugin directory, using a symbolic link:

sudo ln -sf /usr/local/java/your_java_version/jre/plugin/i386/ns7/libjavaplugin_oji.so /path/to/your/browser/dir/of/plugins/


ok... that was the dirty way... of course, there are other clean ways to do the job

EOF
Hey, you seem to be quit ok with java. I have a knoppix version 3.6 and not so sure on how to compile and run java programs.
This is what i have been doing to no avail:

$ /etc/alternatives/javac myfile.java

I get a report that i have one error.. environmental variable or something.\

Please give me a brief rundown on how to compile, run my codes. Do i need to download the latest java compiler?
Thanks!
saminsider is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:04 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2