Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compilation error by prompt

 
k silva
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble. I am not getting compile the classes by prompt. Only you compile for any IDE. Someone I know why?

Gives an error and the signing of the class.
The error is this: error while writing Test: Classes\Teste.class

Entered the command is:
Javac-classpath /C:/Java/tomcat5/common/lib/servlet-api.jar -d classes src/Teste.java
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you create the directory "classes" ?
 
k silva
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please copy/paste the exact command line, and the exact message ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic