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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:15:10+00:00 2026-06-14T15:15:10+00:00

My code is something like ArrayList<someClassIMade> c=new ArrayList<someClassIMade>(); c.add(new someClassIMade(blah,blah)) But for some reason

  • 0

My code is something like

ArrayList<someClassIMade> c=new ArrayList<someClassIMade>();
c.add(new someClassIMade(blah,blah))

But for some reason in the add line I get a class not found exception! The someClassIMade class is in the same src folder as the main class so I’m baffled. I literally do this all the freakin time why is it not working all of a sudden? I checked my run configuration and yes the src folder is there. The program runs and all, I only see the exception when I went to debug to see why the add line wasn’t working and voila class not found. I’m rambling, help?

EDIT:
More code to make this a little clearer
Here is the someClassIMade

public tuples{
    private int start;
private int end;
private int[] tuple=new int[2];
public int getStart() {
    return start;
}
public void setStart(int start) {
    this.start = start;
}
public int getEnd() {
    return end;
}
public void setEnd(int end) {
    this.end = end;
}
public int[] getTuple() {
    return tuple;
}
public void setTuple(int[] tuple) {
    this.tuple = tuple;
}
public tuples(int start,int end){
    this.start=start;
    this.end=end;
    tuple[0]=start;tuple[1]=end;

}

}
and the code I posted earlier is the first time when it shows up in the class I’m trying to use it in and that’s where the error occurs. They are both in the (default package) and I am using only Java native libraries. Hope that clears things up

  • 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-14T15:15:11+00:00Added an answer on June 14, 2026 at 3:15 pm

    Are using eclipse? If yes, please do a project clean and select build automatically. I think the classes are not getting build.

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

Sidebar

Related Questions

I'm trying to do something like endless adapter but not able to accomplish it
Here is some of my Java code public List<OBJ> a = new ArrayList<OBJ>(); public
I work on code something like this ... HEADERS ... int *var; void child()
I occasionally write code something like this: // file1.cpp #define DO_THIS 1 #if DO_THIS
What tool or method can I use to see what code something like an
My code has something like this: HttpFileCollection files Instead of looping through each file
my code is something like this //css li{display:inline-block} //html #li margin and width are
My code is something like the below. When theres 3 images everything is fine
My code looks something like: template <typename type> void deserialize_element(type* result) { //... if
I just discovered a bug where the code looked something like this: char *foo

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.