The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Beginner's file reading problem

Posted by Justin Lau on January 13, 2002 at 5:14 AM

When I tried to read from a file, I could only read if this file is in my working directory i.e. calling the java command from where the file is (assuming the file is in d:\java):

D:\JAVA>java -cp d:\java abc.class -> this would work
D:\>jaca -cp d:\java abc.class ->this does not work

This is a bit frustrating as even the IDE have the same problem (I am using Forte for Java CE v3.0). Thanks for your help.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us