public static void main(String[] args) throws Exception {
System.out.println("Connecting to serial device...");
MyPrefs.init();
System.out.println("Using port: " + MyPrefs.get("serial.port"));
System.out.println("Using board: " + MyPrefs.get("board"));
CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(
MyPrefs.get("serial.port"));
SerialPort port = (SerialPort)portId.open("serial talker", 4000);
// open the streams
input = port.getInputStream();
output = port.getOutputStream();
port.setSerialPortParams(MyPrefs.getInteger("serial.debug_rate"),
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new ArduinoJava().setVisible(true);
}
});
}
Output:
C:\...\Java.java:147: illegal start of expression
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: illegal start of expression
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: ';' expected
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: '.class' expected
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: ';' expected
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: illegal start of expression
public static void main(String[] args) throws Exception {
C:\...\Java.java:147: ';' expected
public static void main(String[] args) throws Exception {
Se precisa posto o código inteiro aqui...
http://pastebin.com/yJPT1kTF
[]'s


