You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run to get response from serial port.
I have checked all the possible outcomes to fix this issue but I am unable to fix it.
Below is the error im getting again and again.
Please provide a brief summary of the bug
I am trying to run to get response from serial port.
I have checked all the possible outcomes to fix this issue but I am unable to fix it.
Below is the error im getting again and again.
Please provide steps to reproduce where possible
import gnu.io.CommPortIdentifier;
import gnu.io.CommPort;
import gnu.io.SerialPort;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Scanner;
public class CommPortExample {
public static void main(String args[])
{
Scanner scanner = new Scanner(System.in);
System.out.println("Enter command: ");
String command = scanner.nextLine();
scanner.close();
String portName = "COM11";
}
Expected Results
Enter command:
O0265Z
The device connected to usb port will beep after getting this command
Actual Results
Enter command:
O0265Z
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180005b00, pid=32216, tid=8300
JRE version: OpenJDK Runtime Environment Temurin-17.0.8.1+1 (17.0.8.1+1) (build 17.0.8.1+1)
Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (17.0.8.1+1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
Problematic frame:
C [rxtxSerial.dll+0x5b00]
No core dump will be written. Minidumps are not enabled by default on client versions of Windows
If you would like to submit a bug report, please visit:
https://github.com/adoptium/adoptium-support/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
What Java Version are you using?
1.8.0_381
What is your operating system and platform?
Windows 11 pro version 22H2
Using VS Code x64-1.82.2
How did you install Java?
https://www.java.com/en/download/
DOwnload from here and install it
Did it work before?
No response
Did you test with the latest update version?
No response
Did you test with other Java versions?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: