Results 1 to 6 of 6
- 08-06-2008, 11:13 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 1
- Rep Power
- 0
- 08-06-2008, 01:45 PM #2
It all depends on what system is to look at your library. What software is it to be imported into? What form is it in? A jar file?
Some require the jar file be placed in a folder. Others that the jar file be on the classpath.
- 08-06-2008, 01:47 PM #3
Member
- Join Date
- Aug 2008
- Posts
- 22
- Rep Power
- 0
you need to export the package as a jar file using the export utility of the IDE you are using
or
use java -jar command
jar cf jar-file input-file(s)visit http://www.thejavacode.com
Muhammad Safwat
- 08-11-2008, 12:52 AM #4
Member
- Join Date
- Aug 2008
- Location
- The Netherlands
- Posts
- 25
- Rep Power
- 0
It's also depending on what IDE you are currently using for your project (if you're using one at all). On netbeans to import a JAR do the following:
-right click on your project (in project's frame)
-Go to properties
-Select "libraries" in the list on the left
-Click "add JAR/Folder" on the right
-Then browse for the JAR-file and double-click
Next thing to do is to import the packages from this library in your project. For the package "org.apache.commons.net" the import statement:
Hope it helps,Java Code:import org.apache.commons.net.*;
- 02-12-2009, 06:36 AM #5
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
Hi! I am facing a similar problem. I need to import com.sun.java.swing.* but there are over 421 class files. What should I do?
I found them at findjar.com. Can anyone help?
- 02-12-2009, 06:51 AM #6
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
Similar Threads
-
error with import java.io.*
By osval in forum New To JavaReplies: 5Last Post: 05-13-2010, 05:03 PM -
how to import a picture into an applet
By cecily in forum Java AppletsReplies: 2Last Post: 01-15-2010, 08:51 PM -
How to import a package in Eclipse?
By naipulb in forum New To JavaReplies: 2Last Post: 06-09-2008, 11:04 AM -
import statement.
By diRisig in forum New To JavaReplies: 2Last Post: 02-08-2008, 12:34 AM -
I can't import javax.mail
By katie in forum New To JavaReplies: 2Last Post: 08-04-2007, 05:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks