jdk设置,,/etc/profile请教!

jdk设置,,/etc/profile请教!

# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
export CLASSPATH=.:/usr/java/j2sdk1.4.2_09/jre/lib/rt.jar:/usr/java/j2sdk1.4.2_09/lib/tools.jar:/usr/java/j2sdk1.4.2_09/bin
JAVA_HOME=/usr/java/j2sdk1.4.2_09
PATH=.:$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH

[root@IPPBX etc]# java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)
[root@IPPBX etc]#

[root@IPPBX etc]# javac Welcome.java
error: cannot read: Welcome.java
1 error
[root@IPPBX etc]# java Welcome
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome
[root@IPPBX etc]#
请问javac Welcome.java 不知道为什么出错?是不是/etc/profile还没有指明好?还是别的问题,搞不明..请大家..指点!
从错误提示看,/etc/profile没问题,环境变量设置应该成功了。
确认Welcome.java放在/etc目录下吗?
classpath没设置