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 8210905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:14:29+00:00 2026-06-07T10:14:29+00:00

We have an application developed in NetBeans, based on the NetBeans platform. There’s a

  • 0

We have an application developed in NetBeans, based on the NetBeans platform. There’s a 3’rd party program that we have a runtime dependency on, more specifically a jar in the other progams lib folder.

How should we include the other progam’s jar in our classpath?

The recommendation from the other progam’s manufacturer is to set environment variable CLASSPATH to include

C:\Progam Files\Other Program\lib\theJAR.jar

And if that’s not possible, we should copy theJAR.jar to JRE-HOME\lib\ext

We must not copy theJAR.jar anywhere else, that might cause it to stop working…

Now NetBeans takes no notice of what’s on environment variable CLASSPATH. Their recommended way seems to be to make a wrapper, but that would lead to copying the jar, unless there’s some way to make a wrapper module that points to CLASSPATH?

At the moment we are copying the jar into JRE-HOME\lib\ext. But then there’s unnecessary hassle when we install some java update.

Do you have any solution to this problem? It seems like something that might be simple, but I haven’t found the right place to look yet…

Edit: The application is ant-based.

  • 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. Editorial Team
    Editorial Team
    2026-06-07T10:14:30+00:00Added an answer on June 7, 2026 at 10:14 am

    From the documentation for the Module System API’s overview of the runtime infrastructure (bottom of the page under the section "Common Problems and Solutions"):

    Q: Can my module add a library JAR to the classpath from outside the
    IDE [read: platform] installation?…

    A: Not easily. You have a few options:

    1. Add an entry to ide.cfg [your app’s .config file]. For example:

    -cp:a c:\eak\lib\eak.jar This startup file provides the ability to add classpath entries to the IDE’s Java invocation.
    …

    It goes on to list two more options. The second option is the same solution you’ve come up with. The third is to "partition your module and use a new classloader" which I can’t recommend either way since I have no experience doing this (but it’s worth a read).

    Assuming that this first option is what you are looking for, you will need to add a custom .conf file to your project and point to it in your project.properties file, like so: app.conf=nbproject/my.conf. This will add your custom .conf file to your app’s install directory instead of the default config file that is normally added. Of course, you’ll need to add the -cp:a c:\eak\lib\eak.jar entry to this custom config file in order to load the .jar.

    During development you’ll need to add the following entry to the project.properties file: run.args.extra=-cp:a c:\eak\lib\eak.jar. This will pass the command line option to your debug instance.

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

Sidebar

Related Questions

I have developed application in Netbeans IDE 6.9 Using javafx Script based Application. i
I have developed a web application using Netbeans 6.7 and Ant. The webapp works,
I have a Java EE 6 application developed on Netbeans 7 and try to
I have developed a Java Application that connects with a database (insert, select ...)
I have windows application developed based on WPF,i am going thur weird issue here.
I have an application developed in netbeans and I want to set the focus
I have developed a JSP web application using NetBeans IDE and a Virtuoso RDBMS.
I have a small GUI application developed with netbeans. I used the 'clean and
I have developed Java desktop application using Netbeans. In my application, I used some
I have a Swing GUI that I developed Netbeans Matisse in Linux. For some

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.