You can put the commands in the users ~/.bash_profile or globally in /etc/profile. An alternative, which I think is better because you don't have to edit any of the original configuration files, is to create a script in /etc/profile.d call is something like java.sh and make it executable. Put the commands below
Code:
export PATH=$PATH:/usr/local/java/SDK/jdk/bin
and those of of your CLASSPATH variable. Logout and back in again or do "source /etc/profile".