This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Applets and the fly likes applet start up failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet start up failed " Watch "applet start up failed " New topic
Author

applet start up failed

kahkean chor
Ranch Hand

Joined: Jan 26, 2013
Posts: 56
can some one help to correct my code? my applet was hang due to line 06...


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41635
    
  55
Using a ServerSocket in an applet has a bad smell. What are you trying to achieve?

But regardless, you should not do such stuff in the init() method - move it into its own thread, so that the init() method can return quickly.


Ping & DNS - my free Android networking tools app
kahkean chor
Ranch Hand

Joined: Jan 26, 2013
Posts: 56
multi chat room..........................
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41635
    
  55
For starters, I would use a JavaWebStart app for this, not an applet.

Is the applet properly signed? Otherwise, networking is pretty much a non-starter; using a ServerSocket definitely is.

I'm curious: Is there a central server involved somehow? If not, how will the clients get to know about one another?
 
wood burning stoves
 
subject: applet start up failed