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.
Related
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 4 years ago.
Improve this question
We are working in the project of migrating a application(built in java 5)
to java 8 for better performance,
But , we are not sure that
1. upgrade an environment or
2.Build that complete app in java 8 from scratch,
and how it will improve the performance !
And we know that, There will be some Deprecated API's from version to version.
so, while upgrading is it possible to get error or miss some functionality ?
How can We rectify that?
Please comment your suggestions !
Java has full backward compatability, So
If you just change java version then it will not have any errors as java8 is fully compatible with previous java versions.
If you want to improve performance using java8, Then you have to read java8 release notes to know where you can get faster alternative of current code and then you can only re-wright that functionality only
firstly you can always migrate to newer version of java as java is backward compatible. Also, you are right, few API's might have been deprecated but you always have the new options of those which can be solved.
My suggestion would be, if you don't have huge code or a bulky API, re-write the same in new version as u might utilize benefits of functional programming.
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 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 7 years ago.
Improve this question
I installed the CLoin 1.05 on my Mac, and it says
Unsupported JVM: non-apple java is not supported
It guides me to download the Apple's java from Java for OS X.
What is the different between Oracle's java and Apple's java? Must I download the Apple's java ?
The error message
Unsupported JVM: non-apple java is not supported
Means that yes, if you want to use CLoin 1.05 on your Mac you'll need to install the Apple JVM.
JetBrains Support (Mac OS X)
Selecting the JDK version the IDE will run under
says (in part)
At the moment all our products require Apple JDK 1.6 to be installed in order to run on Mac. JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default. Oracle JDK 1.7.0_40 has added support for Retina and works much better than previous versions on Mac. You are welcome to give it a try in case you have any problems with Apple JDK.
To force running under JDK 1.7 edit /Applications/<Product>.app/Contents/Info.plist file, change JVMVersion from 1.6* to 1.7* :
<key>JVMVersion</key>
<string>1.7*</string>
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.
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'd like to use some Java8 features in my program. But I should deliver the program within 10 days and seeing that JRE 8 isn't available by oracle worries me. I see that Java8 features have been estabilished and looks to be very stable. My project is in the production camp and not for experiment.
When I search java runtime environment 8 or 1.8 I find nothing published by oracle. Am I making a mistake or I will have to install JDK8 for the client(The worst option). Or I should rewrite all the Java8 codes and make the software compatible with Java7.?
Is there another vendor who has the Java8 ready and if there is, is it wise to use their JRE in spite of the oracle one? Will it remain compatible?
Java 8 is not yet officially released, not from Oracle or any other vendor. There exists pre-release versions, but for a fully supported solution you have to wait until next year. You shouldn't depend on java 8 features yet for production quality code.
Update
Java 8 was fully released on 18 March 2014. It can be downloaded here (jre) or here (jdk).