LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Java and Debian (https://www.linuxquestions.org/questions/debian-26/java-and-debian-260711/)

Jaster 11-29-2004 07:39 PM

Java and Debian
 
phew! ok, running 2.6 kernel. Basis: I want to install everything I need the run and compile java. I've searched these boards, made a coast int he software forum, and googled it. I'm getting more confuzzled by the moment. I assume I need to start by installing the runtime environment. Please, can anyone help with a clear and chronological rundown of how to achieve my goals? I am just totally confuzzled right now. Thanks everyone.

Wells 11-29-2004 09:29 PM

Re: Java and Debian
 
Quote:

Originally posted by Jaster
phew! ok, running 2.6 kernel. Basis: I want to install everything I need the run and compile java. I've searched these boards, made a coast int he software forum, and googled it. I'm getting more confuzzled by the moment. I assume I need to start by installing the runtime environment. Please, can anyone help with a clear and chronological rundown of how to achieve my goals? I am just totally confuzzled right now. Thanks everyone.
Most recently I installed java on my machine at work, which is running Sarge. The easiest way I found of installing it was by installing the Java platform from blackdown.org, because they have .deb files that are quite easy to install and operate with.

Their download page is here:
http://www.blackdown.org/java-linux/...atus.html#debs

legrosbouc 11-30-2004 04:46 AM

I personally wanted to use the Java from Sun, be able to choose the version I want and use it the Debian way (clean packaging solution).

So far, the best documentation I found is available at:
http://serios.net/content/debian/java.php
It is top notch! In my opinion the best documetation about installing Sun Java on Debian :)

This is worth reading as well (first doc that directed me to the previous link)
http://www.martinfowler.com/bliki/DebianJava.html

Enjoy!
;)

Wells 11-30-2004 07:59 AM

The Sun route is a decent way to go as well. I have just had problem after problem with using the Sun implementation, most likely because of the way that they want you to install it. If there were a proper .deb package out there for the Sun implementation, I would use it. The nice thing about the Blackdown version (which appears to simply be a repackaged version of the Sun software...it is Java after all) is that it comes in a .deb package that works beautifully with simple installation.

legrosbouc 11-30-2004 11:57 AM

The doc I've posted is actually a procedure on how to use java-package to create your own .deb from the Sun installation, in the same way that kernel-package is making a clean .deb from the kernel source.

:study: Please take some time to read it, it's not very long, and it's very clear and easy to implement. :study:

Here's the link again, just in case:
http://serios.net/content/debian/java.php

Jaster 12-01-2004 08:15 AM

thanks legrosbouc, after a little tinkering it worked like a charm and java -version actually tells me I have java! yay! Now for an ide...

legrosbouc 12-02-2004 02:06 PM

My pleasure mate.
I'm even more happy because I opened an account there just to be useful on this particular problem :)

Bye

OneManArmy 12-10-2004 04:27 AM

Quote:

Originally posted by legrosbouc

So far, the best documentation I found is available at:
http://serios.net/content/debian/java.php
It is top notch! In my opinion the best documetation about installing Sun Java on Debian :)

I second this. In fact, I think this is one of the best documentations I have ever read. It helped me
getting Java installed on Sarge in less than 5 minutes without any problems whatsoever.

Have fun.

powadha 12-10-2004 11:49 AM

I agree to the above. to read my installation problems and (in second and third post) succes see:

Java install

Good luck installing, just taking the steps will get you there, no doubt!

Burgin 12-19-2004 09:34 PM

I followed the steps but had a some problems.
I'm running 'testing'. To get java-package, I did what was outlined here, http://serios.net/content/debian/java_testing.php.

But then, when I proceeded to make the deb, I get that "no plug-in" error. On the serios link, it says "at least version 0.17 is required for everything to go smoothly."

I ran the "apt-cache policy java-package | grep Installed" as he said, and it is in fact 0.17 so I'm at a loss.

I tried to make the debs on both 1.4.2 and the 1.5 jdks from Sun.

Does anyone have any ideas? If not, maybe I'll just try Blackdown.

Is there a big difference between Sun and Blackdown? I'm just doing this to learn Java.

dastrike 12-21-2004 01:24 AM

Burgin, the filename formats of the .bins from Sun have changed slightly as they updated the version, and (again) the java-package fails to work with this newer format.

I have now updated the instructions on the page to reflect the new reality.

Quick summary of the workaround: rename jdk-1_5_0_01-linux-i586.bin to jdk-1_5_0-linux-i586.bin (or the corresponding change for the JRE) and then run the make-jpkg again.

Burgin 12-22-2004 02:49 AM

Thanks for updating your site. Now from SUN, I downloaded the binary that bundled jdk 1.4.2 and Netbeans.

I was wondering if that procedure will work if I naively rename the binary named j2sdk-1_4_2_04-nb-3_6-bin-linux.bin to jdk-1_1_4-linux-i586.bin.

I haven't yet gotten the chance to try and see.


All times are GMT -5. The time now is 01:25 AM.