You have just added some paths to your Java CLASSPATH environment variables and you want to be able to test your software without logging out of your shell.
Here is the command to reload your profile:
source ~/.bash_profile
If you are using another distribution, just check the “source” command for your distro.