Make instance of class in java at runtime

Posted by Milan on Stack Overflow See other posts from Stack Overflow or by Milan
Published on 2010-03-28T15:35:17Z Indexed on 2010/03/28 15:43 UTC
Read the original article Hit count: 208

Filed under:
|
|

In my program I generate classes dynamically but when I try:

Class service = Class.forName("com.MyClass");

I recieve java.lang.ClassNotFoundException

If I run one more time the program (in Eclipse), then it is working.

Does anybody see the problem

© Stack Overflow or respective owner

Related posts about class

Related posts about java