• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I install Java in Linux?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey there everyone!

I am trying to install Java on my Debain based Linux OS and can`t seen to figure it out. I first typed "chmod +x jdk-8-nb-8-linux-i586.sh", than typed
"./ jdk-8-nb-8-linux-i586.sh" to install it. It started to install, but than it gave my this message: (computer name has been changed)

bobsmith@bobsmiht-OptiPlex-GX620:~/Downloads$ ./jdk-8-nb-8-linux-i586.sh
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
./jdk-8-nb-8-linux-i586.sh: 1: eval: /tmp/.nbi-5045119.tmp/jre-7u4-linux-i586.bin: not found
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.


How do I fix this? My Linux computer is not connected to the internet, I don`t know if this is a problem or not.

Thanks in advance for you help!



 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to Javaranch. Installing Java on Linux is as easy as unpacking a grip file. Just download it from Oracle and using the tar utility to unpack it. I'm not aware of the process that you are trying to do to install Java.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you look at the FAQ page which is mentioned in the error message? It explains what might be causing this and what you can try.
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is in our FAQ. You unzip the .tar.gz file in some directory or other. I usually create a directory /usr/java and then use sudo chown … to move ownership to the user rather than to root, and unzip the .tar.gz into that directory.
Then you want to change your PATH by editing the .bashrc file, which usually lives in your ~ directory.
 
reply
    Bookmark Topic Watch Topic
  • New Topic