DebianThis forum is for the discussion of Debian Linux.
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.
Can someone show me how to install java on debian? I'm not really a debian guy that's why I'm asking you guyz. I done some searching but I stuck in some of the procedure.
apt-get install fakeroot
apt-get install java-package
fakeroot make-jpkg jdk-6u1-linux-i586.bin (Then it just freeze)
I think there must be a questions after the fakeroot but it just freeze and didn't show any prompt. It just hangup.
I screwed up this Debian before by doing an apt-get -f install and it did remove some package and cause some commands to be available like vi. Could be some package has been remove? But when installed fakeroot it is successful
If you have Debian Etch or newer, an easier way is just to enable non-free. Edit /etc/apt/sources.list and add "non-free" after "main" in all those lines, and after an apt-get update you can install what you need.
apt-cache search java |grep sun
sun-java5-bin - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture dependent files)
sun-java5-demo - Sun Java(TM) Development Kit (JDK) 5.0 demos and examples
sun-java5-doc - Sun JDK(TM) Documention -- integration installer
sun-java5-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java5-jdk - Sun Java(TM) Development Kit (JDK) 5.0
sun-java5-jre - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files)
sun-java5-plugin - The Java(TM) Plug-in, Java SE 5.0
sun-java5-source - Sun Java(TM) Development Kit (JDK) 5.0 source files
So you won't get version 1.6, at least not with Debian Etch, but is that a problem?
I already did that before. I already reinstall java-package using apt-get remove and apt-get install but still it just hang up when I do fakeroot make-jpkg <java.bin>
@craigevil
I could not install java. It couldn't find the package. Could I know the repository?
I don't know what version of debian is this. But I belive this is an old version due to kernel version (Linux spamfilter 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 GNU/Linux)
Here is the result of apt-cache search java |grep sun
spamfilter:/home/admin# apt-cache search java |grep sun
jikes-sun - Wrapper for jikes using Sun Java classes
sun-java5-doc - Sun JDK(TM) Documention -- integration installer
sun-java5-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java5-jre - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files)
sun-java5-source - Sun Java(TM) Development Kit (JDK) 5.0 source files
Is it installed? If yes, how come when I do java -version says "command not found"?
Thanks for the reply. I'm currently into apt-get dist-upgrade and will take time. Let's see what happen. I'll post what's the outcome after the update.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.