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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:54:22+00:00 2026-06-06T09:54:22+00:00

I have a java application ‘JA’ and a Java project containing a servlet project

  • 0

I have a java application ‘JA’ and a Java project containing a servlet project ‘JS’. From JS I need to use classes present in JA. So, I referenced JA in JS by
right click project -> deployment assembly -> add -> project
and have referenced JA.

Now I am able to import the class files in the JS. But when i am trying to instantiate JA in JS then it is showing NoClassDefFoundError for every class in .jar files used in JA. This error is getting removed by adding the .jar files in JS.

My question is, do we need to add all the .jar files in JS, or are there other methods. Am I missing the method of referencing project.

  • 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-06T09:54:26+00:00Added an answer on June 6, 2026 at 9:54 am

    You need to configure the exported libs from JA project.

    This can be done by right click on JA project -> Java Build Path, select tab Order and Export. On this tab you will see all libraries you have referenced on JA. Select the ones you want to export together with JA, click Ok and this is it.

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

Sidebar

Related Questions

I have a java application where main class is dependent with some other classes.
I have a java application, and I want to use rails migrations for this.
I have a Java application which needs to be audited (so obviously I need
I have a Java application and I want to use SQL database. I have
I have java application which I am running on Unix from the command prompt.
I have a Java application (non-web) which must read from a properties file. This
I have a Java application where the domain layer is decoupled from the UI
I have a Java application that downloads a file from a remote server. I
I have an java application that I want to use on a Windows XP
I have a java application build upon Spring 3. This project has another jar

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.