Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 130465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:57:08+00:00 2026-05-11T05:57:08+00:00

I have a project that uses the serial port, and it requires two files

  • 0

I have a project that uses the serial port, and it requires two files to run, the win32.dll file (which is in the java runtime environment bin folder) and the javax.comm.properties file (which is in the java runtime environment lib folder). When I run the project from eclipse it works, but when I try to build a jar file for distribution, it won’t work. I suspect this is because the dll and properties files aren’t included in the jar. How do I specify that they need to be there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:57:09+00:00Added an answer on May 11, 2026 at 5:57 am

    You generally don’t put dll and properties files inside the jar. Properties files as well other jar files need to be added to the classpath. The jar file has a manifest file that defines the classpath used. You can’t edit this with eclipse. You need to define an ant build.xml file and do something like this:

    <jar jarfile='${dist}/MyJar.jar' basedir='${build}'>   <manifest>     <attribute name='Main-Class' value='MyClass'/>     <attribute name='Class-Path' value='.'/>   </manifest> </jar> 

    Then put the properties file in the same folder as the jar. You can run the ant target by right clicking the build.xml and selecting the ‘Run as Ant target’.

    If I remember correctly, placing the dll file in the bin directory of the jre will work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that uses two third party libraries, both of which make
I have a Java project that uses this driver for serial communication. The driver
I have a project that uses two independent Android libraries. Each of them contains
I have a project that uses Java and Groovy intermixed. This works very well.
I have a project that uses a scripted tool to process c header files
I have a project that uses a Java library converted using IKVM . I
I have a project that uses an asmx file with [WebMethods] and [SoapHeader(Auth)]. I
I have a project that uses generics and a few Java 1.5/6 bits and
I have Java project that uses a JAR from another Eclipse project (open source
I have a project that uses a DLL that I have created. Everything works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.