netbeans - Downgrading from Java 7 to Java 6 -
for whatever reason had change pc's result of change have use java 6 (the final update) instead of java 7. when importing existing project java 6 following error in auto generated code generated netbeans , not modifiable
cannot find symbol symbol: variable type location: class window frame.settype(java.awt.window.type.popup); //type underlined the output error follows:
javac: invalid target release: 1.7 usage: javac <options> <source files> use -help list of possible options c:\users\adminstrator\downloads\netbeansprojects\netbeansprojects\pat0.3\nbproject\build-impl.xml:915: following error occurred while executing line: c:\users\adminstrator\downloads\netbeansprojects\netbeansprojects\pat0.3\nbproject\build-impl.xml:268: compile failed; see compiler error output details. what do? necessary, deleting component help? component it, there quick fix?
your build.xml specifies target="1.7" flag javac, java 6 doesn't know how interpret. changing 1.6 technically past error.
however, enum window.type added in java 7, can't expect changing target work; project's source uses java 7 features. i'm sure that's not one.
your options therefore methodically go through , remove/replace java 7 code (likely introducing bugs) or to.. install java 7.
Comments
Post a Comment