I got the suggestion from JLinkUserGuide in 'Graphics and Typeset Output' chapter bellowed:
It is very important to note that you execute
CloseFrontEndbefore closing the link to the kernel. This is essential to prevent the front end from quitting in circumstances where it should not~specifically, if an already-running copy was used and the user has open documents.
But this does not work.
This's my code of init
System.setProperty("com.wolfram.jlink.libdir", "/usr/local/Wolfram/Mathematica/10.0/SystemFiles/Links/JLink/SystemFiles/Libraries/Linux-x86-64"); KernelLink kernelLink = MathLinkFactory.createKernelLink("-linkmode launch -linkname /usr/local/Wolfram/Mathematica/10.0/Executables/MathKernel -mathlink"); kernelLink.connect(); kernelLink.discardAnswer();
kernelLink.evaluateToOutputForm("CloseFrontEnd", 0); kernelLink.close();