Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.34k stars 287 forks source link

With Sprinboot 3.2.7, 3.3.4 I can't read serial ports on windows 10. #578

Closed rucko24 closed 1 month ago

rucko24 commented 1 month ago

Any ideas ? this was working perfectly fine actually, but when the production .jar is created with mvn clean install it fails to read the ports.

I have attached an example .zip below.

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.2.7</version>
</parent>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.3.4</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
Windows 10 Pro Edition
Version 22H2
Installed on 07/24/2024
Operating System Build 19045.4894
Windows Feature Experience Pack 1000.19060.1000.0

Always return 0 ports

image

demo.zip

rucko24 commented 1 month ago

Solved, the detail was that I was making the execution of the .jar in wsl, and for some reason it did not recognize the ports possibly.