1
0
Fork 0
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:
Doug Schaefer 2015-03-12 10:50:52 -07:00
parent b2460aaf53
commit bfa48eafa7

View file

@ -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);
}
}
/**