How can I compile a Java program in Eclipse without running it?

后端 未结 7 1740
感情败类
感情败类 2020-12-12 23:40

I would like to compile my Java program in Eclipse but not to run it. I can\'t understand how to do it.

How can I compile a Java program to .class files

相关标签:
7条回答
  • 2020-12-13 00:07

    Go to the project explorer block ... right click on project name select "Build Path"-----------> "Configuration Build Path"

    then the pop up window will get open.

    in this pop up window you will find 4 tabs. 1)source 2) project 3)Library 4)order and export

    Click on 1) Source

    select the project (under which that file is present which you want to compile)

    and then click on ok....

    Go to the workspace location of the project open a bin folder and search that class file ...

    you will get that java file compiled...

    just to cross verify check the changed timing.

    hope this will help.

    Thanks.

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