Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Import of my own
12-27-2011, 03:44 AM #1
- Join Date
- Oct 2011
- Thanked 0 Times in 0 Posts
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
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;
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 04:03 AM.
12-27-2011, 07:45 AM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
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.