Reply
New Member
Posts: 4
Registered: a week ago

Can't load main class

I need some help please- I can't get a new install of the controller to work properly. On install, the following appears and runs properly when clicked.

Unifi.PNG


A desktop shortcut is created, however, when I try to run from the shortcut, the Cmd window flashes-
Error: Could not find or load main class c:\Users\Bob\Ubuquity Unifi\lib\ace.jar
The same error occurs if I run directly from the source folder.

Here are some checks that I tried-
Unifi Desktop Shortcut properties-
Opens with: Java(TM) Platform SE binary
with a target of: "C:\Users\Bob\Ubiquiti UniFi\lib\ace.jar" ui

System variable-
PATH        C:\Program Files (x86)\Common Files\Oracle\Java\javapath

Java version-
C:\WINDOWS\system32>java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) Client VM (build 25.191-b12, mixed mode)

System-
Windows 10, Chrome version 71, Unifi Controller 5.9.29

I have reinstalled Java, reinstalled the controller too many times and I'm stuck. Any ideas would be appreciated.

Regular Member
Posts: 747
Registered: ‎02-12-2013
Kudos: 189
Solutions: 59

Re: Can't load main class

Hi @DHHJ
You need Java 64bit, but you have Java 32bit installed. Uninstall Java. Then download and install Java 64bit:
https://java.com/en/download/manual.jsp
Senior Member
Posts: 13,055
Registered: ‎08-04-2017
Kudos: 2217
Solutions: 640

Re: Can't load main class

[ Edited ]

Hello @DHHJ,

 

Welcome to the community!

 

Make sure you have JAVA 8 64bit installed.

Could you send me a PM with the logs?

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 4
Registered: a week ago

Re: Can't load main class

Thx, sent a PM.

New Member
Posts: 4
Registered: a week ago

Re: Can't load main class

Never fixed the issue. Looks like it might be the PC/Windows. Will try a different setup.

Senior Member
Posts: 13,055
Registered: ‎08-04-2017
Kudos: 2217
Solutions: 640

Re: Can't load main class

Hello @DHHJ,


You told me over the PM that you have a UCK, use that instead.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
Reply