# Raspberry Pi: "Server VM is only supported on ARMv7+ VFP" error

**URL:** <https://community.wolfram.com/t/raspberry-pi-server-vm-is-only-supported-on-armv7-vfp-error/15624>\
**Category:** Questions\
**Tags:** mathematica, external-interfaces, tuning-and-debugging, raspberry-pi, connected-devices\
**Created:** [March 30, 2020, 10:29am UTC](https://community.wolfram.com/t/raspberry-pi-server-vm-is-only-supported-on-armv7-vfp-error/15624 "2020-03-30T10:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [March 30, 2020, 10:29am UTC](https://community.wolfram.com/t/raspberry-pi-server-vm-is-only-supported-on-armv7-vfp-error/15624/1 "2020-03-30T10:29:17Z")

</div>

_[Cross-posted to Mathematica.SE](https://mathematica.stackexchange.com/q/218347/12)_

I have a Raspberry Pi 1B with Raspbian Buster and Wolfram Engine 12.0.1.

If I try to use J/Link, I get the following error message:

```
~ $ wolfram
Mathematica 12.0.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2019 Wolfram Research, Inc.

In[1]:= Needs["JLink`"]                                                                                                           

In[2]:= InstallJava[]                                                                                                             
Error occurred during initialization of VM
Server VM is only supported on ARMv7+ VFP

InstallJava::fail: A link to the Java runtime could not be established.

Out[2]= $Failed

In[3]:=               

```

I am not using J/Link directly, but several components of Mathematica require it.

**Has anyone encountered this problem, and is there a solution?**

I have seen something similar when installing `wolfram-engine`. This could be solved by installing an older Java: [https://www.raspberrypi.org/forums/viewtopic.php?t=212040](https://www.raspberrypi.org/forums/viewtopic.php?t=212040) This question is not about installing `wolfram-engine` (which I managed to do) but about using it on a Raspberry Pi 1B.

I have the following versions of Java installed:

```
~ $ apt list --installed|grep jdk

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

openjdk-11-jdk-headless/stable,now 11.0.6+10-1~deb10u1 armhf [installed,automatic]
openjdk-11-jdk/stable,now 11.0.6+10-1~deb10u1 armhf [installed,automatic]
openjdk-11-jre-headless/stable,now 11.0.6+10-1~deb10u1 armhf [installed,automatic]
openjdk-11-jre/stable,now 11.0.6+10-1~deb10u1 armhf [installed,automatic]
openjdk-8-jre-headless/stable,now 8u212-b01-1+rpi1 armhf [installed,automatic]
openjdk-8-jre/stable,now 8u212-b01-1+rpi1 armhf [installed]

```

Trying to remove the `-11` ones with `apt remove` would also remove `wolfram-engine`.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [March 30, 2020, 11:22am UTC](https://community.wolfram.com/t/raspberry-pi-server-vm-is-only-supported-on-armv7-vfp-error/15624/2 "2020-03-30T11:22:05Z")

</div>

This seems to work:

Manually install `opendjk-8`:

```
sudo apt-get install openjdk-8-jre

```

Then, after having installed `wolfram-engine` (which will also install opendjk-11 and make it the default), manually choose openjdk-8 as the default:

```
sudo update-alternatives --config java

```

This will show a list of choices. Choose openjdk-8.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [March 30, 2020, 11:23am UTC](https://community.wolfram.com/t/raspberry-pi-server-vm-is-only-supported-on-armv7-vfp-error/15624/3 "2020-03-30T11:23:24Z")

</div>

It seems that `wolfram-engine` only lists Oracle Java 8 as a valid dependency. This is no longer present in Raspbian Buster. To save users trouble, maybe it would be a good idea to allow opendjk-8 as well? Or does this have known compatibility issues?
