Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    106
    Thanks
    12
    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

    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.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •