Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I updated my java VM to v8. But still my command promt shows version is 1.8 and i am unable to run java commands in PC. What is the exact issue ? give me some suggestions to rectify this.....
Java 8 and 1.8 mean the same thing. If java -version reports 1.8.0, then you are using Java 8. So there is no issue: nothing to rectify.
The official word on version numbers and names for Java 8 is in this Oracle document:
Java Platform, Standard Edition 8 Names and Versions.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have an application that's built in Java 10. Most users only have Java 8, so they would need to download Java 10 in order to use the application.
Would it be possible to make a launcher that could download Java 10 for them so they wouldn't need to think about that?
Since Java 9, there is a new tool named jlink that you can use to create a custom Java runtime environment with exactly the parts (modules) that your program needs. You could use this for your program, so that your users don't need to have a pre-installed Java runtime environment at all - you would give them the custom runtime environment included with your game.
Another possibility is to try to compile your program using JDK 8 - you can still download JDK 8 from Oracle. Depending on how you wrote your program, you might need to change a few things in your code to make it compile and run on Java 8.
You can distribute your app with JRE (i.e. that's what JetBrains do with their IDE's).
Official Java documentation about this solution:
https://docs.oracle.com/javase/10/deploy/self-contained-application-packaging.htm
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So if I wrote an application for windows 8-10 on java, would it work for old versions like windows 98. And will it work correctly?
Both of them got the newest versions of JRE for example.
Well, you can't install Java 8 on systems older than Vista, so some programs might not run (specifically ones that use Java 8 features and APIs). Otherwise, they would work the same way, unless you do some sort of hacks that may break things.
If you had done your project in oldest version of java supported in vista/xp/windows 7 systems your application works perfectly it only depends on java environment once if it is satisfied your application will run without any compactability issues.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have found a rising number of differences between the current release of 1.7 on windows and 1.7 on linux. For example Files.ReadAllBytes(Path path) does not exist in Linux (generates compiler error indicating invalid method) as well as us "||"" in a catch phrase so two or more exceptions will process through the the same code.
Does anyone know the extent of the divergence and if it is planned is to stay with different version of functionality for different platforms.
Regards
Theo.
Since you say that | is not supported in catch statement, you are very likely to use a JDK 1.6 on linux. Also Files.ReadAllBytes(Path path) is part of the public API, so it is available on each platform where the JDK is supported. This method is part of NIO2 JSR that was added in JDK 1.7, but is not available in JDK 1.6
You can check the version in your path using java -version in a shell.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to upgrade to Java 7 on my 2010 macbook pro running OSX Lion. I downloaded jdk 7u15 and it goes through the entire install procedure flawlessly. However when I went to add it into Eclipse I found it was not under System/Library/Java/JavaVirtualMachines as was Java 6. I can't find it anywhere.
On Mountain Lion, mine is in /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/
Use /usr/libexec/java_home -V on a Mac to see all JDK versions installed. (JDK 7 versions reside normally under /Library/Java/JavaVirtualMachines).
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is there a way to set Java 7 so it will update automatically? I using JDK Standard edition on windows 7, 64bit. Java 6 would check for updates automatically and prompt you to install them. However, Java 7 doesn't appear to have any update mechanism. Even the "Update" tab in the Java Control Panel is gone.
I think this might be the issue. From the Oracle Download Help pages:
Q: Why is the Update tab missing from the Java Control Panel?
A: Java Auto Update is currently not available for 64-bit versions of Java. 64-bit versions of Java do not include the Update tab in the Java Control Panel.
See also:
"Java control panel does not show update tab on windows-7-x64" on superuser.com.