This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 7029
    
  16

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?
Artlicles by Winston can be found here
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
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://aspose.com/file-tools
 
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
Issues Compiling With Javac
Run a Java Program
How to create a jar file of a java project that uses Derby database
STRUTS 2 "package com.opensymphony.xwork2" does not exist