I have couple of questions and I seek the answer from the members:
1: I developed a swing application in netbeans and integrated the JavaFX into it.
2: Due to some constraints , I could not download Netbeans with JavaFX , so I had to get the javafx.rt jar file in the lib folder in netbeans.
3: The system on which I developed the above code, it worked fine , but when I sent the jar file to other system for testing, here is what I got:
Error: failed to msvcr100.dll java.lang.UnsatisfiedLinkError: Can't load library: source_folder\dist\bin\msvcr100.dll
I am doubtful becuase the dist folder is not having any bin folder, not sure if netbeans creates it temporarily.
The only issue that comes to my mind is that the system on which I developed is having JDK 1.7 , and the testing system is having JDK 1.6.Could this be an issue?
Any workaround is welcome and do revert if I missed any description.
Seems that your code explicitly tries to load the lib msvcr100.dll from some custom path source_folder Obviously the target system doesn't have this lib in the custom folder source_folder\dist\bin\msvcr100.dll
Why are you using a platform dependent library in your java code?
And if the library is totally required could you distribute it with your code?
thanks for the reply.
I viewed the contents of bin folder : C:\Program Files\Oracle\JavaFX 2.0 SDK\rt\bin
This contains all the required dlls. I am not sure but is their any way that the code with JavaFX would work without the installation for JavaFX SDK?
That way I could send few dlls also if required to the client system along with the jar file.
Joined: Apr 19, 2013
Seems that JavaFX relays on some platform dependent libraries.
I understand that you have 3 scenarios in the client side
- Required dll/s already installed in client "C:\WINDOWS\system32\msvcr100.dll".
- Install de JavaFX sdk in the client.
- Install the Microsoft Visual C++ redistributable package in the client.
Sudhanshu Mishra wrote:
Let me know if the JDK version is an issue , and then how am I going to solve the client computer's JDK version problem?
Please go through this link to understand the requirements for JavaFX.
You have not mentioned the version of JavaFX you are using. Specifically, at a minimum you need Java 6 Update 10.
Check the corresponding version page for more details.
Only way to solve is to identify the JRE version needed and then instruct the customer to upgrade/install it.
Sudhanshu Mishra wrote:
May I please get a help here?
I got the issue resolved.Actually few dlls were creating the issue and JavaFX 2 requires jdk 1.6 update 29 and above.
I just copied the bin folder from the JavaFX SDK , which had all dlls and put that in my src folder for netbeans.
One more thing, wherever your javafxrt.jar file is present, the dlls will be searched in its parent location, so place dlls accordingly.