compiler warnings - Java version when using older target/source the api of the new java version is available -
this question has answer here:
- why javac “-source” flag doesn't work? 3 answers
i have java 8 installed , compile code target , source 1.6. works don't want code compile if there java 8 specific function in code. compiles if run on machine running java 6
java.lang.nosuchmethoderror: java.lang.float.isfinite(f)
is possible give error @ compile time?
you need set bootclasspath jdk 6 installation. otherwise use jdk 8 , find new classes , methods shouldn't using.
Comments
Post a Comment