• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Including a DLL in JAR file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using javax.comm to interface with the serial ports and it works well with my IDE(NetBeans).when i try to execute the jar file from the command prompt we get a error like "PORT NOT FOUND".The javax.comm requires a dll file and that is included in my jdk/jre directory.how do i make the jar file to find the dll file?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either the DLL must be in a directory that is in the PATH environment variable, or you must add the directory that contains the DLL to the Java system property java.library.path. For example:

java -Djava.library.path=C:\mydir\that\contains\the\dll -jar myprogram.jar
 
reply
    Bookmark Topic Watch Topic
  • New Topic