I'm doing my academic project currently. Its based on swings and awt. I am running it in command prompt. Is there any possibility for me to run it on a browser
-
You could try to convert to an applet, your client computer have to install java plugin, besides it's no way. – Carlos487 Apr 04 '14 at 14:10
4 Answers
In order to run a Java application in a browser, you need to make it (or wrap it) in an Applet. A Swing application is actually usually designed as a desktop application (meaning, standalone). Applets tend to be pretty resource-intensive for your user.

- 11,402
- 13
- 60
- 84
-
@user3498446 For that, see the following answer: http://stackoverflow.com/a/10102327/1435657 As a side note, you should mention those kinds of requirements in your original post. It's always good to include more details so that we can help better. :) – asteri Apr 04 '14 at 14:15
You should create an applet probably, that could run in a browser.
An applet can have GUI part too similar to a desktop GUI app.
The GUI of the applet can be based on Swing or AWT.
See also:
http://docs.oracle.com/javase/7/docs/api/java/applet/Applet.html

- 38,363
- 16
- 94
- 159
Take a look at Java Web Start which will allow you to deploy your application as is without any redevelopment of the code.

- 158,255
- 15
- 216
- 276
-
-
It's fairly straightforward once you follow the steps plus a number of advantages, updates for new jars, Javascript interaction, more professional – Reimeus Apr 04 '14 at 14:20
The First Suggestion is to use Applets. If that is not confortable for you and if you have a simple Swing application, I would recommend that you look at AjaxSwing
I onced used it on a simple Application and it works. Webstart is another Way to go. You have Options to take, pick the one that works best for you.

- 4,044
- 30
- 100
- 168