• 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
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Setting up Java 8 on Ubuntu

 
Greenhorn
Posts: 2
Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello and thank you in advance. I've put myself in a position in the last few days, I've taken on a new OS and then decided why not learn to do something with it. A trip to the book store and I have a copy of Head First Java. 2nd edition. Now thus far I have managed to get java 8 on my computer google had the answers for that. I have seen old answers to this question,  " once you've downloaded you need to add an entry to your path environment variable that points to the / bin directory inside the main java directory. "  is this still viable? if so how do I do that?  

Thank you again, =)
 
Bartender
Posts: 2237
63
IntelliJ IDE Firefox Browser Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Please execute these commands in the terminal:
java -version
javac -version

If they prints versions correcly, you don't have to do anything with path variables.
 
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Didn't you find installation instructions when you downloaded Java®? We have our own FAQ about installation, which tells you the usual method of installing a tar.gz download on Linux, or the special installer which seems to work only on Ubuntu.
You may find you have already got Java® however. Try the following instructions at a terminal:-
java -version
javac -version

and see what happens. If they both point to the same update number of Java8, you are probably all right to start programming without further ado.
 
Jeremy Bittinger
Greenhorn
Posts: 2
Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you both, yes java -version and javac -version both lead to 1.8.0_111 so I hope that means I'm good.
 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeremy Bittinger wrote:. . . java -version and javac -version both lead to 1.8.0_111 so I hope that means I'm good.

Yes, it does and it means I am “bad” because I am still on 1.8.0_102, so I had better go and see about downloading a new version of Java®.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic