Re: Can't locate Javax
From: David Zimmerman (dzimm_at_hiddenmind.com)
Date: 10/16/03
- Next message: Daniel Schneller: "Re: JAR problem"
- Previous message: Michael Borgwardt: "Re: Can't locate Javax"
- In reply to: ak: "Re: Can't locate Javax"
- Next in thread: Michael Borgwardt: "Re: Can't locate Javax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Oct 2003 15:01:41 GMT
You don't need to ever specify rt.jar on your classpath, its part of the
default bootclasspath.
You need to change your import slightly
import javax.swing.*;
ak wrote:
> forget tools.jar and src - you need c:\j2sdk1.4.2\lib\rt.jar
>
>
> "Asad Khan" <uoft_cstutor@yahoo.com> schrieb im Newsbeitrag
> news:6Qxjb.135309$ko%.4158@news04.bloor.is.net.cable.rogers.com...
>
>>Hi,
>>
>>I am using DrJava, and I am writing a program that has the following
>>statement:
>>
>> import javax.swing;
>>
>>It gives me this error when compiled:
>>
>> File: C:\Program Files\DrJava\CustomJFrame.java [line: 1]
>> Error: package javax does not exist
>>
>>I did set my classpath variable to:
>>
>> c:\j2sdk1.4.2\lib\tools.jar;C:\j2sdk1.4.2_01\src\javax
>>
>>where C:\j2sdk1.4.2_01\src\javax is where javax is located.
>>
>>What am I doing wrong?
>>
>>
>>
>
>
>
- Next message: Daniel Schneller: "Re: JAR problem"
- Previous message: Michael Borgwardt: "Re: Can't locate Javax"
- In reply to: ak: "Re: Can't locate Javax"
- Next in thread: Michael Borgwardt: "Re: Can't locate Javax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|