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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:03:06+00:00 2026-06-17T08:03:06+00:00

I made a runnable jar with external libraries. Under Windows I use a bat

  • 0

I made a runnable jar with external libraries. Under Windows I use a bat file to run the application (java -Djava.library.path=./dist/lib -cp ./dist/Navegador.jar; navegador.Main) and it works properly.

I created a sh file to run the application under Linux, but Im getting the following error while trying to execute it in terminal:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
chrriis/dj/nativeswing/NativeSwing

My Manifest.mf is like this:

Class-Path: lib/DJNativeSwing-SWT.jar lib/DJNativeSwing-SWTAPI.jar lib
/DJNativeSwing-SWTCore.jar lib/MozillaInterfaces-1.8.1.3.jar lib/DJNa
tiveSwing.jar lib/swt.jar

Why this jar doesn’t work under Linux?

  • 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-17T08:03:07+00:00Added an answer on June 17, 2026 at 8:03 am

    Do you one or two lib directories? You have

    -Djava.library.path=./dist/lib
    

    but you also have

     lib/DJNativeSwing.jar
    

    Does this mean you have a dist/lib and lib directory or should they be the same?

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

Sidebar

Related Questions

I've made some Java application, and I want to make executable JAR file. I've
I made a Java swing application. My main class does the whole SwingUtilities.invokeLater(new Runnable()
I made a runnable JAR in eclipse with the export option. When i run
I made an application that passes trough an XML file and extracts the entries
Here's the deal. I'm just starting with Java programming, I've made a simple application
I have a little game that I made (a runnable jar) and would like
Possible Duplicate: Corrupt jar file I made a game in Eclipse and packaged all
I have made a Java application that uses the PBKDF2WithHmacSHA1 encryption algorithm and I
I have made a small swing application for my personal use. This app connects
I've just made a runnable .jar (or a normal .jar, where I set off

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.