aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Not able to load swingX component class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Not able to load swingX component class" Watch "Not able to load swingX component class" New topic
Author

Not able to load swingX component class

Adam Nottingham
Greenhorn

Joined: Mar 04, 2010
Posts: 6
I just downloaded a weekly build of swingX-WS. After unzipping in my project folder I added it to the project in netbeans. However when I try to drag-and-drop any component I get the error:

Cannot load component class org.jdesktop.swingx.JXMapKit from a project:
The class must be compiled and must be on the classpath of the project to which the form belongs.


Any ideas or help is greatly appreciated.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10386
    
    8

Adam,
Welcome to the Ranch.

Obvious questions:
1) What you have downloaded, are you sure those are class files and not source files? If they are source (java) files, you will need to compile them.
2) I do not use Netbeans. In eclipse, even if I physically place some third party jar inside my project, I still need to explicitly need to add that jar to the class path. Does netbeans have anything similar?

Your question seems more to be IDE related than Swing related. I will move it over to the proper forum for you.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Adam Nottingham
Greenhorn

Joined: Mar 04, 2010
Posts: 6
Thank you very much Maneesh.

1) I have downloaded the jars which, in-turn, contains all of the class files needed. I have added the three needed jars to my library.
2) Yeah I'm considering just switching back to eclipse. I'm not entirely sure about the classpath, I'm doing some research now.

By the way the IDE is Netbeans 6.8
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10386
    
    8

Found http://java.sun.com/developer/onlineTraining/tools/netbeans_part1/
If you scroll down a bit, there is a box on the right hand side of the page titled "Managing the Classpath".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to load swingX component class