i need to test my java applets on a windows machine but they are too big and crash my firefox and IE when i try to run them online, as they do lots of stuff in a hurried manner. im currently downloading eclipse but i really dislike eclipse. whenever i try to run a applet from the command line i get this error
exception in thread "main" java.lang.NoSuchMethodError: main
sigh, anyone have any sugestions before i download eclipse?
java applet
Moderator: General Moderators
you dislike eclipse?!!?! wow
if you dont like that you can try netbeans or another java editor.
First question: do you have a main? or in applets i think you need the init function
this link is a good reference, make sure everything is going good: http://www.sheetudeep.com/res/javaapn/ch14.htm
if you dont like that you can try netbeans or another java editor.
First question: do you have a main? or in applets i think you need the init function
this link is a good reference, make sure everything is going good: http://www.sheetudeep.com/res/javaapn/ch14.htm
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
ok never mind kids. i dislike eclipse on fedora, as at my school it completly sucks up all the memory and goes oh so slow and the computers are really not bad at all. at home here on windows it uses almost no memory at all and runs perfect, i am ultra impressed. got my applets working and everything and i drew my flower using the draw functions. ignore anything bad about what i said about eclipse as i now take it all back after this amazing preformance
Btw, a Java Applet is not regular java application... So don't try to run it as one 
Java applications are "invoked" by a call to the init method (i think). What you would do is have a main method and in that method make a jframe and add an instance of the japplet to the contentpane of that jframe. Now call the init method and you have your own applet tester
)
Java applications are "invoked" by a call to the init method (i think). What you would do is have a main method and in that method make a jframe and add an instance of the japplet to the contentpane of that jframe. Now call the init method and you have your own applet tester