Page 1 of 3 123 LastLast
Results 1 to 16 of 42

Thread: Linux - Install Java

  1. #1
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts

    Linux - Install Java

    I have unbuntu and i am trying to insall java using these instructions

    http://java.com/en/download/help/5000010500.xml#install

    the problem is, when i try to enter the password, nothing comes up on screen (no *s or the actual word) and if i try to press enter to see if it has infact entered it it just says authentification has failed.
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    right. firstly, ubuntu doesn't have a root account - if you want a root terminal, use 'sudo bash' and type YOUR password.

    secondly, installers like sun's don't work very well - they overwrite system files without asking, and usually don't set things up correctly for any distribution other than Red Hat Enterprise from a few years ago. ubuntu (via debian) offers a program called make-jpkg which takes the .bin and transforms it into a working .deb package - which you can then install with 'dpkg -i thefileyoumade.deb'

    do this by:

    1) as root, open /etc/apt/sources.list in an editor (e.g. nano /etc/apt/sources.list), and uncomment the lines relating to the 'universe' and 'multiverse' package repositories - this enables you to install more software
    2) as root, run 'aptitude update' to download a list of all the latest packages (including those on the repositories you just enabled)
    3) as root, run 'aptitude install fakeroot java-package java-common' to get the required utilities
    4) as a regular user, run 'fakeroot make-jpkg thefilefromsun.bin'
    5) install the new .deb file as root with 'dpkg -i sunwhatever.deb'

    java's not actually in most linux distributions already due to restrictive licensing from sun

    oh, and do NOT touch anything with 'rpm' in the name, it's for redhat

  3. #3
    Senior Member
    Join Date
    Nov 2005
    Posts
    501
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by directhex
    oh, and do NOT touch anything with 'rpm' in the name, it's for redhat
    Or Mandriva or Suse and that's just the ones from the top ten. I also believe it's possible to install the Sun Java RPM on Breezy using alien but I gather some messing around is required.

    Really I'm just posting this for completeness, the official method you posted is by far the better option

  4. #4
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    You say uncommet, do what? sorry

    I google it but could not find anything of use to me, there does not seem to be any keyboard shortcut set up for commenting.

    this is all new to me, thanks
    (\__/)
    (='.'=)
    (")_(")

  5. #5
    Senior Member chrestomanci's Avatar
    Join Date
    Sep 2004
    Location
    Reading
    Posts
    1,614
    Thanks
    94
    Thanked
    96 times in 80 posts
    • chrestomanci's system
      • Motherboard:
      • Asus AMD AM4 Ryzen PRIME B350M
      • CPU:
      • AMD Ryzen 1600 @ stock clocks
      • Memory:
      • 16Gb DDR4 2666MHz
      • Storage:
      • 250Gb Samsung 960 Evo M.2 + 3Tb Western Digital Red
      • Graphics card(s):
      • Basic AMD GPU (OSS linux drivers)
      • PSU:
      • Novatech 500W
      • Case:
      • Silverstone Sugo SG02
      • Operating System:
      • Linux - Latest Xubuntu
      • Monitor(s):
      • BenQ 24" LCD (Thanks: DDY)
      • Internet:
      • Zen FTTC
    The '#' symbols at the start of the lines denote comments.

    You will find some code lines in the file that are 'commented out' by putting '#' at the start. If you delete those #'s then the lines will become active.

    If you use a more advanced editor such as kate then the comment lines will show in a different colour, usualy grey or green.

  6. #6
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    For the lines with two #s, do i delete both or just one?

    How do i delete them, cause highlighting them and pressing backspace does not work.

    thanks
    (\__/)
    (='.'=)
    (")_(")

  7. #7
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    sounds like you need something clicky. use gedit instead of nano.

    and the lines should look as follows:

    Code:
    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    # deb http://gb.archive.ubuntu.com/ubuntu breezy universe
    # deb-src http://gb.archive.ubuntu.com/ubuntu breezy universe
    
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    # deb-src http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
    
    # deb http://security.ubuntu.com/ubuntu breezy-security universe
    # deb-src http://security.ubuntu.com/ubuntu breezy-security universe
    remove the # from the start of the lines to uncomment them:

    Code:
    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://gb.archive.ubuntu.com/ubuntu breezy universe
    deb-src http://gb.archive.ubuntu.com/ubuntu breezy universe
    
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
    
    deb http://security.ubuntu.com/ubuntu breezy-security universe
    deb-src http://security.ubuntu.com/ubuntu breezy-security universe
    actually, on reflection, those lines aren't quite complete. see some lines end only with 'universe' (e.g. deb http://security.ubuntu.com/ubuntu breezy-security universe)

    change those to 'universe multiverse':

    Code:
    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://gb.archive.ubuntu.com/ubuntu breezy universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu breezy universe multiverse
    
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu breezy-security main restricted
    deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
    
    deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse
    deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse

  8. #8
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    or he could read the basic ubuntu docs......I find it pretty useful to know how to login to a box properly before trying to do stuff like installing java
    It is Inevitable.....


  9. #9
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    Ok, i have done that, now what do i do cause you said dont use that installer?
    (\__/)
    (='.'=)
    (")_(")

  10. #10
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    You could check if ubuntu has blackdown java, its a proper open source JVM, so it wont have the same installation problems as Sun's JVM.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  11. #11
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    i am seriously considering scrapping linux as it has too many problems and is too much work compared to windows.
    (\__/)
    (='.'=)
    (")_(")

  12. #12
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    Directhex's way of doing it is probably the best way, but, as said you could always try using Blackdown from a Debian repository.

    Note: This may not work. Use at your own risk.

    In /etc/apt/sources.list, type this line:

    ftp://ftp.tux.org/java/debian/ sarge non-free

    Now, at a command line, type:

    sudo apt-get update
    sudo apt-get install j2re1.4

    As for Windows Vs. Linux... I won't get into the whole debate now, but I'll just say I prefer installing Linux over Windows. On Linux, rather than having to find all the different applications, I can install the vast majority just by typing apt-get install foo bar baz.

    Edit: Having looked at the Ubuntu Wiki, it seems Blackdown is in the multiverse repository. So once you've uncommented those two lines, you should just be able to type:

    sudo apt-get update
    sudo apt-get install j2re1.4
    Last edited by mike_w; 18-12-2005 at 04:02 PM.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  13. #13
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    would my linux life be easier with suse 10?
    (\__/)
    (='.'=)
    (")_(")

  14. #14
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    Quote Originally Posted by nvening
    would my linux life be easier with suse 10?
    I personally think that SUSE 10.0 is more user friendly, but it is not worth installing it now that you've got Ubuntu installed, seeing as Ubuntu is also reasonably user friendly.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  15. #15
    lazy student nvening's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,656
    Thanks
    196
    Thanked
    31 times in 30 posts
    forget that, me being stupid

    EDIT: I think there was a problem with the Unbuntu installation tho cause all the media players will not work.
    Last edited by nvening; 18-12-2005 at 04:35 PM.
    (\__/)
    (='.'=)
    (")_(")

  16. #16
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    Quote Originally Posted by nvening
    it says what mike_w says is invalid
    Could you be a little more specific? Do you mean the Wiki, another website, the command line? What does 'it' say instead?
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ATi + Java + BSOD?
    By Kezzer in forum PC Hardware and Components
    Replies: 1
    Last Post: 11-06-2005, 01:26 PM
  2. Java Linux
    By Raz316 in forum Software
    Replies: 8
    Last Post: 06-04-2005, 09:35 AM
  3. We heard your feedback on Newegg....
    By DR in forum General Discussion
    Replies: 33
    Last Post: 05-03-2005, 08:13 PM
  4. Help! Lost discs and won't install linux.
    By menthel in forum Software
    Replies: 6
    Last Post: 30-12-2004, 03:30 PM
  5. Radeon 8500 linux driver install problems
    By Dorza in forum Software
    Replies: 0
    Last Post: 22-09-2003, 12:00 PM

Posting Permissions

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