Page 1 of 1

java applet

Posted: Thu Dec 08, 2005 8:56 am
by shiznatix
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?

Posted: Thu Dec 08, 2005 1:16 pm
by Deemo
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

Posted: Thu Dec 08, 2005 1:50 pm
by shiznatix
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

Posted: Thu Dec 08, 2005 2:03 pm
by Deemo
sounds good. yeah i was wondering why you found it bad 8O

At our school computers they also run eclipse, and its slow as crap, so i dont blame you.

Posted: Thu Dec 08, 2005 5:04 pm
by timvw
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 :))