The command to remove the Java folder completey is:
Code:
rm -rf javafoldername
rm = remove
-rf = recursively force
The -r is the one that can delete the directory and its sub-directories.
-f is to force without prompting for deletion. Be careful when using it.
Depending on where you installed the java folder, you may have to log in as root to remove it.