[fedora-java] HelloWorld Example Won't compile
Charles Curley
charlescurley at charlescurley.com
Wed Aug 24 02:18:02 UTC 2005
I took the source for the HelloWorld example in the Tomcat5 samples
(http://your.server:8080/servlets-examples/helloworld.html), and tried
to compile it.
[javac] Compiling 1 source file to /home/ccurley/src/com/charlescurley/hello/classes
[javac] ----------
[javac] 1. WARNING in /home/ccurley/src/com/charlescurley/hello/src/HelloWorld.java
[javac] (at line 5)
[javac] public class HelloWorld extends HttpServlet {
[javac] ^^^^^^^^^^
[javac] The serializable class HelloWorld does not declare a static final serialVersionUID field of type long
[javac] ----------
[javac] 1 problem (1 warning)
What am I missing here?
[ccurley at taltos src]$ echo $CLASSPATH
/usr/share/tomcat5/bin/:/usr/bin:/usr/share/java/servletapi5.jar:.
--
Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20050823/67189990/attachment.sig>
More information about the fedora-devel-java-list
mailing list