Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

update version of java 1.7

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find update version of java 1.7 using java -version
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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.
 
Marshal
Posts: 69782
277
  • 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.
 
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
 
Sheriff
Posts: 15754
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • 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).
 
Ranch Hand
Posts: 99
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Junilu, will use the first java mapped over your PATH variable.
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic