[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

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



Hej guru'er (Er flertals formen Guri ?) :)
Jeg prøver at teste en simpel metode, der kompilerer fint men vil ikke afvikles uden brok: "Exception in thread "main" java.lang.NoSuchMethodError: main"


Jeg har skåret koden ned til "next to nothing" for at minimere muligheden for fejl, men den komme stadig med følgende kode:


public class MyTest extends Object { String t1 = "exercise"; String t2 = "exercise"; String t3 = "eksercize"; public boolean myEqual( String s1 , String s2 ) { if ( s1.length() == s2.length() ) return true; else return false; } public void main(String args[]) { System.out.println(myEqual(t1,t2)); System.out.println(myEqual(t1,t3)); } }

Jeg har forsøgt mig på google og får en masse hits, der beskriver samme situation, men ikke kommer med nogen løsning.
Er der en her, der kan hjælpe mig?


På forhånd tak.


-- Med venlig hilsen /Zmit/ RLU # 314205


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *