这是我尝试运行该项目时收到的消息:
ant -f "C:\\Users\\xxx\\Desktop\\Netbeans Projects\\CryptoFever2" -Dnb.internal.action.name=run run
init:
Deleting: C:\Users\xxx\Desktop\Netbeans Projects\CryptoFever2\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\xxx\Desktop\Netbeans Projects\CryptoFever2\build\built-jar.properties
Compiling 19 source files to C:\Users\xxx\Desktop\Netbeans Projects\CryptoFever2\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 8
C:\Users\xxx\Desktop\Eclipse projects\CryptoFever2\src\Interfaz\Login.java:193: error: unmappable character (0xF1) for encoding UTF-8
JOptionPane.showMessageDialog(frmCryptoFever,"Usuario o contrase?a incorrectas");
^
C:\Users\xxx\Desktop\Eclipse projects\CryptoFever2\src\Interfaz\New_user.java:177: error: unmappable character (0xE1) for encoding UTF-8
JOptionPane.showMessageDialog(frame, "El email introducido no es v?lido");
^
2 errors
1 warning
BUILD FAILED (total time: 0 seconds)
我关闭了netbeans,然后看到一条消息,例如“有打开的进程”。现在无法运行该项目。
预先感谢
编辑:我导出了项目,然后重新安装了JDK和netbeans,一切正常,
答案 0 :(得分:0)
我认为您的源文件存在编码问题。看来您的消息对话框中有一些带重音的字符,编译器无法处理。我会检查您的源文件的编码,以确保它们是UTF-8,并确保您的编译器设置为使用相同的文件。
另外,请参阅此帖子以获取类似的回复:"Unmappable character for encoding UTF-8" error