>> Edit article
이름
제목
패스워드
그렇군요. CLASSPATH 가 안잡혀서 그렇네요. PATH나 SHELL 처럼 CLASSPATH 도 적어주세요. man 5 ctontab 에 보면 이런 내용이 있죠. An active line in a crontab will be either an environment setting or a cron command. An environment setting is of the form, name = value where the spaces around the equal-sign (=) are optional, and any subsequent non-leading spaces in value will be part of the value assigned to name. The value string may be placed in quotes (single or double, but matching) to preserve leading or trailing blanks. : 안녕하세요~ : : 이런 에러가 떠요... : : 이거 클래스 패스 않잡아 줄때 이러는데.. : : 하~ 어떻게 해야하죠- : : Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver : at java.net.URLClassLoader$1.run(URLClassLoader.java:198) : at java.security.AccessController.doPrivileged(Native Method) : at java.net.URLClassLoader.findClass(URLClassLoader.java:187) : at java.lang.ClassLoader.loadClass(ClassLoader.java:286) : at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:282) : at java.lang.ClassLoader.loadClass(ClassLoader.java:243) : at java.lang.Class.forName0(Native Method) : at java.lang.Class.forName(Class.java:120) : at ReadDir.main(ReadDir.java:11) : : 제 크론탭 내용입니다. : : SHELL=/bin/bash : PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/java/bin : MAILTO=root : HOME=/ : : # run-parts : 01 * * * * root run-parts /etc/cron.hourly : 02 4 * * * root run-parts /etc/cron.daily : 22 4 * * 0 root run-parts /etc/cron.weekly : 42 4 1 * * root run-parts /etc/cron.monthly : : 0,5,10,15,20,25,30,35,40,45,50,55 9-13 * * * root java -cp $CLASSPATH:/home/wonkyo ReadDir : : 답변 부탁드려요~ : : : : : 먼 에러가 떠요? : : : : 그걸 봐야 알수 잇자 않을까요? : : : : : 안녕하세요- 왕초보 입니다- : : : : : : Cron 으로 자바파일을 실행시키려는데, : : : : : : 크론 작동된 메일 보면 에러만 계속 뜨고 않되네요... : : : : : : 어떻게 해야 실행할수 있을까요? : : : : : : 쉘 프로그래밍도 할 줄 모르고..... : : : : : : 어떻게 실행해야할지 답변 부탁드립니다- : : : : : : -- : : : 난 언제 고수의 길로... : : : 행복하세요~ : : : : -- : : 껌을 씹을 때는 조용히... : : -- : 난 언제 고수의 길로... : 행복하세요~--껌을 씹을 때는 조용히...
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved