- 196.8K All Categories
- 2.2K Data
- 238 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 437 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
JRE 8 Update 31 on a Windows 8 Machine "Java -version" not working
I'm working for a software development company. At the moment we are testing the functionality of Java 8 with our software and the use of Java 8 in our environment. For the installation we use an automatic installation of the .msi file for 32-bit and 64-bit Version of Java 8.
So far, everything is working fine on our test machines with Java 8 Update 31. The only thing we noticed was, that we had a couple of errors when we were checking the java version via console.
For example, when we upgrade a machine from Java 7 to Java 8, we first uninstall Java 7, reboot and then install Java 8. After that whole process we do get an error when we run the command "java -version".
Error: The command "java" was not found or is written incorrect (not exactly that error, cause we have a German version of windows).
This only happens on machines with windows 8
On a windows 7 machine we get the correct output:
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
We could resolve the issue on a windows 8 machine by adding the installation directory of java in the "path" systemvariable. Once the "C:\Program Files\Java\jre1.8.0_31\bin" is added, the command returns the correct output.
This workaround is not a good option in my opinion, because I don't want to setup some crazy GPO to hard code the installationdir into the systemvariable. I think the installer should handle this task for me.
Did anyone here run into similar issues with java on windows 8 or does anybody know a better way to fix the problem?