• Post Reply Bookmark Topic Watch Topic
  • New Topic

update version of java 1.7  RSS feed

 
kri shan
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find update version of java 1.7 using java -version
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you run the command java -version you will see something like this:

C:\Users\jdejong>java -version
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)


Notice the version number, it mentions the update number. I have Java 7 update 72 installed.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would run javac -version too.
campbell@campbellsComputer:~/java$ javac -version
javac 1.8.0_25
In which case it is 8u25.
You can find what the most recent updates are here.
 
Jessica Stensrud
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last time I installed and set up Java jdk about a year ago, it was jdk1.7.0 - I think someone at our development team recommended that - a few days ago I had to uninstall all my java jdk stuff because only a certain version could be there in order to run some business courses that my manager wanted me to take. Now that's done, I go to Oracle and see that the latest version of jdk is 8u25. Should I just go ahead and install that and update my Path environment variable? Thanks
 
Junilu Lacar
Sheriff
Posts: 11481
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jessica Stensrud wrote:a few days ago I had to uninstall all my java jdk stuff because only a certain version could be there in order to run some business courses that my manager wanted me to take.

I don't know if you really had to uninstall over other versions of Java. There are ways to manage multiple versions of Java without uninstalling. On my Mac, I run the java_home utility and I have all versions from JDK 6 to 8 installed. If I need to switch to a different version of Java, it's a quick trip to a Terminal window to run one command (I wrote a shell script to make it even easier).
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Junilu, will use the first java mapped over your PATH variable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!