954,135 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Importing a library

Hello to all users,
I am using a NetBeans IDE 4.1. I want to import packages that are packed in a zip file. I open the project window, then with right click on the project icon I selected properties and then in libraray menu i added the zip file. Then, I tried to import packages from that zip file in my source code, but I always received a message "package does not exist". What especially puzzles me that during writing command import and name of the packages after every dot the windows pops up showing listing names of the all subclasses that cannot be recognized later!!!
What should I do?

rinko
Newbie Poster
12 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Can you elaborate more what you trying to achive?
Packages in zip file? If you download it something from internet you can drop down the link so we can see it (as long it is not illegal)

peter_budo
Code tags enforcer
Moderator
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

and why's he using NB 4.1? 5.5 is available and 6.0 in beta.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Link is:
http://www.vividsolutions.com/jump/
Why is the version of NetBeans so important? I imported already few libraries with this version, and I did not have problems.

rinko
Newbie Poster
12 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

You need to extract the zip which you downloaded(jump-1.2.zip) in lib you have all jar files which are required for this application and in the doc folder you find some documentation which also include JUMP Installation Guide.pdf with instructions.

I think that zip little messy, but as long it does what you expect to do its fine

peter_budo
Code tags enforcer
Moderator
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

the version of NB could very well be important.
Not only does NB suck in general and do later versions suck a bit less than older ones, but older versions may not work with the JVM needed to use modern libraries.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

What should I use instead of NetBeans?
To Peter_Budo:
I have not found any Instalation Guide. Could you tell me where you found the installation instructions?
In NetBeans do I have to additionally to add CLASSPATH or everything can be done through Library Manager

rinko
Newbie Poster
12 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 
What should I use instead of NetBeans?


I use JCreator on Windows platform, you can buy full version for something like £30 or get free LightEdition, but then it is my choice.To Peter_Budo:
I have not found any Instalation Guide. Could you tell me where you found the installation instructions?
In NetBeans do I have to additionally to add CLASSPATH or everything can be done through Library Manager

I went to the website to which you provided link. Downloaded jump-1.2.zip. Extracted with WinRar and got 3 folders bin(binnary), doc(documentation) and exc(executable).Executable contains all JAR file which are required to run Jump. In general for Windows you will use CLASSPATH in System Properties>Advanced>Enviroment Variables to tell JVM where to look for the libraries (to get System Properties do right mouse click on My Computer and select Properties)
Binnary should contains actual source code which you may change and recompile if you want, in this case there was something with Ants, but not sure as I did not worked with it yet. However I did not see any hint of coding just some unknow file extensions to me.
Documentation has few pdf with instalation instructions, user manual and licence plus some stuff in txt format. So it is hear where I found that instalation instructions.

PS: I hope you have same version of Jump like I downloaded

peter_budo
Code tags enforcer
Moderator
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 
~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 733
 

Fair? I never tried Eclipse had no need as JCreator always worked for me, just install confirm path to instalation to Java you wish to use and codeeeeeeeeeeee it
Not saying that Eclipse is bad, just never used it.

peter_budo
Code tags enforcer
Moderator
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

real Men use IntelliJ :)

... climbs into asbestos suit ...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

decompression the ZIP file,and use it like class files.

leehyokug
Newbie Poster
2 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

yet another piece of worthless advise from someone who doesn't know how things work...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You