由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - java comm 请教
相关主题
Java funan IDE worth a try
[转载] 有人在用NetBeans IDE么?How about Swing?
现在哪种java开发环境比较流行呀?Dos and Don'ts about classpath
netbean and eclipse调查:最好的Java IDE
Java 6和Java 8的问题没法用Re: netbeans 4.0 is very good
eclipse 气死我了!Java IDE 选择?
JAVA IDE ?应该站哪条队:.NET 还是 Java/J2EE?
Re: Is there a free IDE with code autocompletion?[转帖]如何才算掌握Java(J2SE篇)
相关话题的讨论汇总
话题: comm话题: java话题: ljava话题: command话题: error
进入Java版参与讨论
1 (共1页)
o*****l
发帖数: 539
1
I am using java comm to do some serial port communication project.
win32com.dll(driver) is put in c:\windows\system32.
OS is windows 7.
If I run the application from Netbeans IDE, everything works fine.
If I run from command line "java -jar xx.jar", got following error:
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.
readRegistrySerial(Ljava/util/Vector;Ljava/lang/String
u****s
发帖数: 2186
2
PATH?
if you load DLL from Windows, the dll file shoule be in PATH.
Netbeans could have set some environment values.
If you run from command line, it use the %PATH% variable set by OS System/
User
you can also set it from command line, so it only affects the command line
window you are running.

【在 o*****l 的大作中提到】
: I am using java comm to do some serial port communication project.
: win32com.dll(driver) is put in c:\windows\system32.
: OS is windows 7.
: If I run the application from Netbeans IDE, everything works fine.
: If I run from command line "java -jar xx.jar", got following error:
: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
: SolarisSerialParallel in java.library.path
: Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.
: readRegistrySerial(Ljava/util/Vector;Ljava/lang/String

g*****g
发帖数: 34805
3
It's better to copy the dll as one of your resource file
and bundle with it.

【在 u****s 的大作中提到】
: PATH?
: if you load DLL from Windows, the dll file shoule be in PATH.
: Netbeans could have set some environment values.
: If you run from command line, it use the %PATH% variable set by OS System/
: User
: you can also set it from command line, so it only affects the command line
: window you are running.

1 (共1页)
进入Java版参与讨论
相关主题
[转帖]如何才算掌握Java(J2SE篇)Java 6和Java 8的问题
有啥比较好的Java的Editor or Free IDE?eclipse 气死我了!
[合集] 大家都用什么平台使用JAVA?JAVA IDE ?
which IDE for GUI ?Re: Is there a free IDE with code autocompletion?
Java funan IDE worth a try
[转载] 有人在用NetBeans IDE么?How about Swing?
现在哪种java开发环境比较流行呀?Dos and Don'ts about classpath
netbean and eclipse调查:最好的Java IDE
相关话题的讨论汇总
话题: comm话题: java话题: ljava话题: command话题: error