[RESOLVED] Class.forName() won't return class Object

Hi,
Every time I get to this line of code, a ClassNotFoundException is thrown: Class.forName(SocketProgrammingTests.class.getName());
SocketProgrammingTests is a class I created within the project I’m working in, but I can’t get this to work even with other jar files that are in the build path.

I’m stuck and google searches pertaining to eclipse classpath or eclipse buildpath on the matter have not been useful for solving this issue.

Thanks,
Austin

I figured it out. I needed to add a *.types.list file with the complete name of the java file used.

2 Likes