Results 1 to 12 of 12
  1. #1
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default file import which is not standard import

    Usually, most of the time, I import the standard java stuff.
    But what happens when I find a code with a list of those com. imports:

    import java.io.File;
    import java.io.IOException;

    import com.itseasy.rtf.RTFDocument;
    import com.itseasy.rtf.text.Border;
    import com.itseasy.rtf.text.Field;

    Where are these imports and how do I "get" them?
    Should I download them over the net?
    (I never really understood this stuff)

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: file import which is not standard import

    how do I "get" them?
    Find the jar file that contains the classes referenced in those statements and add their location to the classpath.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import

    "Find the jar file that contains the classes referenced in those statements"
    is that the source code and/ or the classes?

  4. #4
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import


  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: file import which is not standard import

    The jar files used by the compiler would contain class files.
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import

    So I downloaded rtf2epub-0-1.3.0.jar
    should I un-zip it?

    http://code.google.com/p/epub-tools/...0.jar&can=2&q=

  7. #7
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import

    You are right you I did un-zip them and there are a bunch of classes!
    and to make them available I should drop them into some folder directory, right?
    Maybe strange but I never did this stuff *a missing link in my Java-knowledge)
    Last edited by willemjav; 04-06-2014 at 12:01 AM.

  8. #8
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import

    Great, thanks norm I added the jar to the lib of the package and it worked!

  9. #9
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

    Default Re: file import which is not standard import

    BTW you can only add a jar with imports per package?

  10. #10
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: file import which is not standard import

    Quote Originally Posted by willemjav View Post
    should I un-zip it?
    No, just include it in your classpath.
    Get in the habit of using standard Java naming conventions!

  11. #11
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,899
    Rep Power
    25

    Default Re: file import which is not standard import

    I don't think there is a limit on the number of jar files that can be on the classpath.
    I have no idea what your IDE does.
    If you don't understand my response, don't ignore it, ask a question.

  12. #12
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    9

Similar Threads

  1. how to import jar file
    By Ashwin94 in forum New To Java
    Replies: 6
    Last Post: 08-12-2013, 10:03 AM
  2. Import to MySQL from a CSV file
    By asai in forum New To Java
    Replies: 6
    Last Post: 03-19-2012, 12:05 PM
  3. How do I import a list file?
    By Codeless in forum New To Java
    Replies: 1
    Last Post: 11-14-2010, 03:36 PM
  4. How to import file from same directory?
    By Splat in forum New To Java
    Replies: 5
    Last Post: 10-14-2009, 05:11 AM
  5. how to import war file with tomcat?
    By makpandian in forum NetBeans
    Replies: 0
    Last Post: 12-31-2008, 12:00 PM

Posting Permissions

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