Java Runtime Environment 1.6.0_01 not working in Debian
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why didn't you install that from the repositories? It's just so much easier. Just go to System > Administration > Synaptic Package Manager and select the Sun jre or jdk.
Then you may still need to set JAVA(orJRE) home:
echo JAVA_HOME=/path/to/jre >> /etc/profile (substitute with JRE_home as required)
echo export JAVA_HOME >> /etc/profile (substitute as required)
source /etc/profile
Then if as root you do
echo $JAVA(or JRE)_HOME
it should return the path to your JRE/JDK.
If you do
java -version
it should return the version of the jdk/jre currently installed.
Not sure how you're running that kernel in testing-unstable. The current kernel in Testing is 2.6.18-4 and in Unstable it's 2.6.20-1. It amazes me how many people still haven't realized that Stable and Tesing are not the same as they were a few weeks ago. That lack of knowledge can lead to a lot of problems for people trying to find packages in the Debian archives.
I've used apt-get several times, but here's the thing: I'm trying to install a software called Jin.
(http://www.jinchess.com/) It requiers the original version of Java, not the implemention.
When I do
./jin
this is what I get:
You seem to be running GNU's Java implementation, which is incomplete.
Jin requires Sun's Java (or a fully compatible version) 1.4 or later.
If you can't install it with your distribution's package manager, you
can obtain and install it manually from http://www.java.com
apt provides a very simple solution to that problem, but I think you should first post your /etc/apt/sources.list file so we can make sure what we are dealing with here.
Hmm, for all I know it could simply be that JIN (not familiar with it) is lagging and does not support jdk6 yet. I had a similar problem using webworks (and perharps Spring as well, I don't remember). See what happens if you use jdk5 instead.
First a little housekeeping. Unless you know what you're doing, that's a pretty ugly sources.list file. Do you have an /etc/apt/apt.conf file? If yes, what's in it?
If no, get the duplications out of there. Assuming you live in the US, it should look something like this:
If you live in Finland, change "us" to "fi" in the top two lines.
debian-marillat has changed its name to debian-multimedia.
Notice I have commented out the Sid and Experimental repos. Normally you choose only one (Testing, in this case). The effect of having the multiple is that any upgrade you do will be pulled from the least stable repository. If you specifically need something from Sid or Experimental, you can temporarily uncomment that line, get the needed package, then replace the comment. Any time you change that file, you have to run an "update."
**********
Now, back to the original question. What is now the output of $ java -version
Housekeeping tips are something I'm always open for! And yes, you assumed right, I pretty much don't know what I'm doing.. Well, that's why I'm here. A friend of mine helped me to install Debian but I'm tired of bothering him all the time.
W: Couldn't stat source package list http://www.debian-multimedia.org
testing/main Packages
(/var/lib/apt/lists/www.debian-multimedia.org_dists_testing_main_binary-i386_Packages)
- stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files
W: GPG error: http://www.debian-multimedia.org testing Release: The
following signatures couldn't be verified because the public key is not
available: NO_PUBKEY 07DC563D1F41B907
W: GPG error: http://ftp.fi.debian.org testing Release: The following
signatures couldn't be verified because the public key is not available:
NO_PUBKEY A70DAF536070D3A1
W: GPG error: http://security.debian.org testing/updates Release: The
following signatures couldn't be verified because the public key is not
available: NO_PUBKEY A70DAF536070D3A1
W: You may want to run apt-get update to correct these problems
And when I say apt-get update it gives the same errors..
$java -version still brings the same text as it did before.
If you have errors, you can't just keep plugging on and expect to get results. You first have to clear the errors.
Of course. I just didn't have a clue what to do with the pubkey thing.
I did what you adviced with the pubkeys, it worked. "Aptitude update" doesn't bring any errors now. When I run "aptitude install sun-java6-jre", it doesn't install any new packages because sun-java6-jre is already installed.
So, should I first remove it and then install it again? Can I remove it using aptitude and if yes, then how?
Thanks a bunch, I should maybe start paying you something for helping me this much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.