Help - Search - Members - Calendar
Full Version: Java Server
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > Other Languages
light232
well..i want to know if there is a way to run a java server on the webserver..either .class files or a .jar any help appreciated
Soul Of Me
If the client only have 1 file, then you only need to compile it, and upload the .class file, if it contains many javafiles, and/or classfiles, then you need to make it to a Jar.
MH-Dolly
QUOTE(light232 @ Aug 7 2008, 02:16 PM) *
well..i want to know if there is a way to run a java server on the webserver..either .class files or a .jar any help appreciated

I must be more specific.
Usually the java server (a class or jar) don't need a web server to run. You can made client server desktop java applications without using a web server.
jane0109
Oh I see now I know where I did go wrong when I tried uploading in my client server.
GrahamThorpe
You must create .class file and create .jar file which will be run on a server when server started.
aussiemcgr
you dont always need to create a .jar file.

If you are running an applet, make sure all the class files are in the same folder as your page, and include the following code to embed it:

CODE
<applet
    code    = "main.class"
    width    = "300"
    height = "300"
    >
</applet>


For the code = "main.class" part, change the word "main" to the name of your client class or interface.

As long as the .class files and the webpage file are in the same folder, you shouldnt have a problem. The .class files will be able to interact with each other without problem as long as they are together.

If you dont have a crazy large project, it is an easy way to embed Java Applets.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.