Hello, am new to the real programming but i have very much interest.
As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is:
Should it load as a server.and if so how do i get it to listen for connections and read any incoming input stream, b'se when I try putting the server code in the GUI interface constructor, it keeps throwing the socketexception:socket not connected. I dont know how to listen before any client connects and yet get the input. Anyway, am just confused right now. Some one just bail me out.
Thanx.
sitajaf
0
Newbie Poster
Recommended Answers
Jump to Posthow to listen before any client connects
Use the ServerSocket class.
Jump to PostWhen I try to launch my JNLP file, I get the following error:
MissingFieldException[ The following required field is missing from the
launch file: (|||)]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Jump to PostSorry, I've never worked with JNLP. I have no ideas on how to use it.
Jump to PostWhy not use normal Java Compiled files even Jar files?
Are you making an applet or just Desktop app?
All 13 Replies
maceman
-4
Posting Pro
NormR1
563
Posting Sage
Team Colleague
princehellan
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Stefano Mtangoo
455
Senior Poster
Krefie
5
Light Poster
sitajaf
0
Newbie Poster
sitajaf
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
VirtualAssist
-6
Newbie Poster
Stefano Mtangoo
455
Senior Poster
sitajaf
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
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.