t***@sun.com
2005-08-17 07:24:15 UTC
Hi,
My module uses a native library rxtxSerial.dll, so I put the rxtxSerial.dll in nb4.1/module/lib. (nb4.1/module is where the module jar file lives). I also included the rxtxSerial.dll in the module's build.xml's files-init target. However, I got a runtime exception.
One thing to note is, before I moved my module to be part of the netbeans ide build ( i.e when the module was installed as a plug-in through the update center) I would put the rxtxSerial.dll in the user directory's module/lib, and it worked fine. I read in one of the documents that the module/lib in both the user and installation directory will be added to the search path for System.loadlibrary() from the module's code. But the document also says this is an unsupport way. Is this still valid? What should I do so that my module can use this library?
Thanks.
Tim Shi
My module uses a native library rxtxSerial.dll, so I put the rxtxSerial.dll in nb4.1/module/lib. (nb4.1/module is where the module jar file lives). I also included the rxtxSerial.dll in the module's build.xml's files-init target. However, I got a runtime exception.
One thing to note is, before I moved my module to be part of the netbeans ide build ( i.e when the module was installed as a plug-in through the update center) I would put the rxtxSerial.dll in the user directory's module/lib, and it worked fine. I read in one of the documents that the module/lib in both the user and installation directory will be added to the search path for System.loadlibrary() from the module's code. But the document also says this is an unsupport way. Is this still valid? What should I do so that my module can use this library?
Thanks.
Tim Shi