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.

Recommended Answers

All 3 Replies

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.

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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.