简体   繁体   中英

Converting java files to an executable file for a 1st timer

I have seen other posts about this but I honestly don't know what to do with that information. Can someone explain to me what exactly I need to do please?

I'm using JCreator

Assuming you are using eclipse: Right Click on your project->Export: Export it as an executable JAR. That will allow you to run your program directly from that jar file.

It really comes down to what IDE your using, some have that ability, directly under the menu "file" or "project", where you can them select "export as". Some IDEs however, do not have that ability and only allow you to export as a jar file. If that's the case, you need a third party software to do that for you.

An IDE is the platform you are using to debug your code.

With JCreator you can follow the below process.

  1. Click on Configure/Options.
  2. Click on Tools in the left column.
  3. Click New, and choose Create Jar file.
  4. Click on the newly created entry Create Jar File in the left column under Tools.
  5. Edit the middle line labeled Arguments: it should have

    cvfm $[PrjName].jar manifest.txt *.class

  6. Click OK.

For more information you can refer this article

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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