R
ros
Hello,
I am trying to run a simple web application using NetBeans from Marty
Hall's book Core Servlets and JSPs.
This webapp uses a package called Acme which I downloaded. Also in the
webapp I have a number of Applets. But when I try to build the project
it gives me the following error:
Compiling 157 source files to C:\NETBEANS Projects\Core Servlets Sample
\Chapter 14\ShadowedTextApplet\build\web\WEB-INF\classes
C:\NETBEANS Projects\Core Servlets Sample\Chapter 14\ShadowedTextApplet
\src\java\Acme\Psg.java:466: warning: as of release 1.5, 'enum' is a
keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
Enumeration enum = path.elements();
C:\NETBEANS Projects\Core Servlets Sample\Chapter 14\ShadowedTextApplet
\src\java\Acme\Psg.java:467: warning: as of release 1.5, 'enum' is a
keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
while ( enum.hasMoreElements() )
Can anybody advise me what I should modify to run this application?
Thanks in advance.
Ricky
I am trying to run a simple web application using NetBeans from Marty
Hall's book Core Servlets and JSPs.
This webapp uses a package called Acme which I downloaded. Also in the
webapp I have a number of Applets. But when I try to build the project
it gives me the following error:
Compiling 157 source files to C:\NETBEANS Projects\Core Servlets Sample
\Chapter 14\ShadowedTextApplet\build\web\WEB-INF\classes
C:\NETBEANS Projects\Core Servlets Sample\Chapter 14\ShadowedTextApplet
\src\java\Acme\Psg.java:466: warning: as of release 1.5, 'enum' is a
keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
Enumeration enum = path.elements();
C:\NETBEANS Projects\Core Servlets Sample\Chapter 14\ShadowedTextApplet
\src\java\Acme\Psg.java:467: warning: as of release 1.5, 'enum' is a
keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
while ( enum.hasMoreElements() )
Can anybody advise me what I should modify to run this application?
Thanks in advance.
Ricky