• Post Reply Bookmark Topic Watch Topic
  • New Topic

issue with Eclipse and applet viewer.  RSS feed

 
Tomas Richardson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I had been writing my code with textWrangler and compiling in the terminal. For applets I just created a html file which I would open in appletviewer.. I've been following some tutorials and they have been working fine! Until I decided to download and use Eclipse IDE, because saving, compiling and then using the appletviewer was becoming very time consuming. However, the applets are not working in Eclipse. I have rewrote the code, I have even followed eclipse tutorials on how to create applets. All I get is a message on the applet window saying Start: applet not initialised.

I get this output in the command console (At the bottom):

at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:633)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:793)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:722)
at sun.applet.AppletPanel.run(AppletPanel.java:379)
at java.lang.Thread.run(Thread.java:745)

In the class the name has a yellow underline beneath it and when i mouse over it says Description Resource Path Location Type
The serializable class Apple does not declare a static final serialVersionUID field of type long Apple.java /Apples/src line 4 Java Problem

Strange, that the exact class works completely fine... it also does't matter what tutorial I do (have done five all from different places as well as following a youtube video with some dude using eclipse.. worked for him, not for me.) Would be really grateful if anyone could help me. I could pick any of the five I've done, but I don't think it is a code issue, rather something funky with Eclipse..
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message you see in the code window is only a warning. Your actual problem is at the top of the stack trace, which you only posted the bottom part of. Scroll up to see the top of it.

But let me ask you this... you are a beginner, correct? Why are you trying to write an applet?
 
Tomas Richardson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deleted Eclipse off my mac and went with netbeans.. works as I imagined it should have with Eclipse.

As for why I would program applets, meh, got to start somewhere and it's interesting creating small games that I can upload and show my friends. Applets I've found are really easy and fun to work with.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!