# Raspbian Java issue

**URL:** <https://discourse.processing.org/t/raspbian-java-issue/25180>\
**Category:** Processing for Pi\
**Created:** [November 4, 2020, 9:44pm UTC](https://discourse.processing.org/t/raspbian-java-issue/25180 "2020-11-04T21:44:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Quark](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Post date:** [November 4, 2020, 9:44pm UTC](https://discourse.processing.org/t/raspbian-java-issue/25180/1 "2020-11-04T21:44:00Z")

</div>

I downloaded the Linux 64Bit package, unpacked it and went into the directory to run it. Here is what the results were in Terminal:  
\</\> pi@raspberrypi:~/processing-3.5.4 ./processing pi@raspberrypi:~/processing-3.5.4 -Djava.ext.dirs=/home/pi/processing-3.5.4/java/lib/ext is not supported. Use -classpath instead.  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

>

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [November 5, 2020, 8:12am UTC](https://discourse.processing.org/t/raspbian-java-issue/25180/2 "2020-11-05T08:12:52Z")

</div>

For 64 bit raspberrypi I recommend using processing 4, although it still has an issue with the wrong java but is is easily fixed. (aarch64 is not the same as 64 bit linux!!!)

> [@Processing in style with Java 11](https://discourse.processing.org/t/processing-in-style-with-java-11/13776/46):
>
> The jdk included with aarch64 release is still the wrong type as I [mentioned previously](https://discourse.processing.org/t/processing-in-style-with-java-11/13776/41) but easily fixed by creating a soft link. Because I’m using Manajaro linux I just link /usr/lib/jvm/default-runtime. [tux@monkstone ~]$ java --version openjdk 14.0.1 2020-04-14 OpenJDK Runtime Environment (build 14.0.1+7) OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode) And processing runs just fine.

---

<div class="post-metadata">

**Author:** ![Dr.Quark](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Dr.Quark](https://discourse.processing.org/u/Dr.Quark)\
**Post date:** [November 9, 2020, 5:39pm UTC](https://discourse.processing.org/t/raspbian-java-issue/25180/3 "2020-11-09T17:39:54Z")

</div>

I went to the java folder and typed  
–version openjdk 14.0.1  
I got the error  
bash: --version: command not found

I obviously need my hand held to get the right Java installed/accessed.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [November 10, 2020, 8:03am UTC](https://discourse.processing.org/t/raspbian-java-issue/25180/4 "2020-11-10T08:03:46Z")

</div>

To be clear to check what the current version of java is type:-

```bash
java --version # if jdk is greater than jdk8
java -version # should work with any current version of java (sort of legacy command)

```

to link you need to remove or move existing java folder in processing directory before creating soft link.
