Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingOther Languages right
  Closed Topic Start new topic
left right
light232
post Aug 7 2008, 02:16 PM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 12-July 08
Member No.: 45,468



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
Go to the top of the page 
 
  + Quote Post
Soul Of Me
post Sep 11 2008, 08:17 PM
Post #2


Newbie
*

Group: Members
Posts: 24
Joined: 18-January 08
Member No.: 7,304



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.
Go to the top of the page 
 
  + Quote Post
MH-Dolly
post Dec 9 2008, 02:36 PM
Post #3


Newbie
*

Group: Members
Posts: 20
Joined: 9-December 08
From: Romania
Member No.: 72,335



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.
Go to the top of the page 
 
  + Quote Post
jane0109
post Jan 31 2009, 02:13 PM
Post #4


Newbie
*

Group: Members
Posts: 8
Joined: 24-January 09
Member No.: 78,999



Oh I see now I know where I did go wrong when I tried uploading in my client server.
Go to the top of the page 
 
  + Quote Post
GrahamThorpe
post Apr 29 2009, 06:26 PM
Post #5


Newbie
*

Group: Members
Posts: 1
Joined: 29-April 09
Member No.: 93,137



You must create .class file and create .jar file which will be run on a server when server started.
Go to the top of the page 
 
  + Quote Post
aussiemcgr
post May 1 2009, 02:07 AM
Post #6


Marvellous Ninja
******

Group: Members
Posts: 536
Joined: 6-July 08
From: Orlando, Florida
Member No.: 43,434



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.
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 18th June 2013 - 11:25 PM