Java error when accessing logs

Hello,

I am on Openfire 3.10.2 with Java version 1.5.

It appears to work well except that when I click on Logs under Server Manager, I get this error (attached).

Does anyone know the reason for this?

Thanks in advance.

Update:

The Openfire console says Java 1.7 but when I run **java -version **in the terminal, it says this:

java version “1.5.0”

gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-11)

Update2:

I reinstalled both Java 1.7 and openfire. It’s working now.