Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 15th, 2005   #1
humanity_to_others
A Carafe of Ubuntu
 
Join Date: Mar 2005
Beans: 133
HOW-TO: Building your own Java 1.5 package

This How-to is based on that and that thread and this page

Download JRE 5.0 Update 6

Code:
sudo apt-get install fakeroot java-package java-common
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
sudo update-alternatives --config java
java -version

Code:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
You can try java at this page

Quote:
Originally Posted by RastaMahata
It's important to notice I was presented with the following question when I executed the update-alternatives command line (I installed j2sdk):
Code:
There are 3 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
      1        /usr/bin/gij-wrapper-4.0
*+    2        /usr/lib/jvm/java-gcj/bin/java
      3        /usr/lib/j2sdk1.5-sun/bin/java
The user should select the one that has the word SUN on it. In my case, number 3. Good luck.
Quote:
Originally Posted by fishfork
Thanks for your effort, but you should know this information is already available on the wiki.
Quote:
Originally Posted by dastrike
graphfixpunk,
The java-package package is located in the multiverse section on Ubuntu, which is by default not present (not active at least) in one's sources.list
So edit your /etc/apt/sources.list, add the multiverse section (or just uncomment the commented-away lines specifying them) and then run apt-get update

And it is unnecessary to explicitly specify fakeroot and java-common to be installed because:
- fakeroot is a dependency of java-package and will thus be installed when installing java-package
- java-common is provided by the package that is generated by make-jpkg.

For highly detailed installation instructions see the instructions I have written:
Ubuntu Java JRE/JDK installation with java-package - this is essentially mentioned already in the initial post of this thread yes, but I have now created separate instructions for Ubuntu as it was a bit cluttered to maintain both Debian and Ubuntu instructions in the same document.
And non-repo way howto: http://ubuntuforums.org/showthread.php?t=76754

Last edited by humanity_to_others; December 1st, 2005 at 03:53 AM.. Reason: integrated with useful tips
humanity_to_others is offline   Reply With Quote
Old October 16th, 2005   #2
geearf
Has an Ubuntu Drip
 
geearf's Avatar
 
Join Date: May 2005
Location: Paris, France
Beans: 511
Edgy Eft Testing
Send a message via ICQ to geearf Send a message via MSN to geearf
Re: HOW-TO: Building your own Java 1.5 package

thanks for this howto, very usefull I think.
geearf is offline   Reply With Quote
Old October 16th, 2005   #3
RastaMahata
Quad Shot of Ubuntu
 
RastaMahata's Avatar
 
Join Date: Dec 2004
Location: Santiago, Chile
Beans: 427
Ubuntu Breezy 5.10
Send a message via MSN to RastaMahata
Re: HOW-TO: Building your own Java 1.5 package

great howto. The easiest java install so far
RastaMahata is offline   Reply With Quote
Old October 16th, 2005   #4
RastaMahata
Quad Shot of Ubuntu
 
RastaMahata's Avatar
 
Join Date: Dec 2004
Location: Santiago, Chile
Beans: 427
Ubuntu Breezy 5.10
Send a message via MSN to RastaMahata
Re: HOW-TO: Building your own Java 1.5 package

It's important to notice I was presented with the following question when I executed the update-alternatives command line (I installed j2sdk):
Code:
There are 3 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
      1        /usr/bin/gij-wrapper-4.0
*+    2        /usr/lib/jvm/java-gcj/bin/java
      3        /usr/lib/j2sdk1.5-sun/bin/java
The user should select the one that has the word SUN on it. In my case, number 3. Good luck.
RastaMahata is offline   Reply With Quote
Old October 16th, 2005   #5
Samuel
Just Give Me the Beans!
 
Samuel's Avatar
 
Join Date: Sep 2005
Beans: 72
Ubuntu Breezy 5.10
Send a message via AIM to Samuel Send a message via MSN to Samuel
Re: HOW-TO: Building your own Java 1.5 package

thankyou, worked a charm
Samuel is offline   Reply With Quote
Old October 16th, 2005   #6
Joey French
Way Too Much Ubuntu
 
Join Date: May 2005
Beans: 251
Re: HOW-TO: Building your own Java 1.5 package

Awesome. Worked like a charm!
Joey French is offline   Reply With Quote
Old October 16th, 2005   #7
garnertr
A Carafe of Ubuntu
 
Join Date: May 2005
Location: Everett Washington
Beans: 118
Send a message via ICQ to garnertr
Re: HOW-TO: Building your own Java 1.5 package

All that I can say is THANK YOU SO MUCH. I've been tearing my head out trying to get JAVA installed and you did it thank you, thank you, thank you!!!

Book-marked this page for future reference...

__________________
vr

Tom Garner
4580576(ICQ)
garnertr is offline   Reply With Quote
Old October 17th, 2005   #8
m9dhatter
First Cup of Ubuntu
 
Join Date: Nov 2004
Beans: 9
Re: HOW-TO: Building your own Java 1.5 package

i cant seem to find the java-package debs... where do i find it?

nevermind. i added multiverse to my sources.lst

Last edited by m9dhatter; October 17th, 2005 at 02:26 AM..
m9dhatter is offline   Reply With Quote
Old October 20th, 2005   #9
Roybotnik
5 Cups of Ubuntu
 
Join Date: Sep 2005
Beans: 19
Re: HOW-TO: Building your own Java 1.5 package

Thanks for this guide. Easiest java install I would have to say.
Roybotnik is offline   Reply With Quote
Old October 20th, 2005   #10
squibbon
5 Cups of Ubuntu
 
squibbon's Avatar
 
Join Date: Oct 2005
Location: La Union, Philippines
Beans: 31
Ubuntu 6.10 Edgy
Send a message via Yahoo to squibbon
Re: HOW-TO: Building your own Java 1.5 package

done everything but when i...

eric@UbuntuHR3:~/Desktop$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

BUT NOW i can run LimeWire. What happen? =)
squibbon is offline   Reply With Quote

Bookmarks

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

Forum Jump


All times are GMT -4. The time now is 11:21 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry