954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to run Applet in a web server

I need help for my program

I need to run a applet in a server(tomcat) and the applet(a 2 player game) should be available for playing.

Now, iam able to load applet in the browser, but each browser is running its own instance of the applet.

I need a single instance.

forgive me if i said something wrong, Iam new to Java.

zoom2arun
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

I am not a Java expert by any mean but I can assure you that Java Applets are meant to be run on client side not on the server.

apsivam
Newbie Poster
19 posts since Apr 2007
Reputation Points: 12
Solved Threads: 4
 

I do agree, but see i have made a game using applet and for it to be able to played by multiple people, it should be run in a server....right?

zoom2arun
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

not necessarily!
enable some sort of communication between the two instances through your server.

apsivam
Newbie Poster
19 posts since Apr 2007
Reputation Points: 12
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You