简体   繁体   English

在netbeans中运行项目不会重新创建jar

[英]Running project in netbeans doesn't recreate the jar

I'm having this strange problem that just started recently, and I can't figure out what I did to mess it up. 我有一个刚刚开始的奇怪问题,我不知道该怎么做。

Basically, though my files are actually compiling every time I press save, when I press run, it doesn't notice that the files were changed, and it just uses the same jar that was there before, without updating from my changed code. 基本上,尽管我每次按保存时实际上都是在编译文件,但是当我按运行时,它不会注意到文件已更改,它只是使用以前的相同jar,而不会从更改后的代码中进行更新。 The only thing I can do to notice that I changed the code is to clean and build, which of course takes a very long time and slows down my development. 我唯一能注意到更改代码的是清理和构建,这当然会花费很长时间,并且减慢了我的开发速度。

I use git, and I added a target for launch4j ( Launch4J - how to attach dependent jars to generated exe ), but it was working since then and changing back my build.xml didn't help. 我使用git,并为launch4j添加了一个目标( Launch4J-如何将依赖的jar附加到生成的exe ),但是此后一直有效,并且改回build.xml并没有帮助。

Mysterious. 神秘。

I still don't know what got Netbeans into this unstable state, but I realized that I haven't exited Netbeans in several days, so I restarted the program and now it works fine. 我仍然不知道是什么使Netbeans进入了这种不稳定状态,但是我意识到我已经几天没有退出Netbeans了,所以我重新启动了程序,现在它可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM