Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT HELP!!

Status
Not open for further replies.

sleepyRascal

Programmer
Jul 9, 2004
5
0
0
GB
Currently working on an assignment but having problems. I have previously used netbeans 3.5.1 as my progrming software.

However, I recently downloaded the latest 3.6 version as 3.5.1 is no longer available. I keep getting the following messages..:

java.lang.NoSuchMethodError: main
Exception in thread "main"

I/O exception while reading: Connection timed out:
connect

These messages appear when I try to execute the programs. Sometimes the action window will appear and it seems the program is functioning correctly, but only a blank screen appears.

All the programs compile fine.

Is this most likely a software error, or a programing eror on my part???

Any help is much appreciated as I have next Monday as a deadline!!
 
URGENT REPLY !!! DON'T SHOUT.
ITS NOT NICE. YOU MAY BE HAVING A CRISIS BUT WE ARE NOT. ASK POLITELY AND YOU MAY GET A GOOD RESPONSE !!!

If you had searched the web for this error :

java.lang.NoSuchMethodError: main
Exception in thread "main"

you would see that you cannot execute a program that has no entry point - ie a "main" method.

You must have a method for the JVM to enter, that exactly matches this signature :

Code:
public static void main(String args[]) {
  // Instantiate my required objects.
}

--------------------------------------------------
Free Database Connection Pooling Software
 
Sorry bud.

I wasn't meaning to shout. Just getting a bit anxious at my end. Cheers for the help!!!!
 
no worries !

Did you get it to work ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Well the error message is now resolved.
I just simply get no responce when I ask the program to execute. And sometimes i get the following error:

I/O exception while reading: Connection timed out: connect

If the program compiles, with no errors, shouldn't it execute ok? I am testing this on very basic simple programs.
 
>>>> If the program compiles, with no errors, shouldn't it execute ok

No, there may well be runtime errors, such as connection timeouts ...

Check that whatever server you are trying to connect to is -
a) listening on the port you expect
b) Will allow incoming traffic
c) That firewalls etc are not blocking your calls

If you can telnet to the specific server/port then you should be OK, if not, then you have some hardware/firewall type problems probably.

--------------------------------------------------
Free Database Connection Pooling Software
 
ok nice one sedj,
Ill go and try all of these things.

Thanks again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top