This is that stack trace:Įxception in thread "main" Īt .(USB.java:18)Īt .SpectrometerFactory.getAllSpectrometers(SpectrometerFactory.java:211) // API callĪt .(Wrapper.java:487) // API callĪt .refreshSpectrometerList(OceanOpticsSpectrometer.java:75) // my classĪt .(OceanOpticsSpectrometer.java:96) // my classĪt .main(OceanOpticsSpectrometer.java:464) // my classĬaused by: : Failed to load any native library for USB. However, running this code results in this stack trace that suggests that there is no compatible USB driver for use on MacOS M1. That code will compile with the jars in the build path. I can copy those to my MacOS development environment and import the jars into my java class. If I execute the Windows installer on a Windows machine, I can locate the java archive files (jars) in the installation directory. Plenty of other applications operate as the x86/intel versions on this same computer. The osx-intel executable should work, given Apple’s use of the Rosetta compatibility layer. Which suggests that the executable fails to identify or run an executable consistent with Apple M1 architecture. Zsh: bad CPU type in executable: /Users/./Downloads//Contents/MacOS/OmniDriver (base) ~ % /Users/./Downloads//Contents/MacOS/OmniDriver exit Users/./Downloads//Contents/MacOS/OmniDriver exit Last login: Thu Jul 7 09:55:06 on ttys000 When I try this, I get a terminal window with this output: If I manually open the package contents (right click -> View Package Contents), I can manually run the OmniDriver or osx-intel Unix Executable File that I find inside the package. OceanInsight provides a java API for their spectrometers here ( "OmniDriver+SPAM (Spectral Processing advanced math)" ): Perhaps some of you smart people here may think of something I haven't. This time around, I have a broken USB driver for an otherwise working java API from Ocean Insight for their USB type spectrometers. Since I purchased an Apple M1 in late 2021 (Apple M1 Max 10/24, MacOS v12.3.1), I have twice encountered USB driver issues with 3rd party software that otherwise works! This post is only tangentially related to java, since the 3rd party API for the broken USB driver is in java.
0 Comments
Leave a Reply. |