Exporting an executable JAR file from Eclipse is by far the fastest way to start an Eclipse project from the command line on another computer. See this answer .
The problem is that if the JRE installed on the computer you want to run is older than the JDK used by Eclipse, you get this error:
java.lang.UnsupportedClassVersionError: test_hello_world : Unsupported major.minor version 51.0
I know that on Eclipse I can build a project with a lower level of compliance (e.g. 1.6 instead of 1.7 ), but this does not seem to affect the exported JAR file.
Any idea on how to export the executable JAR file that will be executed on the older JRE?
java eclipse executable-jar
Alphaaa May 24 '13 at 8:07 2013-05-24 08:07
source share