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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:44:31+00:00 2026-05-23T07:44:31+00:00

Hi all Hi I am using Netbeans IDE 6.9.1. I created a project Example1

  • 0

Hi all
Hi I am using Netbeans IDE 6.9.1.
I created a project Example1 and defined a class Example1Sample which has a display().
I created another project Example2 and defined a class Example2Sample and in this class I created a main() in which i am calling the display() method of Example1Sample,
( I added Example1.jar in classpath )I works fine when i run it from the Netbeans IDE.
But when i created jars( using Netbeans IDE) and tryed to run the it did not work and giving the exception that

Exception in thread "main" java.lang.NoClassDefFoundError: com/example1/ExamSample
        at com.example2.Example2Sample.main(Example2Sample.java:20)
Caused by: java.lang.ClassNotFoundException: com.example1.Example1Sample
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 1 more

What can be the problem and how can i remove that.

Thanks

  • 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-05-23T07:44:31+00:00Added an answer on May 23, 2026 at 7:44 am

    Netbeans creates manifest.mf file that sets the jars in the classpath. if the jars are not found in the structure as mentioned in that then it gives such errors. To solve the problems once you might look in to the manifest.

    Thanks

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

Sidebar

Related Questions

I'm using the NetBeans IDE. Normally, every PHP file in my project has code
I am currently using NetBeans IDE with Jython 2.5.1 When debugging my project step
First of all I'm using netbeans as my IDE and I don't know if
I'm using NetBeans IDE to develop a project for my senior year. The project
All, I am using Netbeans IDE and connected it to Subversion. I have two
I am currently building a small visual designer using the Netbeans Platform. All my
Is okay to break all dependencies using interfaces just to make a class testable?
I tried to display the url using all sorts of methods of HttpRequest, I
i have several controllers which will all be using common functionality. So i have
I'm developing a j2me application using Netbeans IDE and LWUIT library. I need to

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.