Yes, that's how you need to set your PATH. However, if you're using a newer version of KDE, you're going to find that it won't respect any of the PATH settings in your ~/.bash_profile, so you'll lose it every time you reboot. Here's a workaround.
As root, you need to set up a symbolic link to java.
For my (IBM) Java, I'd use:
# ln -s /opt/IBMJava2-13/jre/bin/javaw /usr/bin/java
# chmod a+x /usr/bin/java
If you are using a different java, then just enter what you would have entered into PATH, but instead of stopping at
/bin
use
/bin/java_wrapper |