aspose file tools
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
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 4901
    
    7

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?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32830
    
    4
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to make cmd prompt to read .java/.class files from another folder?
 
Similar Threads
Image doesnot get displayed in an Eclipse OSGi Project
How to create a jar file of a java project that uses Derby database
Issues Compiling With Javac
STRUTS 2 "package com.opensymphony.xwork2" does not exist
Run a Java Program