aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse error" Watch "eclipse error" New topic
Author

eclipse error

Jason Hocker
Ranch Hand

Joined: Jul 23, 2003
Posts: 132
I am new to Eclipse. How do I get this warning to go away? I am writing an exception that extends Exception

The serializable class DuplicateKeyException does not declare a static final serialVersionUID field of type long
KArol Muszynski
Ranch Hand

Joined: Aug 09, 2005
Posts: 45
Jay,

Eclipse also shows You how to repair suchproblem. Open Your DuplicateKeyException class. In the left editor column, before line numbering, You will see yellow bulb with warning symbol. Click on it and Eclipse offer You how it can be repaired.


If You're not interested to see warnings about this kind of problems, it is possible to turn this mechanism off:

1. from menu choose Window -> Preferences
2. in preferences window, in left tree choose Java -> Compiler -> Errors/Warnings
3. on the right side choose PotentialProgrammingProblems -> Serializable class without serialVersionUID and change Warning to Ignore


Best Regards,
KArol Muszynski
[ November 05, 2005: Message edited by: KArol Muszynski ]
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 133
Another alternative: Use the Serial Version tool to create the value, then add the value to your class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse error
 
Similar Threads
project build
debugging with tomcat
cannot find the declaration of element taglib
JMX WEB console acess
Hello world example using EJB 3