A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Programmer Certification (SCJP/OCPJP)
unix home user directory
Joined: Oct 04, 2006
Nov 06, 2006 15:44:00
this question comes from JQPlus:
Consider the following two
files in /home/user directory:
The files are compiled using the following command line:
javac -d /home *.java
Where will the class files go?
The answer they give is:
"A.class in /home/com/enthu and B.class in /home/com/foo"
but I don't see why the A.java and B.java files are supposed to be visible to the compiler as the path is set to /home and not /home/user ?
Joined: Feb 07, 2005
Nov 06, 2006 16:43:00
The path specified with -d simply indicates where the .class will be placed. It does not specify where the .java files are.
subject: unix home user directory
using classpath with javac Problem
Package/Classpath problem with 1.4
using javac and java (chapter 10 k&b)
Confusion about javac and wildcards (mock test from Enthuware)
Compiling a file that has reference to a class contained in another UNCOMPILED file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015