目前在使用IDEA学习JAVA,遇到了一个奇怪的问题,我想运行当前单个程序,但是运行完总是弹出其他程序的错误,这怎么解决?


一个迅速的解决方法:


Run - Edit Configurations - Before launch 里面,把 Build 换成 Build, no error check , Apply之后按往常一样运行就可以啦。当然,前提是你这个main函数所依赖的所有class都没有错误

这样就跟eclipse里面一样了,如下图


<img src="https://pic2.zhimg.com/50/v2-dcfd767b834cd2f9eaaadbcf95cb62e2_hd.jpg" data-rawwidth="1221" data-rawheight="885" class="origin_image zh-lightbox-thumb" width="1221" data-original="https://pic2.zhimg.com/v2-dcfd767b834cd2f9eaaadbcf95cb62e2_r.jpg">IntelliJ IDEA如何运行单个程序?跳过错误项目中的错误JAVA类

相关文章:

  • 2022-12-23
  • 2021-09-30
  • 2021-04-24
  • 2022-12-23
  • 2022-02-06
  • 2021-07-17
  • 2021-12-31
  • 2021-09-10
猜你喜欢
  • 2021-09-02
  • 2021-09-10
  • 2022-12-23
  • 2021-07-02
  • 2021-10-25
  • 2021-05-07
  • 2021-04-21
相关资源
相似解决方案