Problem is solved. It was just a problem with oracle java. It is only running as headless version. So if i change to this version of
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)
with this apt-get : apt-get install openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
Everything is running with headless and without headless.
So thanks a lot for the help
Having issues with your DietPi installation or found a bug? Post it here.