noclassdeffound error in java, linux -
running java class shell script:
java -cp $classpath cg_gpsrequest "dbname","oracle.jdbc.driver.oracledriver","abc","abc" while running script in unix, getting error,
exception in thread "main" java.lang.noclassdeffounderror: cg_gpsrequest caused by: java.lang.classnotfoundexception: cg_gpsrequest class file name.
okay.. if understand correctly..
i think problem package name specification..
your calss cg_gpsrequest must have specified in packaging way example
com.xxx.yyy.cg_gpsrequest so think jvm searching class com.xxx.yyy.cg_gpsrequest in patter please run script following modifications.
java -cp $classpath com.xxx.yyy.cg_gpsrequest "dbname","oracle.jdbc.driver.oracledriver","abc","abc" this assumption have created class in pacakgin hirarechy since havent specified more information.
Comments
Post a Comment