Thank you Martin, you were right. Now the java.exe is working properly and that might be the problem with my app. As I said - the application is not pure Java, it just uses JVM, it is not open-source, it is commercial application and it also uses some DLLs. So now my problem is with the application, that it cannot find the jre when starting(it is started by .exe file) - the jre is located in one subfolder but it still cannot be found :-\