Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Question about External Jars

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Question about External Jars

    Recently, I have tried to extend a class and override it's method via Jar (don't have the java files, obfucated). This was successful, although as soon as I made a new package inside my eclipse project, I could no longer extend classes from that library, it only works with the default package. Also it doesn't give me an option to import this class from the jar library that I already imported into my project with eclipse.

    One more thing, when I view the build path for the package, the Jar is in the library tab, but I still cannot extend from any of the classes in it.

    Anyone know what is wrong here?

    Thanks


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Question about External Jars

    Is the external Jar file incorporated into Eclipse's build path for this project? That's the first thing I'd check, and this can be done by right-clicking on the package and checking the build path.

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Question about External Jars

    Quote Originally Posted by curmudgeon View Post
    Is the external Jar file incorporated into Eclipse's build path for this project? That's the first thing I'd check, and this can be done by right-clicking on the package and checking the build path.


    This is the screenshot of the problem.
    Attached Images Attached Images
    Last edited by Azurit3; August 27th, 2012 at 11:37 AM.

  4. #4
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Question about External Jars

    Sorry, I can't read the text in your image.

  5. #5
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Question about External Jars

    Sorry the link to the full image is here:
    http://i.imgur.com/erjBd.png

  6. #6
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Question about External Jars

    My work firewall prevents viewing of that image file. Please explain what's going on as best you can.

  7. #7
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Question about External Jars

    What does eclipse say when you mouse-over the red underline under Loader?

Similar Threads

  1. run an external program
    By righi in forum AWT / Java Swing
    Replies: 4
    Last Post: June 21st, 2012, 09:28 AM
  2. Create jar with nested jars programmatically
    By yannischris in forum Java Theory & Questions
    Replies: 12
    Last Post: April 9th, 2012, 11:31 PM
  3. Replies: 4
    Last Post: December 6th, 2011, 02:24 PM
  4. OS Specific Jars
    By sinistaDev80 in forum Java Theory & Questions
    Replies: 0
    Last Post: March 26th, 2011, 09:29 AM
  5. Programmatically Creating Jars
    By aussiemcgr in forum Java Theory & Questions
    Replies: 8
    Last Post: October 6th, 2010, 11:51 AM