Help by telling how to fix such error

Error EPERM: operation not permitted, mkdtemp ‘C:\PROGRA~2\Java\JDK18~1.0_1\bin\xod_temp_sketchbookXXXXXX’

It is saying you don’t have permission to create that directory. You need wire permission in the bin directory, or change where temp directory is created (if possible).