tDotNetInstantiate error

Highlighted
Four Stars

tDotNetInstantiate error

Hi,
I created a job with tDotNetInstantiate and tDotNetRow to call dll.
I have downloaded the janet-dll and placed in c:\windows\system32 as well as in java's bin directory.
But Getting error as below:

Starting job test at 10:49 30/01/2016.

[statistics] connecting to socket on port 3527
[statistics] connected
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Java\jre1.8.0_66\bin\janet-win32.dll: A dynamic link library (DLL) initialization routine failed
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.talend.net.Object.loadLibrary(Object.java:201)
    at org.talend.net.Object.<clinit>(Object.java:164)
    at local_project.test_0_1.test.tDotNETInstantiate_1Process(test.java:336)
    at local_project.test_0_1.test.runJobInTOS(test.java:710)
    at local_project.test_0_1.test.main(test.java:567)
[statistics] disconnected
Job test ended at 10:49 30/01/2016. [exit code=1]

Regards,
R.Bharath

Highlighted
Moderator

Re: tDotNetInstantiate error

Hi,
Have you already configured the JDK path in Windows > Preferences > Java > Installed JRES?
Are you using 32 bit OS? janet-win32.dll for Windows 32-bit version and janet-win64.dll for Windows 64-bit version. 
Please see the usage section in component reference: TalendHelpCenter:tDotNETInstantiate
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Four Stars

Re: tDotNetInstantiate error

Hi Sabrina,
Thanks for you reply.
I placed both janet-win32.dll & janet-win64.dll in my 64 bit OS.
I placed above files in jre , JDK and system 32 folders. Still getting same error


Regards,
R.Bharath
Highlighted
Moderator

Re: tDotNetInstantiate error

Hi R.Bharath,
Could you please indicate the build version you are using?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Four Stars

Re: tDotNetInstantiate error

Hi,
I tried in Talend Platform MDM with Bigdata 5.6 and Talend Data Fabric 6.0
Regards,
R.Bharath
Highlighted
Moderator

Re: tDotNetInstantiate error

Hi,
C:\Program Files (x86)\Java\jre1.8.0_66\bin\janet-win32.dll: A dynamic link library (DLL) initialization routine failed

Starting from version 6.0, Talend Studio requires a JDK installation instead of JRE only to build jobs,  and you must configure the JDK path in  Windows > Preferences > Java > Installed JRES.
Have you tried to place your janet-win64.dllm under C:\Program Files (x86)\Java\jdk1.8.0_66\bin to see if it works?
Feel free to report a ticket on Talend Support Portal for your subscription product so that we can give you a remote assistance through support cycle with priority.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
One Star

Re: tDotNetInstantiate error

I am having the same issue with the janet-win64.dll not being found. 
I have placed it in the java\jdk\jre\bin and java\jdk\jre\lib as well as the system32 folder.

The error being given:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no janet-win64 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.talend.net.Object.loadLibrary(Object.java:201)
at org.talend.net.Object.<clinit>(Object.java:164)
at csharp_test.test_1_0.Test.tDotNETInstantiate_1Process(Test.java:341)
at csharp_test.test_1_0.Test.runJobInTOS(Test.java:1072)
at csharp_test.test_1_0.Test.main(Test.java:929)

Has this been resolved?
Highlighted
Four Stars

Re: tDotNetInstantiate error

Hi,
Did you unblock the DLL ?

Right-click on the DLL and click on the unblock button. Then try.
Thanks,
R.Bharath
Highlighted
Four Stars

Re: tDotNetInstantiate error

Hi rsimon1 

 

Have you find solution ? 

 

I created a C# dll and I try to use it in tDotNETInstantiate but I have this error : 

java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_181\bin\janet-win64.dll: Can't find dependent libraries

 

I have try all solutions as i can find on the web but the error still (Put janet* in System32 or java jdk/jre folder. I have specified the path in properties... 

 

Thank in advance for your time. 

 

Rémi

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog