A couple of tips:
a) Make sure that the compiled class file exists in current directory.
b) Make sure that the current directory is included in your CLASSPATH environment variable setting.
Yes there is some problem in CLASSPATH ,After changing this the code is compiled successfully
But following error occured
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Class.forName0(Native Method)
The TimesTen JDBC driver is a JDBC/ODBC bridge and so at runtime it needs to load the TimesTen ODBC driver which is a native code library located in <tt_install_dir>/lib (Unix/Linux) or <tt_install_dir>/bin (WIndows). So, your JVM needs to be able to locate that library. This means that you must be sure to include <tt_install_dir>/lib in your LD_LIBRARY_PATH environment variable (Unix/Linux) or <tt_install_dir>/bin in your PATH environment variable (Windows).
An easy way to ensure that your environment is setup properly is to use the relevant environment script located in <tt_install)dir>/bin - ttenv.sh for Bourne shell on Unix/Linux for example.