简体   繁体   English

NetBeans IDE 没有看到变化

[英]NetBeans IDE not seeing changes

This morning I made a change to a class (UnitCell) in one of my projects (CrystalSystem).今天早上,我在我的一个项目(CrystalSystem)中对 class(UnitCell)进行了更改。 I rebuilt all the projects (jars) that use the affected project/class (CrystalSystem).我重建了所有使用受影响项目/类(CrystalSystem)的项目(jar)。 I tested all the projects to make sure they see the change.我测试了所有项目以确保他们看到了变化。 They do.他们是这样。 However, when I run the main project, which uses all the other projects/jars I have tested, the change is not seen in any of them.但是,当我运行使用我测试过的所有其他项目/jar 的主项目时,在其中任何一个中都看不到更改。 The change IS seen when I just run the jar outside of the IDE.当我在 IDE 之外运行 jar 时,就会看到这种变化。

What is stranger is when I create a NEW class in the project CrystalSystem.奇怪的是,当我在 CrystalSystem 项目中创建一个 NEW class 时。 That is seen in the IDE.这在 IDE 中可以看到。

I think something is in the setting or environment or whatever, that is causing this issue.我认为环境或环境中存在某些东西,导致了这个问题。 Is there anyway to clean out the memory of this updated class so that this other class can now recognize the updates?无论如何要清除此更新的 class 的 memory 以便其他 class 现在可以识别更新?

thanks谢谢

Try to clean cache or delete the build directory if you are using Gradle.如果您使用的是 Gradle,请尝试清理缓存或删除构建目录。 IntelliJ IDEA is the best IDE for Java. IntelliJ IDEA 是 Java 的最佳 IDE。 There you can solve such a problem with one button.在那里,您可以一键解决此类问题。 I recommend you to try IntelliJ.我建议您尝试 IntelliJ。

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

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