Page 1 of 1

TPCANHandle error

Posted: Fri 6. Oct 2023, 15:25
by Nikshith Gowda N
Hi,I have developed a java desktop application for communication over CAN. I am using PCAN Basic dll downloaded from peak systems. Previously I was using java version 17.0.1 and it was working fine. Now I have upgraded the system to java 20.0.2. When i build the same project using 20.0.2 I am getting TPCANHandle error. Is the PCAN Basic dll compatible with the latest java version? What is the solution for this issue?

Re: TPCANHandle error

Posted: Fri 6. Oct 2023, 16:39
by PEAK-Support
Sorry we do not support this new version at the moment - please check some Java Forums for a solution & information what changed in this new Version.

Re: TPCANHandle error

Posted: Mon 9. Oct 2023, 14:58
by Nikshith Gowda N
which is the last java version supported by the PCAN Basic dll

Re: TPCANHandle error

Posted: Fri 13. Oct 2023, 08:31
by PEAK-Support
Tested up to Java 17 - but the PCAN-Basic.DLL is not the limitation - it is the JNI

Re: TPCANHandle error

Posted: Wed 25. Oct 2023, 17:45
by F.Vergnaud
Hello,

Using the sample "PCANBasicExample", I could not reproduce your issue with our latest APIs (PCANBasic / PCANBasic_JNI v4.8.0.830) and Java 20.0.2 (x64).
Can you check which version of PCANBasic you're using and explain the context of your error: function called and returned status.
Thank you