Results 1 to 15 of 15

Thread: library missing

  1. #1
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default library missing

    I am trying to run my program that I imported. Is this the right location for the jar? And how do I update the new filename?

    library missing-screenshot-2016-11-13-18-54-55.png

    library missing-screenshot-2016-11-13-18-55-20.png

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: library missing

    I am trying to run my program
    Are you using an IDE? Or how are you trying to execute the program?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: library missing

    I am not certain what IDE this is. It looks similar to Eclipse. So you might try to configure the Build path
    to include the library. In Eclipse you just click on the Project folder. It should be able to take the jar file directly.
    If you still get errors, you may need to use the jar command line tool to inspect the jar file as it could be missing
    classes or simply packaged incorrectly.

    Regards,
    Jim
    Last edited by jim829; 11-14-2016 at 11:26 PM. Reason: corrected typo
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  4. #4
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    It is eclipse, sorry.

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: library missing

    Well, did you try what I suggested?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  6. #6
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    library missing-screenshot-2016-11-14-17-34-05.png
    After clicking on configure build path, this is what I see. I'm guessing there is no /Library/Extensions/Java folder. Is that the problem? Will creating that folder resolve it?

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: library missing

    I'm not quite certain. Did you click on the Libaries tab above and add external jar files? Depending on whether you do this
    from Project Explorer or Package Explorer the options are slightly different.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  8. #8
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    library missing-1.png

    library missing-2.png

    I deleted the JDBC folder so now it looks like this. Oddly enough, it runs, but now I also have a new error.... So I don't think that actually fixed anything.

  9. #9
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    Quote Originally Posted by jim829 View Post
    I'm not quite certain. Did you click on the Libaries tab above and add external jar files? Depending on whether you do this
    from Project Explorer or Package Explorer the options are slightly different.

    Regards,
    Jim
    I did this, and it still shows those 3 errors. It was added under the "Referenced Libraries". Is it not working maybe because the file names are different? They are two different versions.

  10. #10
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: library missing

    I think you need to get rid of the /Library extensions reference. Somewhere you added that and it needs to be removed. No matter what you add,
    if it is looking for a library in that location which isn't there you will get an error. Putting the jar file in that directory "might" solve the problem.

    But in general, you don't need an actual library. Just referencing an external Jar should work.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  11. #11
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    So I was not able to locate "library" in any of the files. Also, when I run the program, it is not showing changes that I make to code. so it seems that it is not working.

  12. #12
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    The only thing that I can think would be related to this problem in code is this:

    Java Code:
    public class JDBC {
    	// JDBC driver name and database URL
    	static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";

  13. #13
    droidus is offline Senior Member
    Join Date
    Feb 2011
    Posts
    259
    Rep Power
    9

    Default Re: library missing

    I may have found part of the issue. The code was compiled and ran on a Mac before (was confused as to what /Library was....). I don't believe I hard coded this anywhere... how do I get it to reset or re-point that reference?

  14. #14
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: library missing

    All I can suggest is the you try to find out where the reference to that library is and either unclick it, delete it, or remove it from build path.
    Once that is done, you can try simply adding an external jar file.

    It is also possible that Eclipse is confused. So you might want to export your .java files, remove the project and start over.

    Regards,
    Jim
    Last edited by jim829; 11-15-2016 at 12:32 AM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  15. #15
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: library missing

    1. Remove the reference to the connector jar from the build path.
    2. Right click on the jar file in the JDBC "folder" in Eclipse and select "add to build path"...assuming I can remember my Eclipse stuff correctly.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 2
    Last Post: 03-03-2014, 06:48 PM
  2. Swing quaqua theme missing library
    By RichersooN in forum AWT / Swing
    Replies: 1
    Last Post: 03-27-2013, 01:26 PM
  3. What am I missing here..?
    By andrew_smiley in forum New To Java
    Replies: 5
    Last Post: 02-22-2012, 01:47 PM
  4. I want to put the native library in library path in mac os x
    By Hussain Ali in forum Advanced Java
    Replies: 2
    Last Post: 02-24-2010, 07:55 AM
  5. Tell me jar file for library library org.bouncycastle.cms
    By 82rathi.angara in forum New To Java
    Replies: 10
    Last Post: 09-09-2008, 05:11 AM

Posting Permissions

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