Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

JAVA Class error

 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys

I wrote a small application in workshop IDE comprising of two java classes and a jsp file. I am getting error when I run the application. Here are the errors:

ERROR: Person.java:1: The character '-' in the name of this file cannot appear in a Java identifier.

ERROR: Person.java:3: The package of this type does not match its location on the source path: WEB.classes.

ERROR: PersonService.java:1: The character '-' in the name of this file cannot appear in a Java identifier.

ERROR: PersonService.java:7: The package of this type does not match its location on the source path: WEB.classes.
ERROR: 4 error(s), 0 warning(s).

For a view of the folder structure see this link
http://faculty-staff.ou.edu/V/Sudhir.N.Vallamkondu-2/description.htm
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65545
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please continue any discussion of this topic here.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!