• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

eclipse not set up right

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting an error in eclipse about my applet class saying:


Description Resource Path Location Type
The serializable class Applet_Form does not declare a static final serialVersionUID field of type long Applet_Form.java /Applet/src line 4 Java Problem




I have used this exact code in the past just fine. and when compiling this time I get a response of applet not initialized.

Here is my code:



I appreciate any help in this matter
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Window->Preferences->Java->Compiler->Errors/Warnings->Potential programming problems->Serializable class.... switch from error to warning
Nothing to do with Swing. Moving to IDE forums
 
Ben Hultin
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that, very true. Guess my mind was just wrapped up on GUI's that I put it there w/out thinking.

Well I looked into my set up and eclipse is already set for it to be a warning. Any ideas?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Problems view, is it listed under Errors or under Warnings ? If it's listed under Warnings, it's not a compile error. You can either ignore it, or generate a serialVersionUID, or change the compiler settings from Warning to Ignore.
 
Ben Hultin
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok then I will just ignore it.

My other and bigger problem is that when I compile an run the applet, I get a meesage on the applet saying:


Applet not initialized



Now this code has worked perfectly fin in the past, on a website and on eclipse. When I deleted and rebuilt the project on eclipse, I now get this.

I have a basic setup, just the defaults. I have the source code placed under the '(default package)' thats inside the 'src' folder.

Thats it, that is all I have done to the default project set up.

Any ideas?

Thanks a lot
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet source you have posted above, is this all you have ? And is there any other errors printed in Eclipse's Console ?
 
Ben Hultin
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is it, I dont have any errors all I have is a warning (the one mentioned above). Like I said this exact file, by itself worked fine in eclipse before. Plus I have checked it on a web hoster and it also works there as well. So I assuming that this is an eclipse issue.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic