Results 1 to 6 of 6

Thread: Jena API

  1. #1
    karthikaa is offline Member
    Join Date
    Oct 2010
    Location
    Pondicherry
    Posts
    6
    Rep Power
    0

    Post Jena API

    hi, i'm new to eclipse
    i want to include jena api in eclipse for my proj
    i have a zip file with whole documents including jar files.
    how to include them in my project
    plz help me out
    thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    The Eclipse help files will tell you how add a jar file to your class's compilation path. If you haven't done so, please have a look there. You will have to change your project's properties to do this.

  3. #3
    karthikaa is offline Member
    Join Date
    Oct 2010
    Location
    Pondicherry
    Posts
    6
    Rep Power
    0

    Default

    thanks, i've included d files...
    but got some new errors..
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    The import org.slf4j.Logger cannot be resolved
    The import org.slf4j.LoggerFactory cannot be resolved
    Logger cannot be resolved to a type
    LoggerFactory cannot be resolved
    Logger cannot be resolved to a type

    at com.hp.hpl.jena.util.Metadata.<init>(Metadata.java :15)
    at com.hp.hpl.jena.JenaRuntime.<clinit>(JenaRuntime.j ava:25)
    at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.<cli nit>(RDFReaderFImpl.java:87)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.<clinit>(M odelCom.java:42)
    at com.hp.hpl.jena.rdf.model.ModelFactory.createDefau ltModel(ModelFactory.java:122)
    at com.hp.hpl.jena.rdf.model.ModelFactory.createDefau ltModel(ModelFactory.java:116)
    at Tutorial05.main(Tutorial05.java:32)

    also the same code runs well in cmd ..

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by karthikaa View Post
    thanks, i've included d files...
    but got some new errors..
    Java Code:
    Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
    	The import org.slf4j.Logger cannot be resolved
    	The import org.slf4j.LoggerFactory cannot be resolved
    	Logger cannot be resolved to a type
    	LoggerFactory cannot be resolved
    	Logger cannot be resolved to a type
    It doesn't look like you've included them correctly. How have you included them? What properties have you changed in Eclipse?

  5. #5
    karthikaa is offline Member
    Join Date
    Oct 2010
    Location
    Pondicherry
    Posts
    6
    Rep Power
    0

    Default

    Project > Properties > Java Build Path
    in libraries tab, clicked Add External JARs button
    and selected the required jar files and clicked finish
    all the files are included in project explorer tab.

  6. #6
    karthikaa is offline Member
    Join Date
    Oct 2010
    Location
    Pondicherry
    Posts
    6
    Rep Power
    0

    Default

    hi, i tried the same steps for a new project. and its working fine now..
    thanks a lot for ur guidance

Tags for this Thread

Posting Permissions

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