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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:14:01+00:00 2026-05-25T10:14:01+00:00

I have a java project which includes settings, bin, src, .classpath, .project. I am

  • 0

I have a java project which includes settings, bin, src, .classpath, .project.
I am trying to run this project in eclipse, so I import this project. Now in eclipse I can see src which includes (default package) and com.mjm.transactions,(default package) includes all .java files, in com.mjm.transactions it is supposed to exist all .class files in transactions folder which I cant see in eclipse, and so there is error on import com.mjm.transactions.myclass; of cannot be resolved.

I also used ‘Add class folder’ in myProject->properties->Library ->myclass.zip but it is not importing myclass.class, if I use organize imports in eclipse it resolves this error and adds Reference Libraries/myClass.zip/default package/myclass.class but now giving me error Exception in thread “main” java.lang.NoClassDefFoundError: com/mjm/transactions/myclass when I run it.

Where is the problem, pls help me out. 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-25T10:14:02+00:00Added an answer on May 25, 2026 at 10:14 am

    If your source files are in the com.mjm.transactions package, then they should be placed in src/com/mjm/transactions in order for Eclipse to recognize that they are part of the com.mjm.transactions package. Move all the .java files in the default package to the com.mjm.transactions package within Eclipse and it should be OK.

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

Sidebar

Related Questions

I have a project A, which contains some java files and a classpath resource
I have this general project folder of mine which includes a variety of stuff:
I'm doing a project in Java which includes (x,y) coordinates. I have created a
I have to give a general note to some huge Java project for which
I have a maven project with the following packages (for illustration only): Root: src/main/java
I have a Java EE project which build fine with Ant, deploys perfectly to
I just started looking at the new FIRST Robotics Java SDK, which includes project
I have recently created a web project in Java using eclipse. I have a
I have been working on a Java project for a class for a while
On my java project, I have a bunch of strings externalized on a messages.properties

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.