Creating a Java Servlet : Identifier expected

Hi,

when I reached to the end of this exercise. I am supposed to run java class for a code given in this page:

https://www.codecademy.com/courses/learn-advanced-java/articles/advanced-java-servlets-creating-a-java-servlet

and the compiling code:

javac -cp lib/servlet-api.jar -d webapps/icecream-app/WEB-INF/classes webapps/icream-app/WEB-INF/src/HomeServlet.java

I tried many pages to look for a solution but I reached to no result, the error is:

C:\Users\User\Documents\apache-tomcat-9.0.68\webapps\icecream-app\WEB-INF\src\HomeServlet.java:11: error: expected
private static long final serialVersionUID = 100L; // Used for serialization since HttpServlet implements Serializable.
^
C:\Users\User\Documents\apache-tomcat-9.0.68\webapps\icecream-app\WEB-INF\src\HomeServlet.java:11: error: expected
private static long final serialVersionUID = 100L; // Used for serialization since HttpServlet implements Serializable.
^
2 errors ^
2 errors

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.