Netbeans平台版本8.0.2,已安装jdk1.8.0_40,项目构建失败,错误提示 javac:无效的目标发行版:1.8
具体错误如下图:不知道哪里错了,求大神赐教!!!跪谢~~~E:\nbworkspace\autopsy-develop\netbeans-plat\8.0.2\harne...
具体错误如下图:
不知道哪里错了,求大神赐教!!!跪谢~~~
E:\nbworkspace\autopsy-develop\netbeans-plat\8.0.2\harness\suite.xml:187: The following error occurred while executing this line 代码如下:186-191行
<target name="build" depends="-init,branding,release,-hide-excluded-modules" description="Build all modules in the suite."> <subant target="netbeans" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false"> <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects --> <property name="harness.taskdefs.done" value="${harness.taskdefs.done}"/> <!-- optimization --> </subant> </target>
E:\nbworkspace\autopsy-develop\netbeans-plat\8.0.2\harness\common.xml:220: Compile failed; see the compiler error output for details. 代码如下:
<nb-javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false" fork="${javac.fork}" > <classpath refid="cp"/> <compilerarg line="${javac.compilerargs}"/> <processorpath refid="processor.cp"/> </nb-javac> 展开
不知道哪里错了,求大神赐教!!!跪谢~~~
E:\nbworkspace\autopsy-develop\netbeans-plat\8.0.2\harness\suite.xml:187: The following error occurred while executing this line 代码如下:186-191行
<target name="build" depends="-init,branding,release,-hide-excluded-modules" description="Build all modules in the suite."> <subant target="netbeans" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false"> <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects --> <property name="harness.taskdefs.done" value="${harness.taskdefs.done}"/> <!-- optimization --> </subant> </target>
E:\nbworkspace\autopsy-develop\netbeans-plat\8.0.2\harness\common.xml:220: Compile failed; see the compiler error output for details. 代码如下:
<nb-javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8" deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false" fork="${javac.fork}" > <classpath refid="cp"/> <compilerarg line="${javac.compilerargs}"/> <processorpath refid="processor.cp"/> </nb-javac> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
2015-04-07
展开全部
楼主,看状况应该是JAVA和版本太高了,使用1.6\1.7试试吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询