java - Error while building project in Netbeans -
i transferring project source 1 pc another. when click clean , build main project
run
menu of netbeans, got error:
init: deps-clean: updating property file: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\built-clean.properties deleting directory e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build clean: init: deps-jar: created dir: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build updating property file: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\built-jar.properties created dir: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\classes created dir: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\empty created dir: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\generated-sources\ap-source-output compiling 2 source files e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\build\classes javac: invalid target release: 1.7 usage: javac <options> <source files> use -help list of possible options e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\nbproject\build-impl.xml:605: following error occurred while executing line: e:\backup\my documents (backup)\netbeansprojects\accountstatuschanger\nbproject\build-impl.xml:246: compile failed; see compiler error output details. build failed (total time: 0 seconds)
what do? need reinstall sdk?
it looks if original machine has jdk 7 installed , project configured target, second machine has older version.
- you can configure project target 1.6 or 1.5,
or
- if need jdk 7 you'll have install in second machine.
Comments
Post a Comment