macos下,java串口通信编程的问题: jdk里找不到$(ARCH)

rt所示,
我是Macos系统,想写个串口通信的软件,知道有java的comm,但是macos下只能使用和comm差不多的RXTX,用import gnu.io.*
从网上下载了RXTXcomm.jar、librxtxSerial.jnilib、librxtxParallel.so、librxtxSerial.so四个文件,
但是在我想要把这些文件放到jdk目录下对应的位置的时候:
按之前前辈们的做法是(他们是在linux下成功的):
“如果要脱离eclipse单独执行串口通信程序,将librxtxSerial.so复制到$JAVA_HOME/jre/lib/amd64/目录下(如果是32位系统应该是i386或者i686,而不是amd64)就OK了。”
这里的amd64指代$(ARCH),差不多是体系结构的东西,但是我在我的jdk下没有找类似的目录……
我用ls -l命令就发现了以下的文件:(根本连目录都没几个)
于是这一步就告吹了,求助有没有大神知道该怎么办…我看其他的两个帖子也都是需要到$(ARCH)里面的。而官网上是Make的方法,也是和这个相关的似乎…总之就是绕不过这个了
drwxrwxr-x 2 root wheel 68 7 12 19:55 applet
-rw-rw-r-- 1 root wheel 1378 7 12 19:55 calendars.properties
-rw-rw-r-- 1 root wheel 3135391 7 12 19:55 charsets.jar
-rw-rw-r-- 1 root wheel 72450 7 12 19:55 classlist
drwxrwxr-x 7 root wheel 238 7 12 19:55 cmm
-rw-rw-r-- 1 root wheel 5916 7 12 19:55 content-types.properties
-rw-rw-r-- 1 root wheel 4122 7 12 19:55 currency.data
-rw-rw-r-- 1 root wheel 2233848 7 12 19:55 deploy.jar
drwxrwxr-x 14 root wheel 476 7 24 18:09 ext
-rw-rw-r-- 1 root wheel 4211 7 12 19:55 flavormap.properties
-rw-rw-r-- 1 root wheel 3058 7 12 19:55 fontconfig.bfc
-rw-rw-r-- 1 root wheel 8087 7 12 19:55 fontconfig.properties.src
drwxrwxr-x 11 root wheel 374 7 12 19:55 fonts
-rw-rw-r-- 1 root wheel 13962 7 12 19:55 hijrah-config-umalqura.properties
drwxrwxr-x 3 root wheel 102 7 12 19:55 images
-rwxrwxr-x 1 root wheel 56 6 27 04:04 javafx.properties
-rw-rw-r-- 1 root wheel 476504 7 12 19:55 javaws.jar
-rw-rw-r-- 1 root wheel 116446 7 12 19:55 jce.jar
drwxrwxr-x 4 root wheel 136 7 12 19:55 jfr
-rw-rw-r-- 1 root wheel 560581 7 12 19:55 jfr.jar
-rwxrwxr-x 1 root wheel 33930 6 27 04:04 jfxswt.jar
drwxrwxr-x 3 root wheel 102 7 12 19:55 jli
-rwxrwxr-x 1 root wheel 15136 7 12 19:55 jspawnhelper
-rw-rw-r-- 1 root wheel 648816 7 12 19:55 jsse.jar
-rw-rw-r-- 1 root wheel 624 7 12 19:55 jvm.cfg
-rw-rw-r-- 1 root wheel 4226 7 12 19:55 jvm.hprof.txt
-rwxrwxr-x 1 root wheel 45120 7 12 19:55 libAppleScriptEngine.dylib
-rwxrwxr-x 1 root wheel 16076 7 12 19:55 libattach.dylib
-rwxrwxr-x 1 root wheel 552948 7 12 19:55 libawt.dylib
-rwxrwxr-x 1 root wheel 731112 7 12 19:55 libawt_lwawt.dylib
-rwxrwxr-x 1 root wheel 9164 7 12 19:55 libbci.dylib
-rwxrwxr-x 1 root wheel 186456 7 12 19:55 libdcpr.dylib
-rwxrwxr-x 1 root wheel 62900 6 27 04:04 libdecora_sse.dylib
-rwxrwxr-x 1 root wheel 167304 7 12 19:55 libdeploy.dylib
-rwxrwxr-x 1 root wheel 25616 7 12 19:55 libdt_socket.dylib
-rwxrwxr-x 1 root wheel 419440 7 12 19:55 libfontmanager.dylib
-rwxrwxr-x 1 root wheel 174156 6 27 04:04 libfxplugins.dylib
-rwxrwxr-x 1 root wheel 380660 6 27 04:04 libglass.dylib
-rwxrwxr-x 1 root wheel 1180688 6 27 04:04 libglib-lite.dylib
-rwxrwxr-x 1 root wheel 1537888 6 27 04:04 libgstreamer-lite.dylib
-rwxrwxr-x 1 root wheel 217016 7 12 19:55 libhprof.dylib
-rwxrwxr-x 1 root wheel 142408 7 12 19:55 libinstrument.dylib
-rwxrwxr-x 1 root wheel 41124 7 12 19:55 libj2gss.dylib
-rwxrwxr-x 1 root wheel 15092 7 12 19:55 libj2pcsc.dylib
-rwxrwxr-x 1 root wheel 70692 7 12 19:55 libj2pkcs11.dylib
-rwxrwxr-x 1 root wheel 8852 7 12 19:55 libjaas_unix.dylib
-rwxrwxr-x 1 root wheel 216900 7 12 19:55 libjava.dylib
-rwxrwxr-x 1 root wheel 28896 7 12 19:55 libjava_crw_demo.dylib
-rwxrwxr-x 1 root wheel 38524 6 27 04:04 libjavafx_font.dylib
-rwxrwxr-x 1 root wheel 780876 6 27 04:04 libjavafx_font_t2k.dylib
-rwxrwxr-x 1 root wheel 250956 6 27 04:04 libjavafx_iio.dylib
-rwxrwxr-x 1 root wheel 8652 7 12 19:55 libjawt.dylib
-rwxrwxr-x 1 root wheel 304424 7 12 19:55 libjdwp.dylib
-rwxrwxr-x 1 root wheel 25328 7 12 19:55 libjfr.dylib
-rwxrwxr-x 1 root wheel 240840 6 27 04:04 libjfxmedia.dylib
-rwxrwxr-x 1 root wheel 214088 6 27 04:04 libjfxmedia_avf.dylib
-rwxrwxr-x 1 root wheel 53204 6 27 04:04 libjfxmedia_qtkit.dylib
-rwxrwxr-x 1 root wheel 33641216 6 27 04:04 libjfxwebkit.dylib
-rwxrwxr-x 1 root wheel 184620 7 12 19:55 libjpeg.dylib
-rwxrwxr-x 1 root wheel 14636 7 12 19:55 libjsdt.dylib
-rwxrwxr-x 1 root wheel 15744 7 12 19:55 libjsig.dylib
-rwxrwxr-x 1 root wheel 74872 7 12 19:55 libjsound.dylib
-rwxrwxr-x 1 root wheel 374428 7 12 19:55 libkcms.dylib
-rwxrwxr-x 1 root wheel 333072 7 12 19:55 liblcms.dylib
-rwxrwxr-x 1 root wheel 53592 7 12 19:55 libmanagement.dylib
-rwxrwxr-x 1 root wheel 834796 7 12 19:55 libmlib_image.dylib
-rwxrwxr-x 1 root wheel 90668 7 12 19:55 libnet.dylib
-rwxrwxr-x 1 root wheel 61460 7 12 19:55 libnio.dylib
-rwxrwxr-x 1 root wheel 15692 7 12 19:55 libnpt.dylib
-rwxrwxr-x 1 root wheel 55364 7 12 19:55 libosx.dylib
-rwxrwxr-x 1 root wheel 110948 7 12 19:55 libosxapp.dylib
-rwxrwxr-x 1 root wheel 14424 7 12 19:55 libosxkrb5.dylib
-rwxrwxr-x 1 root wheel 36068 7 12 19:55 libosxui.dylib
-rwxrwxr-x 1 root wheel 54820 6 27 04:04 libprism_common.dylib
-rwxrwxr-x 1 root wheel 62084 6 27 04:04 libprism_es2.dylib
-rwxrwxr-x 1 root wheel 67968 6 27 04:04 libprism_sw.dylib
-rwxrwxr-x 1 root wheel 10104 7 12 19:55 libresource.dylib
-rwxrwxr-x 1 root wheel 77044 7 12 19:55 libsaproc.dylib
-rwxrwxr-x 1 root wheel 344584 7 12 19:55 libsplashscreen.dylib
-rwxrwxr-x 1 root wheel 161704 7 12 19:55 libsunec.dylib
-rwxrwxr-x 1 root wheel 310328 7 12 19:55 libt2k.dylib
-rwxrwxr-x 1 root wheel 102212 7 12 19:55 libunpack.dylib
-rwxrwxr-x 1 root wheel 49472 7 12 19:55 libverify.dylib
-rwxrwxr-x 1 root wheel 36680 7 12 19:55 libzip.dylib
-rw-rw-r-- 1 root wheel 2455 7 12 19:55 logging.properties
drwxrwxr-x 6 root wheel 204 7 12 19:55 management
-rw-rw-r-- 1 root wheel 381 7 12 19:55 management-agent.jar
-rw-rw-r-- 1 root wheel 2107 7 12 19:55 meta-index
-rw-rw-r-- 1 root wheel 4464 7 12 19:55 net.properties
-rw-rw-r-- 1 root wheel 942164 7 12 19:55 plugin.jar
-rw-rw-r-- 1 root wheel 2796 7 12 19:55 psfont.properties.ja
-rw-rw-r-- 1 root wheel 10393 7 12 19:55 psfontj2d.properties
-rw-rw-r-- 1 root wheel 3505340 7 12 19:55 resources.jar
-rw-rw-r-- 1 root wheel 66815098 7 12 19:55 rt.jar
drwxrwxr-x 10 root wheel 340 7 12 19:55 security
drwxrwxr-x 5 root wheel 170 7 12 19:55 server
-rw-rw-r-- 1 root wheel 1210 7 12 19:55 sound.properties
-rw-rw-r-- 1 root wheel 105500 7 12 19:55 tzdb.dat

不知道该怎么解决。
由于我java用的不多……电脑为了节约空间,也没装java开发用的IDE,.java文件甚至是用Android Studio来写的。所以有点懵逼……

1个回答

就是jdk内的文件咋配置,以及还有其他解决方案吗

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问