Check the output of the following command:
java -version
Last login: Mon May 8 22:33:59 on ttys000 Ians-MacBook-Air:~ ianweatherhead$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode) Ians-MacBook-Air:~ ianweatherhead$
How do i update the java?
The output says that you have Java version 6, which is lower than required version 7.
yeh but I've updated Java to Version 8, can you advise how to update as when I go to system preferences and load java app it shows version 8?
I suspect that you have two version of Java installed, so you have to configure environment variable to point to the correct one.
cheers for this where is that located?
I'm not sure. You should probably Google for more details.
MacBook-Air-Alexey-2:traccar AlexeyAnna$ sudo ./traccar.run
Creating directory out
Verifying archive integrity... 100% All good.
Uncompressing traccar 100%
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Test.main(Test.java:3)
Java 7 or higher is required
MacBook-Air-Alexey-2:traccar AlexeyAnna$ sudo /opt/traccar/bin/startDaemon.sh
sudo: /opt/traccar/bin/startDaemon.sh: command not found
MacBook-Air-Alexey-2:traccar AlexeyAnna$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
Im trying to install Traccar on my MacBook air and I'm getting the following error / Issue
I already have Java 8 installed Version 8 - update 131
What Am I doing wrong?