![]() To check which java (openjdk) you've installed, check via: dpkg -l "openjdk*" | grep ^i ![]() To find where SDK Java folder is located, run the following commands: jrunscript -e '.println(("")) ' The most common issue is misconfiguration of your JAVA_HOME variable which should point to the right Java Development Kit library, if you've multiple installed. More information about this error is available in a blog post New javac warning for setting an older source without bootclasspath. With newer versions of the Java compiler you are likely to get a warning about the bootstrap class path not being set. ![]() To fix the actual problem you should try to either run the Java code with a newer version of Java JRE or specify the target parameter to the Java compiler to instruct the compiler to create code compatible with earlier Java versions.įor example, in order to generate class files compatible with Java 1.4, use the following command line: javac -target 1.4 HelloWorld.java The reported major numbers are: Java SE 20 = 64, ![]() The version number shown describes the version of the JRE the class file is compatible with. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |