NetBeans IDE 7.2 保存键虚显,无法保存。请教。
netbeans吧
全部回复
仅看楼主
level 2
xue_xueyi 楼主
NetBeans IDE 7.2 保存键虚显,无法保存。
运行后提示没找到主类
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" Java Result: 1
请教高手错误原因。
2012年12月05日 09点12分 1
level 2
xue_xueyi 楼主
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package shishi; /**
*
* @author Administrator
*/
public class Shishi { /**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("欢迎使用NetBeans,这是第一个例子。");
}
}这个是程序
2012年12月05日 09点12分 2
NetBeans IDE 7.2外成功运行
2012年12月05日 09点12分
level 7
帮顶。
为什么有提示JNI呢? 令人迷惑。
你从Netbeans中新建一个Java样例试试,比如AnagramGame,项目菜单点“清理并构建”看看能不能成功编译。
我用的NetBeans 7.2.1和JDK 7 x86。
2012年12月07日 06点12分 3
有人回应了,先谢谢,再去试试。[呵呵]
2012年12月07日 07点12分
回复 xue_xueyi :还是不行,
2012年12月07日 07点12分
回复 xue_xueyi :换了低版本的netbeans,好了。谢谢!
2012年12月14日 01点12分
1