Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 5th, 2003, 02:31 PM
Registered User
 
Join Date: Jun 2003
Location: perugia, , Italy.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sunstrike
Default javax.swing on linux

i got a problem with sdk 1.4 on linux mandrake 9.1 ...i can't import javax.swing pakages!!!
can you help me?

ralph83
Reply With Quote
  #2 (permalink)  
Old June 5th, 2003, 03:46 PM
Registered User
 
Join Date: Jun 2003
Location: Berlin, , Germany.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi sunstrike,

it´s not easy to help, if you not describe the problem a little bit more. are there any error-messages or output from the vm? Can you import other packages from sdk, or is there the same problem?
it´s important for us (readers) to get more. all we have is your text.

ok, try it again, maybe more readers can help you.
greetings from Berlin (Germany):)
Reply With Quote
  #3 (permalink)  
Old June 11th, 2003, 03:05 PM
Registered User
 
Join Date: Jun 2003
Location: perugia, , Italy.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sunstrike
Default

this is compiler errors:

-Import of type "javax/swing/JFrame" from unnamed package [JLS 7.6]

-Cannot find class "javax/swing/JFrame" [JLS 8]

I tried just to use JFrame class...not other classes!

ralph83
Reply With Quote
  #4 (permalink)  
Old July 11th, 2003, 02:04 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


Sunstrike,

   There is a chance that your CLASSPATH environment variable is not set properly. This can happen if you either (a) installed the java sdk seperately from your distribution and the CLASSPATH is still pointing to your distributions default (b) it is simply not set or (c) it is set to an older release of the jdk/jre.
   To determine what your classpath is set to you can use the following command ( assuming sh/bash shell syntax):

    $ set | grep CLASS

    If you have multiple SDKs installed you may want to play with the -classpath java/javac command line option until you get it right, and then configure your login script to set it for you. I control mine by creating directorories under /usr/local/lib i.e. /usr/local/lib/jdk1.2.1, /usr/local/lib/jdk1.3.0, etc., and then I symlink whatever I want to work with to /usr/local/lib/java. I set my CLASSPATH to the later.

HTH
Regrads,
Meredith Shaebanyan

Quote:
quote:Originally posted by sunstrike
 i got a problem with sdk 1.4 on linux mandrake 9.1 ...i can't import javax.swing pakages!!!
can you help me?

ralph83
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
swing components jagan7 Java Basics 1 July 21st, 2007 05:19 AM
Swing Servlet Communication ? ? ? nigam.anand Servlets 0 April 22nd, 2006 02:27 AM
Swing and JSP Huxuelei JSP Basics 0 March 15th, 2005 09:01 AM
does java network programming support javax.swing HumaMunir Java GUI 11 January 12th, 2005 01:35 PM



All times are GMT -4. The time now is 07:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.