一个奇怪的问题......没有反映代码更改
我正在使用netbeans开发一个小程序,我有一段代码,如下所示:
ipAddresss = DEFAULT_IP;
System.out.println("portlet.services.hostname:" + ipAddresss);
现在我将其更改为如下所示:
ipAddresss = DEFAULT_IP;
System.out.println("portlet.services.hostname using default IP Address:" + ipAddresss);
但无论我做什么,它仍然会继续打印: portlet.services.hostname:null
I已尝试从文档和设置中删除所有 .netbeans 文件夹,尝试创建新项目,但现在我对这个问题完全感到困惑...
所以,问题是,无论我做什么,当我运行时都没有反映任何更改程序。可以有一个java applet缓存,netbeans缓存,我不知道为什么......
I am using netbeans to develop an applet, i have a piece of code which looked like this:
ipAddresss = DEFAULT_IP;
System.out.println("portlet.services.hostname:" + ipAddresss);
Now I changed it to something like this:
ipAddresss = DEFAULT_IP;
System.out.println("portlet.services.hostname using default IP Address:" + ipAddresss);
But no matter what I do, it sill keep on printing: portlet.services.hostname:null
I have tried deleting all .netbeans folder from documents and settings, tried creating new project, but now i am completely baffled by this issue...
So, the problem is, no matter what I do, no change is getting reflected when I run the program. Can there be a java applet cache, netbeans cache, i am not sure why...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我发现了这个问题,我在项目编译中包含了一个 jar,它与我尝试运行的文件具有完全相同的类,netbeans 总是从该 jar 中选择类,而不是新编译的类...
Ok, I found the issue, I was including a jar in project compilation, which had exact same class as the file i am trying to run, netbeans always picked class from that jar instead of newly compiled one...