I downloaded the JDK and have started making simple applications (ex: Hello World). Is it possible to put this onto a website, and if so how do I go about doing that?

according to your hello world application , is it a java se or ee application if it was se app. so it's a desktop application which you can't put on a website , on the other hand if you were using a java ee you can put it on a website but firstly you need to upload it to a server which will publish it over the internet.

Can you be more specific in what way you will put them onto a website? Usually you something onto a website that has a GUI (Graphics user interface)
How will the console application run on the net?

Well, i guess you are actually talking about Java Applets.. What you have read is Java Application.. Java Program has Application and Applet.. The Applet is the java program you use for Web Designing..

what you are talking about can be done using the model view controller paradigm in java ee.. it uses a combination of servlets (controller)/JSP (view)/javabeans (model) to execute java code on a website.

so your the first step is to go to netbeans and start a web project. you will need a server for this (tomcat or glassfish) which is inbuilt with netbeans.. after that, put your java code under the src directory, this is the javabeans part of your code. you will need to make your jsp pages under the web directory, which contains HTML code interspaced with ways to retrieve data from you javabeans file. the servlets (which is just a java file) will contain code to control what happens..

here is a great pdf that got me started (for the example, look at page 13):
http://pdf.coreservlets.com/MVC.pdf

however, since you are new to java, perhaps you should focus on the keyword "applets" first and also learn the basics first..

Edited 6 Years Ago by Dhruv Gairola: n/a

This article has been dead for over six months. Start a new discussion instead.