wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How to make cmd prompt to read .java/.class files from another folder? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make cmd prompt to read .java/.class files from another folder?" Watch "How to make cmd prompt to read .java/.class files from another folder?" New topic
Author

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

Henry Hang
Greenhorn

Joined: Oct 15, 2011
Posts: 3
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

Joined: Mar 17, 2011
Posts: 7545
    
  18

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37986
    
  22
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.
 
jQuery in Action, 2nd edition
 
subject: How to make cmd prompt to read .java/.class files from another folder?
 
Similar Threads
Issues Compiling With Javac
Image doesnot get displayed in an Eclipse OSGi Project
How to create a jar file of a java project that uses Derby database
Run a Java Program
STRUTS 2 "package com.opensymphony.xwork2" does not exist