Based on your comment, I find that…after restarting the Mac…launching HelloIOIOSwing.jar works fine. After running HelloIOIOSwing from Eclipse which has no compile errors but does not work…launching HelloIOIOSwing.jar does not work anymore until I reboot the Mac. Does the HelloIOIOSwing source code shut things down properly upon completion?
On Sunday, December 7, 2014 8:10:10 PM UTC-8, Ytai wrote: > > Seems like you still have something running that's using the port. > > On Sun, Dec 7, 2014 at 3:15 PM, Vic Wintriss <[email protected] > <javascript:>> wrote: > >> Worked great the first time I tried, but now I get these errors when >> running HelloIOIOswing...no compile errors: >> >> [E/IOIOConnectionRegistry] Exception caught while attempting to >> initialize connection factory >> >> java.lang.NoClassDefFoundError: purejavacomm/PortInUseException >> >> at java.lang.Class.forName0(Native Method) >> >> at java.lang.Class.forName(Class.java:260) >> >> at ioio.lib.util.IOIOConnectionRegistry.addBootstrap( >> IOIOConnectionRegistry.java:111) >> >> at ioio.lib.util.IOIOConnectionRegistry.addBootstraps( >> IOIOConnectionRegistry.java:97) >> >> at ioio.lib.util.pc.IOIOPcApplicationHelper.<clinit>( >> IOIOPcApplicationHelper.java:59) >> >> at ioio.lib.util.pc.IOIOSwingApp.<init>(IOIOSwingApp.java:72) >> >> at HelloIOIOSwing.<init>(HelloIOIOSwing.java:20) >> >> at HelloIOIOSwing.main(HelloIOIOSwing.java:26) >> >> Caused by: java.lang.ClassNotFoundException: >> purejavacomm.PortInUseException >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:372) >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:361) >> >> at java.security.AccessController.doPrivileged(Native Method) >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:360) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >> >> ... 8 more >> >> The ioio board seems to be there; >> >> VicMacMini-2:~ VicMini$ ls /dev/tty.usb* >> >> /dev/tty.usbmodem1d13131 >> >> Ideas? >> >> On Thursday, December 4, 2014 10:50:15 AM UTC-8, Vic Wintriss wrote: >>> >>> I would like to set up a simple demo at our school where we teach kids >>> Java starting in the 5th grade...like blinking a led. Since we already use >>> the ioio board in our robots for the International Autonomous Robot >>> Competition (iARoC), it would be nice to continue using the ioio boards >>> instead of having to go to an Arduino, etc. Can I just write the programs >>> in Java in a Mac and run them in the Mac, using the ioio board to connect >>> to the outside world...no Androids? >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "ioio-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/ioio-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
