当我运行UNIX .prog文件时,出现以下错误:
java.lang.NoClassDefFoundError: javax/mail/Session
at APEmail.createMailSession(APEmail.java:231)
at APEmail.main(Compiled Code)
Exception in thread "main"
似乎没有正确设置类路径:
...
SHLIB_PATH=$ORACLE_HOME/lib
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
cd $ORACLE_HOME/JRE/bin
**jre -classpath ../lib/rt.jar:$GENEX_TOP/java:$ORACLE_HOME/jlib/j2ee.jar:\
$ORACLE_HOME/jdbc/lib/classes111.zip APEmail "$login" "$ORACLE_SID" \
"$dname" "$fname" "$crname" "$vname" "$mail_server"**
...
所以我的问题是我在这里错过了什么:正确的类路径还是其他?感谢...