TPCANHandle error

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
Nikshith Gowda N
Posts: 3
Joined: Fri 6. Oct 2023, 14:55

TPCANHandle error

Post by Nikshith Gowda N » Fri 6. Oct 2023, 15:25

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?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: TPCANHandle error

Post by PEAK-Support » Fri 6. Oct 2023, 16:39

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Nikshith Gowda N
Posts: 3
Joined: Fri 6. Oct 2023, 14:55

Re: TPCANHandle error

Post by Nikshith Gowda N » Mon 9. Oct 2023, 14:58

which is the last java version supported by the PCAN Basic dll

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: TPCANHandle error

Post by PEAK-Support » Fri 13. Oct 2023, 08:31

Tested up to Java 17 - but the PCAN-Basic.DLL is not the limitation - it is the JNI
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

F.Vergnaud
Software Development
Software Development
Posts: 305
Joined: Mon 9. Sep 2013, 12:21

Re: TPCANHandle error

Post by F.Vergnaud » Wed 25. Oct 2023, 17:45

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
Best regards,
Fabrice

Post Reply