the complete command I ran is
C:\Users\krisv\Desktop\Signing>C:\Users\krisv\AppData\Local\Android\sdk1\build-tools\25.0.3\apksigner.bat sign --ks release-key.jks --out signed.apk aligned.apk
which gives me the java virtual machine error above.
I also tried
C:\Users\krisv\Desktop\Signing>C:\Users\krisv\AppData\Local\Android\sdk1\build-tools\25.0.3\lib\apksigner.jar sign --ks release-key.jks --out signed.apk aligned.apk
which doesn't seem to do anything at all.
I currently have worked around it thanks to htmlgames, but I would like to know how to do it trough cmd.
I did use the tutorial and named the key and alligned apk accordingly
thanks in advance