Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
student:java:jar [2020/01/23 11:28] – Added the section on UnsupportedClassVersionError bernstdh | student:java:jar [2022/11/07 21:33] – [Testing an Executable .jar File] stewarmc | ||
---|---|---|---|
Line 55: | Line 55: | ||
==== Testing an Executable .jar File ==== | ==== Testing an Executable .jar File ==== | ||
- | + | If you just click/ | |
- | If you just click/ | + | |
| java -jar // | | java -jar // | ||
Line 69: | Line 67: | ||
</ | </ | ||
- | it means that you need to update your version of Java. When doing so, you need to be careful because many systems have both the Java Runtime Environment (JRE) and the Java Development Kit (JDK) installed, and updating the one may not update the other. In Linux/OSX you can use %% which java%% and in MS-WIndows you can use %%where java%% to find the path to the Java interpreter. You can change the %%path%% environment variable (not the %%classpath%% environment variable) to change which Java interpreter is used (i.e., either the one installed with the JRE or the one installed with the JDK). | + | it means that you need to update your version of Java. When doing so, you need to be careful because many systems have both the Java Runtime Environment (JRE) and the Java Development Kit (JDK) installed, and updating the one may not update the other. In Linux/OSX you can use '' |
==== Using Resources in a .jar File ==== | ==== Using Resources in a .jar File ==== |