what does it mean when while trying to run a .class file I get "Exception in thread "main" java.lang..NoSuchMethodError: main"???
maelthra
0
Newbie Poster
Recommended Answers
Jump to PostMost probably the .class file that you are trying to run is not a driver class where the main method is coded to call and run the coding.
Jump to Postit appears to be an applet. you usually have to embed the applet in an HTML page using applet tags and use a browser to run it
Jump to PostTo run an applet, you will need an html file with this example coding:
<Html>
<Head>
<Title>Java Example</Title>
</Head>
<Body>
This is my page<br>
Below you see an applet<br>
<br>
<Applet Code="MyApplet.class" width=200 Height=100>
</Applet>
</Body>
</Html>You must specify the .class file that you compile at the …
All 9 Replies
rinoa04
2
Junior Poster in Training
maelthra
0
Newbie Poster
bugmenot
25
Posting Whiz in Training
rinoa04
2
Junior Poster in Training
darkagn
commented:
Very nice, concise explanation
+1
maelthra
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
bugmenot
25
Posting Whiz in Training
maelthra
0
Newbie Poster
mailmeatvishnu
0
Newbie 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.