简体   繁体   English

如何导出IntelliJ IDEA项目以在没有IntelliJ IDEA的另一台计算机上进行编译

[英]How to export IntelliJ IDEA project for compiling on another machine without IntelliJ IDEA

I wrote a Java program using IntelliJ IDEA. 我使用IntelliJ IDEA编写了一个Java程序。 Now I want to compile my source code on another machine which has no IntelliJ IDEA and only has javac. 现在,我想在另一台没有IntelliJ IDEA且只有javac的机器上编译源代码。 How can I export IntelliJ IDEA project as pure Java source code tarball so that I can compile my source code on that machine? 如何将IntelliJ IDEA项目导出为纯Java源代码tarball,以便可以在该计算机上编译源代码?

Ideally you should be using a build system such as Maven or Gradle . 理想情况下,您应该使用MavenGradle之类的构建系统。 This will remove the burden of depending on IDE settings and is support by all Java IDEs 这将消除依赖于IDE设置的负担,并且得到所有Java IDE的支持。

Now if you still insist on using an IDE only without a build system. 现在,如果您仍然坚持只在没有构建系统的情况下使用IDE。 The export feature in IntelliJ and Eclipse both will come handy for you IntelliJ和Eclipse中的导出功能都将为您提供方便

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

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