| | |
Error running Java
Thread Solved
![]() |
I was executing a simple core java application using JDK1.5
I wrote code and complied using javac it gave some errors that i fixed and at last it got complied successfully But when i tried to exeute it using java it gave me an error message
Error in thread main.NoSuchMethodFound error:main
Ok now i wanna know why i got this error message , i tried to place the java file in Bin folder and eecute it from there but it didnt worked out.
Can anybody explain me waht to do in such case and how to egt rid of this problem
I wrote code and complied using javac it gave some errors that i fixed and at last it got complied successfully But when i tried to exeute it using java it gave me an error message
Error in thread main.NoSuchMethodFound error:main
Ok now i wanna know why i got this error message , i tried to place the java file in Bin folder and eecute it from there but it didnt worked out.
Can anybody explain me waht to do in such case and how to egt rid of this problem
First of all, never place anyting into the "bin" directory of jdk (or really in any directory of the jdk/jre).
Second of all, does your class contain the following method defintion:
and I mean that exact method definition? Bcause the error you listed, says it does not.
Second of all, does your class contain the following method defintion:
Java Syntax (Toggle Plain Text)
public static void main(String[] args) { // your code here }
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Mark as Solved | Show Printable Version | Email this Page | Unsubscribe from this Thread
can You see this ... just see above ur first post
and click that link Mark as Solved
ok
can You see this ... just see above ur first post
and click that link Mark as Solved
ok
Adios,
Vinod......
Vinod......
![]() |
Similar Threads
- error running downloaded web app (ASP.NET)
- Error while running VB6 application in Windows XP and Windows 2003 server (Visual Basic 4 / 5 / 6)
- Program Compiles fine, but error upon Running (Java)
- Error trying to run java application (Java)
Other Threads in the Java Forum
- Previous Thread: Class & method Boolean
- Next Thread: Putting files in Jlist
| Thread Tools | Search this Thread |
-xlint add android api applet application applications array automation bank bi binary blackberry bluetooth chat class clear client code codesnippet collections compile compiler component database development dice ebook eclipse equation error event formatingtextintooltipjava fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite int invokingapacheantprogrammatically j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux main map method mobile myregfun mysql netbeans nonstatic notdisplaying openjavafx parameter pearl php problem program project qt repositories scanner screen scrollbar server set sms sorting spamblocker sql sqlserver storm string superclass swing system thread threads tree variablebinding windows xor






