Reputation: 488
I have a Java program that runs from command prompt / blueJ's terminal window fine.
Is there a way that I can run this from a browser?
I guess my question is, is there anything that simulates the terminal window in a browser?
If not, do you have a suggestion as to how to put this online? It uses scanner / system.out.println a lot.
Thank you
Upvotes: 2
Views: 1522
Reputation: 10136
There are two main technologies for helping publish a Java application via a browser:
It most most common to use Swing to develop the user interface of an Applet or Java Web Start application. So it might be interesting to read about how to emulate a console window in Swing.
Upvotes: 3
Reputation: 5099
I'm not sure if this helps, but when you access a website that uses Java, with your browser, you can decide to see the Java console, if you have it enabled in your Java settings. But only people with that option turned on will get to see it.
Otherwise you could use javascript to incorporate results into the html of the page, or maybe make an applet with a "console" included.
Upvotes: 1
Reputation: 1573
You can embed in an applet, not only GUI you can use applets to invoke any method. And you can view console view ,[ Java Icon pops up on system tray bar in windows,on right clicking on the java icon, you can view console ]
Upvotes: 0