java - Different JRE for Runtime and Compiling in Grails STS environment -
i working on migrating grails app java 6 java 7. in order this, plan continue compile in java 6 , change runtime environment java 7. migrated through environments. after complete build server have upgraded java 7 things start compiling in java 7.
the issue having replicating environment on local machine work on issues such incompatible class change error. have set build path point java 6 jdk changed preferences -> java -> compiler 1.6 compliance changed preferences -> java -> installed jres use java 6 jdk.
when call system.getproperty("java.class.version")
expect receive 50.0 indicating class files compiled java 6. however, receive 51.0 indicating compiling in java 7.
what else there need change?
right click on project -> properties -> java compiler , uncheck enable project specific settings.
if doesn't works go [your grails workspace path]/.metadata.plugins\org.eclipse.debug.core.launches , edit files contain java path spot correct one
Comments
Post a Comment