Portal Home > Knowledgebase > Articles Database > JAVA on webpage
JAVA on webpage
Posted by BostonGuru, 05-17-2007, 04:29 PM |
I have a project I wrote in JAVA (not javascript) in eclipse, and it pops up as a window using swing. I want to be able to now put the project as a frame within a webpage. I assume there is some sort of wrapper code to implement the java runtime environment, but I do not know what it is. I want to be able to upload the .java files to a relative folder, then run the program on the webpage. I have seen it done on other pages, but I dont know how to do it. Does anyone have any links to tutorials for this sort of thing?
|
Posted by stdunbar, 05-17-2007, 04:37 PM |
Most likely you'll want to create a Java Applet. This embeds the running of the Java program in the browser.
You'll have to have compiled your code into at least a .class or, more likely, a .jar file for distribution. I'd really encourage you to read the information in the link as I think that is what you'll want.
|
Posted by stuffradio, 05-17-2007, 05:45 PM |
Well when Java code is compiled the .class file is automatically created. What IDE are you using to code your Java? Or are you just using Notepad?
|
Posted by BostonGuru, 05-17-2007, 07:24 PM |
I am using eclipse to code. Thanks for that link. That definitely has some useful information on it.
|
Posted by kevinharris, 06-08-2007, 01:22 PM |
As stated before, a Java applet would probably be the way to go. However, you could try to use JSP to achieve your goal.
|
Posted by Codelphious, 06-10-2007, 01:46 PM |
Converting a Java Application into a Java Applet is no easy task. The two utilize almost entirely different libraries for all sorts of things like imaging/audio/GUI/etc.
That being the case, there is no "wrapper" class to convert a Java Application into a Java Applet. You have to start from the beginning with the intent of making a Java Applet.
|
Add to Favourites Print this Article
Also Read
Cpanel & SSL (Views: 454)