开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: JSSC on M1


 

Sounds like you answered the question. Since you have such a machine, can you download the newer JSSC library you mentioned and drop it in the YAAC/lib directory of your installation (overwriting or replacing the existing jssc-2.9.2.jar [the old one can't continue to exist])? If that works, I'll put the new version of JSSC into the next build of YAAC.

________________________________________
From: [email protected] <[email protected]> on behalf of Carl Makin <carl@...>
Sent: Saturday, January 8, 2022 6:40 PM
To: [email protected]
Subject: Re: [yaac-users] JSSC on M1



On 9 Jan 2022, at 10:22 am, Andrew P. <andrewemt@...> wrote:

Again, I don't _know_ that it's an issue, as I don't have a Mac M1 to test with. Maybe the person who asked will be OK. But I wanted her to be warned how to work around it, as I don't know if the O/S-provided library search code uses the correct directory names for Mac OS X (they were designed for non-Intel Linux distros).
Well, i’m happy to test and report if you need it.

BTW, I’m getting the following error when trying to create a new port.

1641684983877: PortEditor: starting to create editor
1641684983877: PortEditor: starting to create per-driver cards
1641684983877: PortEditor: loading editor class for Serial_TNC
1641684983877: PortEditor: creating card for Serial_TNC
Unable to initialize port configuration panel.: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.ka2ddo.yaac.gui.PortEditor.<init>(PortEditor.java:82)
at org.ka2ddo.yaac.gui.config.ConfigurePorts.actionPerformed(ConfigurePorts.java:97)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
at java.desktop/java.awt.Component.processEvent(Component.java:6391)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class jssc.SerialPortList
at org.ka2ddo.yaac.os.OSAdapter$1.getSerialPortNames(OSAdapter.java:64)
at org.ka2ddo.yaac.os.OSAdapter.getSerialPortNames(OSAdapter.java:94)
at org.ka2ddo.yaac.os.OSAdapter.getCachedSerialPortNames(OSAdapter.java:106)


Carl.


Sun Jan 09 10:34:15 AEDT 2022: YAACBootstrap starting...
os.name=Mac OS X
os.version=12.1
os.arch=aarch64
locale=en_AU
java.version=17
java.class.version=61.0
JVM: Eclipse Adoptium OpenJDK 64-Bit Server VM 17+35
java.class.path=./YAAC.jar

Join [email protected] to automatically receive all group messages.