简体   繁体   English

是否可以在Xcode中编辑,编译和运行Java代码?

[英]Is it possible to edit, compile and run Java code in Xcode?

I am using Java for my CS class at school, and I am currently using IntelliJ IDEA as my IDE. 我在学校的CS课上使用Java,目前正在使用IntelliJ IDEA作为我的IDE。 Along with this, I am using C++ for my personal projects/college course. 与此同时,我还在个人项目/大学课程中使用C ++。 Is there any way to edit, compile, and run Java in Xcode so I don't have to switch IDEs? 有什么方法可以在Xcode中编辑,编译和运行Java,所以我不必切换IDE?

My current Xcode version is Xcode 8.0 (8A218a). 我当前的Xcode版本是Xcode 8.0(8A218a)。 I would like to run using Java 1.8.*. 我想使用Java 1.8。*运行。

When I was in school, I attempted to do the same exact thing and I found that it took too much time compiling my Java code in Xcode, switching to my terminal to execute the executable, etc. In short, if you enjoy using Xcode, feel free to use it as a text editor but you won't get much use out of it beyond that using Java. 当我在学校时,我尝试做同样的事情,发现花太多时间在Xcode中编译Java代码,切换到终端以执行可执行文件,等等。简而言之,如果您喜欢使用Xcode,可以将它用作文本编辑器,但除了使用Java之外,您不会从中获得太多使用。

Not to mention, if you decide to pursue a career as a Java Developer, you're far better off mastering an IDE such as IntelliJ or Eclipse; 更不用说,如果您决定从事Java开发人员职业,那么最好掌握IntelliJ或Eclipse等IDE。 most companies if not all use them. 大多数公司(如果不是全部)都使用它们。 Good luck! 祝好运!

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

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