Page 1 of 1

How Can I Specify a 32bit JRE for zdesktop 7.2.8 [FIXED BY WORKAROUND]

Posted: Wed Aug 31, 2016 10:56 am
by themetman
I have had the same problems with 7.2.8 install as others, and just commented out the java_check() in the install.pl
I did try using Oracle as well as openjdk, but same error.... JRE not found!!!
I am running CentOS 7 64bit, and the old 7.2.7 worked before upgrade of zcs to 8.7 when zdesktop accounts would not connect any more.
To get rid of most error messages I installed the following:-

Code: Select all

yum install glibc.i686 libstdc++.i686 xulrunner.i686 gtk2-engines adwaita-gtk2-theme.i686 PackageKit-gtk3-module.i686
When I try and run the program from the command line I just get the waiting circle going round and round.
Now in the log I get:

Code: Select all

STARTED Jetty Wed 31 Aug 09:52:26 GMT 2016
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Am I right in thinking that if I could run zdesktop in a 32bit JRE it might work?
I added

Code: Select all

 env JAVA=/opt/java_i586/jre1.8.0_101/bin/java
to the beginning of the command to point to the 32bit java I have, but no good. same error.
How can I point zdesktop at a 32bit JVM I have downloaded from Oracle?

As an aside WHY do we have to endure this? If we had a 64 bit version (zcs is now all 64 bit) things might work!!

Re: How Can I Specify a 32bit JRE for zdesktop 7.2.8

Posted: Wed Aug 31, 2016 11:13 am
by PriteshGajjar
Can you set JAVA_HOME environment variable to point to 32-bit JRE like below and it should work.
e.g. env JAVA_HOME=/opt/java_i586/jre1.8.0_101

32-bit ZD would need 32-bit JRE.

install.pl fails with higher version of openJDK (We have a bug https://bugzilla.zimbra.com/show_bug.cgi?id=106478).

Moreover we are going to support 64-bit version of Zimbra Desktop starting from 7.3. (https://bugzilla.zimbra.com/show_bug.cgi?id=65456).

Let me know if given workaround works for you.

Re: How Can I Specify a 32bit JRE for zdesktop 7.2.8

Posted: Wed Aug 31, 2016 11:21 am
by themetman
Thanks for such a fast response. Unfortunately it did not work.
Here is the output from the log

Code: Select all

STARTED Jetty Wed 31 Aug 11:17:02 GMT 2016
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
STOPPED Wed 31 Aug 11:17:48 GMT 2016
and from the command line:

Code: Select all

env JAVA_HOME=/opt/java_i586/jre1.8.0_101 "/opt/zimbra/zdesktop/linux/prism/zdclient" -webapp "/home/francis/zdesktop/zdesktop.webapp" -override "/home/francis/zdesktop/zdesktop.webapp/override.ini" -profile "/home/francis/zdesktop/profile"

(process:15452): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
JRE version 8 is found on your system.
JETTY_HOME     =  /opt/zimbra/zdesktop/jetty
JETTY_RUN      =  /home/francis/zdesktop/log
JETTY_PID      =  /home/francis/zdesktop/log/zdesktop.pid
JETTY_CONSOLE  =  /home/francis/zdesktop/log/zdesktop.out
JETTY_ARGS     =  
CONFIGS        =  /home/francis/zdesktop/jetty/etc/jetty.xml
JAVA_OPTIONS   =  -client -d32 -Xss150k -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewRatio=4 -XX:TargetSurvivorRatio=70 -XX:+UseConcMarkSweepGC -DSTART='/opt/zimbra/zdesktop/jetty/etc/start.config' -Dzimbra.home='/home/francis/zdesktop' -Dzimbra.config='/home/francis/zdesktop/conf/localconfig.xml' -Djava.library.path='/opt/zimbra/zdesktop/jetty/../lib' -Djava.awt.headless=true -Djava.io.tmpdir='/home/francis/zdesktop/data/tmp/java' -Djava.net.useSystemProxies=true -Dsun.net.inetaddr.ttl=10 -XX:HeapDumpPath='/home/francis/zdesktop/heapdump/' -XX:+HeapDumpOnOutOfMemoryError -Djetty.home='/opt/zimbra/zdesktop/jetty'
JAVA           =  /usr/bin/java
Starting Jetty: 
Stale pid file removed: /home/francis/zdesktop/log/zdesktop.pid
nohup: redirecting stderr to stdout
Jetty running pid=15498
[francis@scorpio zdesktop]$ JRE version 8 is found on your system.
JETTY_HOME     =  /opt/zimbra/zdesktop/jetty
JETTY_RUN      =  /home/francis/zdesktop/log
JETTY_PID      =  /home/francis/zdesktop/log/zdesktop.pid
JETTY_CONSOLE  =  /home/francis/zdesktop/log/zdesktop.out
JETTY_ARGS     =  
CONFIGS        =  /home/francis/zdesktop/jetty/etc/jetty.xml
JAVA_OPTIONS   =  -client -d32 -Xss150k -Djava.awt.headless=true -Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewRatio=4 -XX:TargetSurvivorRatio=70 -XX:+UseConcMarkSweepGC -DSTART='/opt/zimbra/zdesktop/jetty/etc/start.config' -Dzimbra.home='/home/francis/zdesktop' -Dzimbra.config='/home/francis/zdesktop/conf/localconfig.xml' -Djava.library.path='/opt/zimbra/zdesktop/jetty/../lib' -Djava.awt.headless=true -Djava.io.tmpdir='/home/francis/zdesktop/data/tmp/java' -Djava.net.useSystemProxies=true -Dsun.net.inetaddr.ttl=10 -XX:HeapDumpPath='/home/francis/zdesktop/heapdump/' -XX:+HeapDumpOnOutOfMemoryError -Djetty.home='/opt/zimbra/zdesktop/jetty'
JAVA           =  /usr/bin/java
Shutting down Jetty: 15498
The JAVA variable is still showing /usr/bin/java which points to my 64bit java
Does that help?
Regards

Re: How Can I Specify a 32bit JRE for zdesktop 7.2.8

Posted: Wed Aug 31, 2016 11:22 am
by themetman
I forgot to say delighted to hear the 64 bit is coming.
Roll on 7.3 I say!

Re: How Can I Specify a 32bit JRE for zdesktop 7.2.8 [FIXED BY WORKAROUND]

Posted: Wed Aug 31, 2016 11:36 am
by themetman
AhHa! I have a workaround
I have made a one line addition to the zdesktop/bin/zdesktop file
below the "Find Java on System" section ie below line 255 I added this:

Code: Select all

JAVA=/opt/java_i586/jre1.8.0_101/bin/java
and bingo it works, AND I can access my accounts!
Thanks for the pointer.
Regards

Re: How Can I Specify a 32bit JRE for zdesktop 7.2.8 [FIXED BY WORKAROUND]

Posted: Wed Aug 31, 2016 11:41 am
by PriteshGajjar
themetman wrote:AhHa! I have a workaround
I have made a one line addition to the zdesktop/bin/zdesktop file
below the "Find Java on System" section ie below line 255 I added this:

Code: Select all

JAVA=/opt/java_i586/jre1.8.0_101/bin/java
and bingo it works, AND I can access my accounts!
Thanks for the pointer.
Regards
Awesome!!! I was about to come to this. Glad to hear this.