java applet

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

java applet

Post 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?
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post 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
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 :))
Post Reply