Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-27-2011, 02:44 AM   PM User | #1
Scriptr
Regular Coder

 
Join Date: Oct 2011
Posts: 106
Thanks: 12
Thanked 0 Times in 0 Posts
Scriptr is an unknown quantity at this point
Import of my own

How do I import the library found here, or one like it, into a java project? For those who will not/currently cannot download or decompile, I don't know what it is worth, but these are the first several lines

Code:
package net.sf.jfacebookiml;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.log4j.Logger;
import org.json.JSONException;
import org.json.JSONObject;
I think only the package is important, but I included everything just in case.

Obviously, I am not claiming that as my own library; I want to be able to do it with my own libraries, but more pressingly I need to be able to do it with that.

Last edited by Scriptr; 12-27-2011 at 03:03 AM..
Scriptr is offline   Reply With Quote
Old 12-27-2011, 06:45 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,644
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Don't need to download it; it specifies the name as a .jar.
Just import it in through either your ide's external resources for the jar and it will be added when compiled, or add it to the -cp when executing the javac. You still need the import, but you must also provide the location to find it. There is no reason to extract the class files themselves.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:09 PM.


Advertisement
Log in to turn off these ads.