Servoy Server Java on Mac OS X

Hi all,

I have just upgraded a server to Mac OS 10.11.2 with Java 8u66.
Servoy Server 7.4.4 runs fine, but still wants legacy Java 1.6.
Is there any way of running servoy server on a Mac with a more modern Java?

Thanks,

Hi Christian,

Does it really use Java 6? Can you open up the servoy admin page and check the top info on the home page?

JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.6.0_65
java.vm.info=mixed mode
java.vm.vendor=Apple Inc. 

Operating System Information
os.name=Mac OS X
os.version=10.11.2
os.arch=x86_64

and

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)

Although I have Java 8u66 installed.

Hi Christian,

What is the output of the following command?

/usr/libexec/java_home -V

Is Java 8 in that list?

Servoy-7-Server:JavaVirtualMachines username$ /usr/libexec/java_home -V
Matching Java Virtual Machines (2):
    1.6.0_65-b14-468, x86_64:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-468, i386:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

No, so this looks like a Java install issue on my Mac…

Getting the Java 8jdk…

Matching Java Virtual Machines (3):
    1.8.0_65, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
    1.6.0_65-b14-468, x86_64:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-468, i386:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

That did the trick. Will restart server tonight to see what happens… Do I need to get rid of the 1.6.0jdk?

Hi Christian,

No need to get rid of any of your JVM’s. Just switch between them to make 8 the default JVM.
You can download a little GUI (java) tool here to switch between your installed JVM’s.

After this you need to reopen your terminal to see the new mapping.

Hope this helps.

Hi Robert,

In the end I modified the wrapper.conf in the ‘application server/service’ directory to start like this:

#********************************************************************
# Wrapper Properties
#********************************************************************

# Java Application
wrapper.java.command=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java

# Java Main class
...

otherwise it picks up the /usr/bin/java which is the old Java 1.6.

Apart from the first 2-3 minutes when it ‘warms up’ the server runs noticeably faster.

The GUI tool you mentioned will probably not work on El Capitan because of SIP protection.

swingman:
The GUI tool you mentioned will probably not work on El Capitan because of SIP protection.

Works for me :)
(I am on Mac OS X 10.11.2)