Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: HOW-TO: Building your own Java 1.5 package

  1. #1
    Join Date
    Mar 2005
    Beans
    127

    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 08:53 AM. Reason: integrated with useful tips

  2. #2
    Join Date
    May 2005
    Location
    Paris, France
    Beans
    468
    Distro
    Edgy Eft Testing

    Re: HOW-TO: Building your own Java 1.5 package

    thanks for this howto, very usefull I think.

  3. #3
    Join Date
    Dec 2004
    Location
    Santiago, Chile
    Beans
    311
    Distro
    Ubuntu Breezy 5.10

    Re: HOW-TO: Building your own Java 1.5 package

    great howto. The easiest java install so far

  4. #4
    Join Date
    Dec 2004
    Location
    Santiago, Chile
    Beans
    311
    Distro
    Ubuntu Breezy 5.10

    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.

  5. #5
    Join Date
    Sep 2005
    Beans
    71
    Distro
    Ubuntu Breezy 5.10

    Re: HOW-TO: Building your own Java 1.5 package

    thankyou, worked a charm

  6. #6
    Join Date
    May 2005
    Beans
    246

    Re: HOW-TO: Building your own Java 1.5 package

    Awesome. Worked like a charm!

  7. #7
    Join Date
    May 2005
    Location
    Everett Washington
    Beans
    92

    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)

  8. #8
    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 07:26 AM.

  9. #9

    Re: HOW-TO: Building your own Java 1.5 package

    Thanks for this guide. Easiest java install I would have to say.

  10. #10
    Join Date
    Oct 2005
    Location
    La Union, Philippines
    Beans
    31
    Distro
    Ubuntu 6.10 Edgy

    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? =)

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •