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.


classpath problem

Posted by rajesh on January 31, 2002 at 7:19 AM

use this
Keep your mobile in c:\ never touch bin directory
set path=%path%;c:\jdk1.3.1_01\bin;
set classpath=%classpath%;c:\jdk1.3.1_01\lib;c:\mobile;c:\mobile\vehicle;.;

> Hi guys !
> This should be a easy one, but I'm kind of desperate by now.. gnagahh ! I'm working with jdk1.3.1_01 (this is the reference system at our college). Currently I'm working on a project which simulates a autorental. I have a abstract class "mobile" and several other inherited classes "train" abstract class "vehicle", and - inherited from "vehicle" classes "car" and "truck". My problem is that I can't compile the classes.
> javac.exe is in folder c:\jdk1.3.1_01\bin.
> is in folder c:\jdk1.3.1_01\bin\mobile, car is in
> c:\jdk1.3.1_01\bin\mobile\vehicle\car and so on.
> How do i have to use classpath ? I must have missed these lectures.. ;-) I've tried javac -classpath c:\jdk1.3.1_01\bin\mobile\vehicle\car\ but surprisingly nothing happens (as if everything was right). But if you type a nonsense name instead of the real existing file, e.g. the same happens.
> Help me !!
> Please answer via e-mail.
> Danny (exhausted and shivering)
> thanks in advance


Sponsored Links

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