How to Load a class manually

Hello Friends,

I need a help regarding how to load a class manually.

i have theclass name -- TestClass1

andPath - com.apps.classes

Thank you

[187 byte] By [leopala79a] at [2007-11-27 11:09:41]
# 1

By path I assume you mean package.

At any rate Class.forName

cotton.ma at 2007-7-29 13:37:02 > top of Java-index,Java Essentials,Java Programming...
# 2

Thank You

I got the result

String classPath = com.apps.className;

Object obj = Class.forName(classPath).newInstance();

leopala79a at 2007-7-29 13:37:02 > top of Java-index,Java Essentials,Java Programming...