hi have tried executing a .jar file using java -jar jarfilename.jar
but it just returns:
Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP
and it returns the same thing if I use the command java version
,java -version
orjava --version
Any reason why it doesn't work? (I have a Raspberry Pi Model B Rev 2)
1 Answer 1
I have a Raspberry Pi Model B Rev 2
If you mean the (more or less) original single core pi with the yellow RCA and blue 3.5mm jacks, you can't run ARMv7 code.
You'll have to install a java build for ARMv6.
-
Yes I do. How would I install the java build for armv6 ?alec– alec2019年07月07日 14:44:38 +00:00Commented Jul 7, 2019 at 14:44
-
Depends on what OS you are using, I guess. You didn't say where you got this version either. It seems to me that the default one in current Raspbian should be okay, but I'm not sure. You might want to edit the output of
java --version
into your question. The "server vm" is I believe a bit of a different beast than the normal one (which is the "client" version), dunno if that is the reason.goldilocks– goldilocks2019年07月07日 18:14:34 +00:00Commented Jul 7, 2019 at 18:14 -
I downloaded the NOOBS recomended os, it came with java preinstalled.alec– alec2019年07月08日 09:48:38 +00:00Commented Jul 8, 2019 at 9:48
-
NOOBs is actually an installer and not a complete OS, but it includes Raspbian;
cat /etc/issue
should give something likeRaspbian GNU/Linux 10 \n \l
. If it's a previous version, you should just replace what's on the card with plain Raspbian. I dunno why they still recommend NOOBS, it seems to cause more trouble for people than anything else.goldilocks– goldilocks2019年07月08日 16:21:28 +00:00Commented Jul 8, 2019 at 16:21 -
So, the fact that
java -version
returns the same message implies it's the JRE in general. Checkwhich java
. Although I think not many people are still using the original B's, the Zeros have the same processor and it so the OS still has to be ARMv6 compatible.goldilocks– goldilocks2019年07月08日 16:25:07 +00:00Commented Jul 8, 2019 at 16:25