• Post Reply 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Command Line issue

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 5114
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try compiling one file at a time?
 
reply
    Bookmark Topic Watch Topic
  • New Topic