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
Are using eclipse? If yes, please do a project clean and select build automatically. I think the classes are not getting build.