0

I am trying to convert my .java file to .exe file, and I found a way to do that using launch4j. launch4j, though, requires a .jar file.

My question: What software should I use to convert my .java files to .jar? Also, I make java programs with jGRASP.

P.S. If You could give a walkthrough on how to use the software as well, I'd be grateful

  • 1
    Your title says java to jar, but your question says java to exe. Which is it? – Thomas May 13 at 8:08
  • Well, if there is a .java to .exe, I would love to know about it. But since I have only found .jar to .exe, I will have to find a .java to .jar converter. – Abu-Bakr Nuri May 13 at 17:18
0

I'm not really sure this falls under software recommendations as much as software instruction, but since it seems fairly easy, I'll tell you what I found.

First of all, I simply googled "jgrasp to jar". There are youtube links that claim to tell you how to create an executable jar, which may be what you want directly. Personally, I HATE video instructions. But if they work for you, they do exist.

The first actual link was a walkthrough showing how to use JGrasp to create a jar file.

I've never used JGrasp, so I'm not sure how helpful this will be, but it looked fairly thorough.

Again, as you are new, you may not be aware, but there is a good chance this question may get flagged as off topic, since you are asking how to use a program, not what program to use. There are other Stack Exchange sites that are better for support.

  • Exactly what I was looking for! Many Thanks! Also, sorry I am not asking the question correctly. – Abu-Bakr Nuri May 13 at 17:16
0

You are looking for a Java compiler.

The Oracle Java JDK is the most popular tool to compile Java source code.

If you choose the Netbeans package, you can import your Java files, compile them, and then generate a JAR via the graphical user interface.

It is free. If you prefer open source, OpenJDK is mostly based on the same source code and can do the same.

  • I tried that, but it didn't work. I think it is due to the fact I am using jGRASP .java files? Thanks anyways, it would probably work for other people's .java files. – Abu-Bakr Nuri May 13 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.