Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:10:06+00:00 2026-06-09T17:10:06+00:00

When exporting my java project with embedded firebird I get the message in the

  • 0

When exporting my java project with embedded firebird I get the message in the console that says:
“no jaybird[22[Any version, I guess]] in java.library.path”.

But it is literally on the library path of my project self referenced to my workspace. I’ve tried many workarounds like

System.LoadFile("jaybird22.dll") //full uri, just the name of the dll, nada
System.Load("jaybird22.dll") //full uri, just the name of the dll, nada

or inserting the dll in a user library
or putting the dll as a referenced library in another folder.

It’s really getting me into the nerves.
How to workaround this error? JNI?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:10:08+00:00Added an answer on June 9, 2026 at 5:10 pm

    SOLUTION

    Ok, here’s the solution to this problem. The thing is that inside the jar no dll nor whatsoever folder with files gets packaged in the jar. So just about every dll, folder with images or whatever must be in the folder next to where the runnable jar is. The only thing that gets packed in the jar are the external jars and your .java files to run your software.

    Anyway, with Firebird embedded mode it’s quite tricky. Since the jaybird(SOME_VERSION).dll must be placed next to all the .dll, .msg files. But the JVM will demand that the jaybird dll to be in the java.library.path, which of course it’s just system32 and some java folders not related to the program.

    So, for your program to detect your runnable jar folder as a java.library.path (Which really should be called paths) where the jaybird dll files and the other firebird files and folders are you put these LOC’s in the main method:

    String decodedPath =URLDecoder.decode(ClassLoader.getSystemClassLoader().getResource(".").getPath(), "UTF-8");
    decodedPath=decodedPath.substring(1, decodedPath.length()-1).replaceAll("/", "\\\\");
    System.setProperty("java.library.path",decodedPath+";"+System.getProperty("java.library.path")));
    

    I concant the previous directories for the library paths, since Im just adding it to the list.

    Notice that these LOC’s must be before ANY CODE, and that also includes calling the constructor. Beware if you’re using global static modules or JNI invocations.

    I hope this saves someone time, I’ve lost 12 hours of my job trying to figure out this properly.

    I’d really appreciate if admins don’t erase my edit or this question self answered.

    Happy coding =D

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When exporting a Visual Studio project to a Template (File/Export Template...) I get the
I am having trouble exporting my java project from eclipse as a jar executable
To import DLL into Eclipse Java project, I checked the java.library.path String path =
so I have a project that requires Weka machine learning library (weka.jar) and the
I've been working on a project that requires communication both directions between Java and
I've been having problems exporting my java project to a jar (from Eclipse). There
I'm making a java application using LWJGL. When exporting the project into jar and
I am exporting a datatable to an excel sheet successfully... In that excel sheet
I am currently working on a Java EE project. I have successfully developed a
I have a little Java project where I've set the properties of the class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.