Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: bilsch Newsgroups: comp.lang.java.programmer Subject: Re: my java is broken ! Date: Sat, 05 May 2012 15:30:59 -0700 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <15508526.29.1336086347980.JavaMail.geo-discussion-forums@ynjj16> <12032768.867.1336176279160.JavaMail.geo-discussion-forums@pbyy9> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 5 May 2012 22:30:59 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="llALXQ6TxsVqIoSLcrwVyA"; logging-data="8180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZApe3pHK0i2i7B0zyO5dK" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 In-Reply-To: <12032768.867.1336176279160.JavaMail.geo-discussion-forums@pbyy9> Cancel-Lock: sha1:5ZnlwziV3mYAjx34etyhXXOg1KQ= Xref: csiph.com comp.lang.java.programmer:14302 On 05/04/2012 05:04 PM, Lew wrote: > bilsch wrote: >> Also, a pain in the ass is I must change directory to where the source >> file resides to compile. I must change directory to where the .class >> file resides in order to run. These directories are different for every >> project therefore it's not practical to automate with a script. > > That is totally untrue. > > Both the compiler ("javac") and the runtime ("java") respect classpaths, > and the latter respects source paths. With those, you can compile and run > Java code from any directory regardless of your current directory. Would you care to elaborate on this or give me a link where I can read about it? > > Please, please, please, please, *please* RTFM! I don't have the FM > > Especially before you start ranting incorrectly about what is not possible. > > Why did you ignore the earlier advice to do that? >