Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2003, 02:31 PM
Registered User
 
Join Date: Jun 2003
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
 
Old June 5th, 2003, 03:46 PM
Registered User
 
Join Date: Jun 2003
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):)
 
Old June 11th, 2003, 03:05 PM
Registered User
 
Join Date: Jun 2003
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
 
Old July 11th, 2003, 02:04 PM
Authorized User
 
Join Date: Jul 2003
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.