The Artima Developer Community
Sponsored Link

Java Answers Forum
package java.swing does not exist

2 replies on 1 page. Most recent reply: Jan 13, 2004 1:01 AM by Shekhar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Gianluca

Posts: 2
Nickname: gianluca
Registered: Jan, 2004

package java.swing does not exist Posted: Jan 12, 2004 3:08 AM
Reply to this message Reply
Advertisement
When I compile my file.java there is this error :

package java.swing does not exist

I'm using jsdk1.4.2 , What can I do ?


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: package java.swing does not exist Posted: Jan 12, 2004 3:44 AM
Reply to this message Reply
Sir ji it is javax.swing not java.swing......

Shekhar

Posts: 11
Nickname: shekhar4u
Registered: Aug, 2003

Re: package java.swing does not exist Posted: Jan 13, 2004 1:01 AM
Reply to this message Reply
I didnt use jsdk1.4 ver, but to fix the error, open the lib folder in jsdk1.4.2 (probably it should be in drive://jsdk1.4.2/lib folder), and check for a jar file (may be tools.jar) which contains javaw.swing package and this jar file must be set to classpath.
So if its tools.jar, ur classpath must be as follows:
Assuming in c: drive,
set classpath=c:\jsdk1.4.2\lib\tools.jar

This should work. And if u have any other jar file, then specify that.

Flat View: This topic has 2 replies on 1 page
Topic: Plz Plz can someone help me about create tpl file?? Previous Topic   Next Topic Topic: java.lang.illegalArgumentException....

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use