you have to put the path to your java installation into the PATH system variable (look ip up on google). do not put the absolute path into your batch as the relative paths are needed.
Code:
start javaw -Xmx256M -DRIM_RUNTIME=..\lib -DRIM_BIN=..\bin -jar IDE.jar
would be the correct batch-file, executed in the bin-directory of your installation.