Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAVA Class error

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic