Eclipse - Finishing a program

前端 未结 2 1732
孤街浪徒
孤街浪徒 2021-01-29 15:28

I have created a Java program, and now I want to compile it, so I can send it to others to use, etc. How do I do this in Eclipse? I\'ve Googled it, but can\'t find it (O.o). Hop

相关标签:
2条回答
  • 2021-01-29 16:20

    Eclipse do this automatically for you, if Project->Build automatically is checked,Just look for the bin folder (projectName/bin) in your workspace.

    Also, you can create a runnable jar file by right clicking on your java file in eclipse and select export there. See this for more info.

    0 讨论(0)
  • 2021-01-29 16:24

    You probably need to create an executable Jar file - unless it is a web application. Google "eclipse create executable jar"

    On Windows for System.out.println to work you might need to use java instead of javaw. Please use separate StackOverflow questions for separate questions, and check for duplicate questions before asking.

    0 讨论(0)
提交回复
热议问题