• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

update version of java 1.7

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79828
388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17665
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agree with Junilu, will use the first java mapped over your PATH variable.
 
No holds barred. And no bars holed. Except this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic