The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

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.

Message:

classpath settings with inheritence

Posted by Danny on January 30, 2002 at 5:29 PM

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.
mobile.java 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\car.java but surprisingly nothing happens (as if everything was right). But if you type a nonsense name instead of the real existing file car.java, e.g. dkjah.java the same happens.
Help me !!
Please answer via e-mail.
Danny (exhausted and shivering)
thanks in advance




Replies:

Sponsored Links



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