'javaw' is a Windows-only thing. On Ubuntu you just use 'java'.
On Windows, you use 'javaw' instead of 'java' because the latter opens a command prompt window, and sometimes you don't want that. On Ubuntu however, 'java' does not open a terminal window - you don't need a 'javaw'.
I didnt knew it either. And Im not a typical crossposter. I cross posted few question today only because i was in a hurry. I mostly rely on answers on coderanch because I found them complete and understanable. Thank you all for helping me.