I got something that works for me always.
Save the file „AppInventorForAndroidCodeblocks.jnlp“
Open it with an editor, it’s an XML File.
Delete the line
<j2se version="1.5+" max-heap-size="1024m" java-vm-args=""/>
completly.
Save. Double Click. Done.