Page 1 of 1

another java 1.7.0_25

PostPosted: Thu Jul 11, 2013 11:15 pm
by Hans Nieuwenhuis
Hi,

This week Servoy told me that they will not fix the "1.7.0_25' bug for Servoy 5.
Because we planned the upgrade to 7.1 ( of >) end of this year, I am looking for a way to "keep running" till then.
And also, our engineers do need Jre7 on there laptops.

So this week I started testing with running both jre6 and jre7 on the same client computer and then use Jre6 for Servoy
so users can do with jre7 what ever they want and Servoy will keep running smoothly on Jre6.

At least I thought so but ....

I started of with jre6u45 and jre7U21.

I use the following method to start the solution on the client :

Code: Select all
set JRE_HOME=C:\Program Files\Java\jre6

set ARG= -Xbootclasspath/a:"%JRE_HOME%\lib\javaws.jar";"%JRE_HOME%\lib\deploy.jar"
set ARG=%ARG% -classpath "%JRE_HOME%\lib\deploy.jar"
set ARG=%ARG% -Djnlpx.home="%JRE_HOME%\bin"
set ARG=%ARG% -Djnlpx.slashport=1322
set ARG=%ARG% -Djnlpx.jvm="%JRE_HOME%\bin\javaw.exe"
set ARG=%ARG% -Djnlpx.remove=false

set ARG=%ARG% -Djava.security.policy=file:"%JRE_HOME%\lib\security\javaws.policy"
set ARG=%ARG% -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL

"%JRE_HOME%\bin\javaw.exe" %ARG% com.sun.javaws.Main http://lt-hn:8080/servoy-client/servoy_client/IBISMain.jnlp


This works fine.

But then I upgraded the jre7 to jre7u25.

Then this no longer worked.

Removing jre7u25 and installing jre7u21 and my method worked again.


IT SEEMS LIKE THIS JRE7U25 wants to prevent me from running Servoy5 no matter what I try.

Servoy please advice ....

Regards,

Re: another java 1.7.0_25

PostPosted: Fri Jul 12, 2013 4:58 pm
by Hans Nieuwenhuis
Hi,

After some extensive googling and testing i found one extra parameter that seems to fix the issue :

Code: Select all
set ARG=%ARG% -Djnlpx.relaunch=true

I do not know why it fixes it, so that still worries me a bit.

I thought I had to set it to false, but true is the correct value.

So the complete script is :

Code: Select all
set JRE_HOME=C:\Program Files\Java\jre6

set ARG= -Xbootclasspath/a:"%JRE_HOME%\lib\javaws.jar";"%JRE_HOME%\lib\deploy.jar"
set ARG=%ARG% -classpath "%JRE_HOME%\lib\deploy.jar"
set ARG=%ARG% -Djnlpx.home="%JRE_HOME%\bin"
set ARG=%ARG% -Djnlpx.slashport=1322
set ARG=%ARG% -Djnlpx.jvm="%JRE_HOME%\bin\javaw.exe"
set ARG=%ARG% -Djnlpx.remove=false
set ARG=%ARG% -Djnlpx.relaunch=true

set ARG=%ARG% -Djava.security.policy=file:"%JRE_HOME%\lib\security\javaws.policy"
set ARG=%ARG% -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL

"%JRE_HOME%\bin\javaw.exe" %ARG% com.sun.javaws.Main http://lt-hn:8080/servoy-client/servoy_client/IBISMain.jnlp


Regards,

Re: another java 1.7.0_25

PostPosted: Fri Jul 12, 2013 5:24 pm
by Hans Nieuwenhuis
One addition:
To be sure that an update of java7 does not remove the jre6, I
copied the \program files\java\jre6 directory to c:\servoy_java\jre6
and point to this jre in the script. (jre_home)

This also means that I do not not have to install jre6 on every client,
I can simply copy the servoy_java directory.


Regards,