Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make cmd prompt to read .java/.class files from another folder?

 
Henry Hang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have all my things packed in C:/users/me

Is there a way I can put all my work in a folder and have cmd prompt retrieve files from that specific folder?
 
Winston Gutkowski
Bartender
Pie
Posts: 10527
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Hang wrote:Is there a way I can put all my work in a folder and have cmd prompt retrieve files from that specific folder?

Not sure, but assuming this is Windows, you can always set up an icon that runs 'cmd' from a particular directory. Eventually, you'll be creating jars so this won't be a problem, so I wouldn't spend a lot of time on it.

Winston
 
Campbell Ritchie
Sheriff
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

java C:\MyFolder\MyOtherFolder\MySubfolder\Foo

??

Try it and see whether it works. But it is usually easier to navigate to that folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic