java文件无法编译成class文件
使用NetBeans编译文件时,无法生产class文件,提示:警告: [options] 未与 -source 1.5 一起设置引导类路径。
请问那位大侠知道这种情况是什么问题?该如何处理?谢谢!
项目清理并生成时输出如下:
init:
deps-clean:
Updating property file: E:\Project2\Aladdin\build\built-clean.properties
Deleting directory E:\Project2\Aladdin\build
clean:
init:
deps-jar:
Created dir: E:\Project2\Aladdin\build
Updating property file: E:\Project2\Aladdin\build\built-jar.properties
Created dir: E:\Project2\Aladdin\build\classes
Created dir: E:\Project2\Aladdin\build\empty
Compiling 198 source files to E:\Project2\Aladdin\build\classes
警告: [options] 未与 -source 1.5 一起设置引导类路径
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\bsd\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\smtp\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\tftp\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\ftp\parser\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\io\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\echo\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\daytime\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\discard\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\pop3\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\imap\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\nntp\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\chargen\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\finger\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\telnet\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\ftp\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\whois\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\util\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\time\package-info.class
Creating empty E:\Project2\Aladdin\build\classes\org\apache\commons\net\ntp\package-info.class
Copying 28 files to E:\Project2\Aladdin\build\classes
Copied 9 empty directories to 2 empty directories under E:\Project2\Aladdin\build\classes
compile:
Created dir: E:\Project2\Aladdin\dist
Copying 1 file to E:\Project2\Aladdin\build
Copy libraries to E:\Project2\Aladdin\dist\lib.
Building jar: E:\Project2\Aladdin\dist\Aladdin.jar
To run this application from the command line without Ant, try:
java -jar "E:\Project2\Aladdin\dist\Aladdin.jar"
jar:
成功生成(总时间:1 秒)
------解决方案--------------------我的异常网推荐解决方案:java环境变量设置,http://www.myexception.cn/java-other/172921.html
------解决方案--------------------重新配一次下环境
------解决方案--------------------环境变量配置检查一下