Posting an application online for research project
Is it possible to run a regular Java .jar on a website. I created a Java application for a research project and now my professor wants me to post it online. If it is not possible to post a .jar directly on a website, then what is the best way to develop a Java web application?
I researched a little and found that you need to create an applet to post on a website. Is there anyway to directly convert my application to an applet, or will I have to completely rewrite the program?
Re: Posting an application online for research project
Does the professor expect the app to be downloaded and then executed as an app on each client's PC (client would need the JRE)
or does he/she want an online app(ie html with applet in a jar) to run in a client's browser?
If as an applet, the app will have to be rewritten to work as an applet.
There is no automatic conversion of app to applet.
An applet is driven from a browser by the browser calling certain methods in the applet: init() and start(). The browser does NOT call the main() method. The constructor is called as usual.
The applet is given a spot in the browser's window to display in. The applet extends panel. Your app should be converted to build its GUI in a panel and then have that added to a frame for the app and to the applet's panel for the applet.