I added Jidesoft swing library in my project but when I use the import statement " import com.jidesoft.popup" netbeans gives the error "package com.jidesoft" doesn't exist. please tell me how i fix this thing.
Printable View
I added Jidesoft swing library in my project but when I use the import statement " import com.jidesoft.popup" netbeans gives the error "package com.jidesoft" doesn't exist. please tell me how i fix this thing.
Yes better to give more details, because this can be done in several ways, with or without using the NetBeans.
Here is what I did...
Right Click on Libraries in Project window > ADD Jar/Folder > Select the jidesoft jar file.
Is that JAR file added into that Libraries folder correctly? And also can you tell me what's the JAR file name is?
yup I can see the jar file in my libraries folder (in project window). jar file name is " jide-os-2.7.1"
try to save the jar / lib (for the Library) on your hard disk and the static path (it means if you put your .jar library to F:/Java/Projects/lib -> then stay in there, don't move it)
hope it works
That doesn't make much sense.
Basically they need to have the relevant packages on the classpath before they can use them. Either they haven't added the jars to the correct project's classpath or the jars they have added do not have the packages they are trying to use.
Not it does not have to. You can have a jar file called fronobolaux that contains a package called r035198x.defenestrated with a class called Wibble.
To use the Wibble class you make the fronobolaux be available on the class path and do
import r035198x.defenestrated.Wibble;
The jar file name has nothing to do with the imports.
I'm not clear what you are talking about. Just add a jar file in the NetBeans and if you can call it with a different name. You cannot do that.
Then read my post above again.
It has nothing to do with Netbeans. A jar file's name has nothing to do with the imports that should be done to import its classes. What matters is the names of the packages that are inside the jar not the name of the jar file itself.
Yes. If the jar file demo.jar contains the package "myjar" the the import will work as well.
It's not jar files which are imported. It's classes and packages inside jar files.
Oh seems we are talking about completely two things here. I'm talking about just a jar file with only class files, not with jar file embedded.
And also seems to me you've never try it in NetBeans. In NetBeans you cannot see that a jar file, which is included inside another package. You have to use the complete path.