javaeclipseexceptionexecutable-jarrunnable-jar

Creating Runnable jar file of lower version


I currently have java version of 1.8 but i want to make a Runnable jar file of version 1.7 through eclipse because i'm not able to execute the generated jar file of version 1.8 on the server. So that, I want to downgrade the version of the jar file. Please tell me some steps to do it.


Solution

  • Change your java compilation version on project level to Java 1.7 and then make jar from eclipse:

    Go to project setting Right click -> Properties

    enter image description here