Java Server, help appreciated :D |
||
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.
Zymic Webmaster Forums Web Design & Development Server Side Scripting Other Languages |
||
![]() |
Java Server, help appreciated :D |
||
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
|
|
|
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.
|
|
|
Dec 9 2008, 02:36 PM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 20 Joined: 9-December 08 From: Romania Member No.: 72,335 |
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. |
|
|
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.
|
|
|
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.
|
|
|
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. |
|
|
![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 18th June 2013 - 11:25 PM |