mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Protect against missing serial port native library.
This commit is contained in:
parent
b2460aaf53
commit
bfa48eafa7
1 changed files with 6 additions and 1 deletions
|
@ -19,6 +19,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.eclipse.cdt.internal.core.natives.CNativePlugin;
|
||||
import org.eclipse.cdt.internal.core.natives.Messages;
|
||||
import org.eclipse.cdt.utils.WindowsRegistry;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
|
@ -40,7 +41,11 @@ public class SerialPort {
|
|||
private static final String PORT_OPEN = Messages.SerialPort_PORT_IS_OPEN;
|
||||
|
||||
static {
|
||||
System.loadLibrary("serial"); //$NON-NLS-1$
|
||||
try {
|
||||
System.loadLibrary("serial"); //$NON-NLS-1$
|
||||
} catch (Exception e) {
|
||||
CNativePlugin.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue