문제

I just need a simple environment of .class and .java files in a single folder so that I can execute java files later on using "java xx" in command line without adding any extra syntax. I'm not planning to use packages or sub-directories in my project and I won't be executing any files directly from eclipse either.

도움이 되었습니까?

해결책 2

I think you are looking for this:

Create new project->Java Project->In the Project Layout section change to 'User project folder as root for sources and class files' (using Eclipse Kepler, it should be similar in other versions of Eclipse).

But keep in mind that it might become a mess after some time.

다른 팁

You could create a executable jar file and run it from command line using:

java -jar MyApplication.jar

Here is the link to create an executable jar file from eclipse:

How to create an Executable jar file

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top