• Post Reply Bookmark Topic Watch Topic
  • New Topic

Command Line issue  RSS feed

 
Sarah Holland
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I'm using the OCA Programmer 1 Study Guide and trying to work out command line programming - previously coded only using Netbeans so whilst I understand the terminology etc i get completely lost using command line!

I've created the following two files:
C:\java\packagea\ClassA.java

C:\java\packageb\ClassB.java


In command line I've changed to java directory and typed the following:
javac packagea/ClassA.java packageb/ClassB.java

I get the following error:

and repeated for all instances of '\'.....

I tried to run again using '\' instead of '/' in the command line prompt but get the same errors, not sure of the problem as this is all new to me!
 
Sarah Holland
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh gosh I have just realised my mistake!

Through my lack of concentration I included the directory structure in the file - that's what I get for working late at night after a long day
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try compiling one file at a time?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!