LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-13-2004, 11:16 AM   #1
a1ghagh05t
LQ Newbie
 
Registered: Jan 2004
Distribution: red hat 9
Posts: 3

Rep: Reputation: 0
missing java swing libraries?


Hey,
I just downloaded the java 1.4.2_03 sdk and put it on my redhat 9.0 box. I can go ahead and do basic stuff fine but the moment I try to use the swing libraries, javac throws a fit and says it can't find them and doesn't know what I'm talking about.
import javax.swing.* is what my line is...
where in the /usr/java/j2sdk1.4.2 tree is the swing library?
is there somewhere where i can download the package seperately if need be? Thanks for any help.
mj
 
Old 01-14-2004, 02:39 AM   #2
the_dayi
LQ Newbie
 
Registered: Oct 2002
Location: istanbul
Distribution: redhat
Posts: 16

Rep: Reputation: 0
try getting in the directory of the sdk and search for the javax folder..
(i think it was directly under src)...
 
Old 01-15-2004, 01:47 PM   #3
a1ghagh05t
LQ Newbie
 
Registered: Jan 2004
Distribution: red hat 9
Posts: 3

Original Poster
Rep: Reputation: 0
javax isn't present...
 
Old 01-16-2004, 11:51 AM   #4
the_dayi
LQ Newbie
 
Registered: Oct 2002
Location: istanbul
Distribution: redhat
Posts: 16

Rep: Reputation: 0
weird...
this is where i got my sdk:

http://java.sun.com/products/jfc/download.html

...and javax is present..
 
Old 01-23-2004, 06:06 AM   #5
robbe
LQ Newbie
 
Registered: Jan 2004
Distribution: gentoo
Posts: 4

Rep: Reputation: 0
I had the same problems when using ant 1.5.2, maybe you're using
also using this version? With ant 1.5.4 everything was fine ...
Ant 1.5.2 seems to exclude rt.jar (which contains javax.swing)
from the build-classpath when option build.sysclasspath is set to ignore.
 
Old 01-26-2004, 06:04 AM   #6
jk42
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
swing classpath

Hi,

I have exactly the same problem you described in the forum.
I installed jdk1.4.2 on Debian/Knoppix3.3
Cannot find javax.swing , cannot compile java programs containing swing classes.
Did you get any useful information?
I have tried for a while with no success.
Any hint will be gratefully appreciated.
Thanks in advance.
jk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a java-swing problem... shosh Programming 2 06-26-2009 05:38 AM
java swing JTextArea gauravbagga Programming 1 05-23-2005 04:34 AM
questions on my java/swing gui xviddivxoggmp3 Programming 6 07-19-2004 10:44 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 05:02 PM
Cannot Get Swing to work in a Java Applet? Checkers Linux - Software 0 03-17-2003 03:23 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration