How to use my java application as a normal software?

by 3 replies
4
May be this is some thing interesting-or may be stupid, I don't know.
This is what, I just created a very small java application(using javax.swing.*) and this is what it does, it asks two number inputs from the user and when the user press enter after that, it returns the sum of them on a default small window.
But I code this with notepad and saved as somename.java and I compiled this in cmd.
So this is my question, how can I run this application as a normal software like that we click on the notepad icon on the desktop and opens it.
Can I run this by creating something like an icon and click it to open my simple user interface.
I don't know much about java. So please explain me this. Thanks all.
#programming #application #java #normal #software
  • You should read the documentation and find how to package your application into a JAR file.

    Assuming the user has java installed, they can then double click your JAR file and run it like you would with any other executable.
    • [ 1 ] Thanks
  • you need to use a java to exe compiler
    • [ 1 ] Thanks
  • Make it installable? Is what you want? Then there is a solution.

    Go to Excelsior Jet, download it, it is free for open source applications. Download it and use it.

    First keep your java file in a jar file. For this,

    Then, in Excelsior Jet add this file to the classpath and thereafter everything is what you know

Next Topics on Trending Feed

  • 4

    May be this is some thing interesting-or may be stupid, I don't know. This is what, I just created a very small java application(using javax.swing.*) and this is what it does, it asks two number inputs from the user and when the user press enter after that, it returns the sum of them on a default small window. But I code this with notepad and saved as somename.java and I compiled this in cmd.