Page 3 of 4

Re: Apple M1 Support

PostPosted: Thu Feb 03, 2022 4:51 pm
by ROCLASI
Hi Rafi,

Adding the JDK 11 to the info.plist should work the same as adding it to the servoy.ini (in fact the plist setting will override the ini setting).
Anyway, I removed the plist entry and added the following in servoy.ini:
Code: Select all
-vm
/Library/Java/JavaVirtualMachines/jdk-11.0.14.jdk/Contents/Home/lib/jli/libjli.dylib

And I get the same crash as before.

Re: Apple M1 Support

PostPosted: Thu Feb 03, 2022 5:04 pm
by rafig
Oh dear...
Maybe someone else might have an answer ;-)

Re: Apple M1 Support

PostPosted: Mon Apr 11, 2022 11:48 am
by bevil
Has anyone got any further with this?

I have just got my 16" M1 Max MacBook Pro - which is awesome - however it seems that Servoy is broken across the board.

7.4 will not start at all (an error has occurred).
2020 crashes on startup, sometimes starts, but unexpectedly quits (simply vanishes with no errors). Very irritating when I was trying to demonstrate an application I built to a prospective client recently.
Updated to Servoy for Apple silicon yesterday, and loads super quick and seems to be stable, however launching smart client has all sorts of graphical glitches - forms only load the first 5% of the top of the form, half the elements are invisible (although clicking where I know they are do seem to work etc.).

Has anyone had any success running Servoy in Windows Arm? I have Windows 11 for Arm in Parallels 13 and would be happy to use it there if it works, however I don't want to go through the motions of setting it all up to find that it doesn't work for some other reason..

Any suggestions would be welcomed... Hopefully this is not the end of the line for Servoy for Mac users...

Re: Apple M1 Support

PostPosted: Mon Apr 11, 2022 11:53 am
by jcompagner
Older builds are not really supported on M1 hardware
So if you want to use Servoy on that download the arm/aarch64 variant of 2022.03

and for the smart client this is tricky, because it seems for the smart client you need to use java11 of lower.. (to work nicely)
But for support for M1 for the developer you need Java 17..

Re: Apple M1 Support

PostPosted: Mon Apr 11, 2022 5:00 pm
by mboegem
Hi Bevil,

sorry to hear things don't work as expected.
I've switched to M1 in February and although I wish every single one of my Servoy installs (about 20 for different projects) would run 2021.12 and higher in native ARM, I have to deal with older versions as well.

Concerning the 7.4 install: I've installed Oracle JDK 1.8.0_151 and pointed the servoy.ini to this VM, which works fine for me.

The 2020 installs of Servoy run fine without crashing, but only when using Zulu OpenJDK: https://www.azul.com/downloads/?package ... ad-openjdk
I'm using version 11.

Last one: Parallels 13.
Running Servoy is no problem, versions that ship with embedded Java run out of the box.
Older versions will just run when you install Oracle JDK (again I'm using some 1.8 version for that)

Bonus for anyone who likes to run SQL Server on a M1 Mac: https://www.twilio.com/blog/using-sql-s ... ith-docker

Hope this helps.

Re: Apple M1 Support

PostPosted: Mon Apr 11, 2022 6:28 pm
by rafig
bevil wrote:Has anyone got any further with this?
7.4 will not start at all (an error has occurred).
Any suggestions would be welcomed... Hopefully this is not the end of the line for Servoy for Mac users...

Hi Bevil,
I too had issues when I got my M1 MBP with Servoy 7.4, but managed, with the help of the forums to get it working.
Install a 1.8 JDK (I used jdk1.8.0_131)
Open your Servoy app package & edit the Contents/info.plist adding/editing the Eclipse section similar to this, so that it points to your older Java
Code: Select all
   <key>Eclipse</key>
      <array>
         <!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
            <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
            <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
         -->
            <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java</string>
         <string>-keyring</string><string>~/.eclipse_keyring</string>
         <string>-showlocation</string>
         <!-- WARNING:
            If you try to add a single VM argument (-vmargs) here,
            *all* vmargs specified in eclipse.ini will be ignored.
            We recommend to add all arguments in eclipse.ini
          -->
      </array>

Then launch (it's a bit slow to get going, but should work fine.
With newer, non-native versions, you can try to edit the (package contents) Eclipse/servoy.ini adding in a line pointing to a different Java stored somewhere (I used jdk-11.0.2) adding in a 'vm' line like
Code: Select all
-vm
/Users/[my home]/jdk-11.0.2.jdk/Contents/Home/lib/jli/libjli.dylib


Now I can develop across all my old installs ;-)

Good luck!

Re: Apple M1 Support

PostPosted: Thu Sep 15, 2022 4:20 pm
by bevil
Thank you Rafi.

That has helped indeed for me to get my 7.4 running again..

I will now have to see if I can work out how to make my later versions work.. :(

Re: Apple M1 Support

PostPosted: Thu Sep 15, 2022 4:59 pm
by rafig
bevil wrote:Thank you Rafi.

You're welcome, glad it helped ;-)

bevil wrote:That has helped indeed for me to get my 7.4 running again..
I will now have to see if I can work out how to make my later versions work.. :(

Try the 'servoy.ini' bit above...

Re: Apple M1 Support

PostPosted: Thu Sep 15, 2022 5:27 pm
by bevil
Hi Rafi.

My latest Servoy is working just fine. I can interact with developer with no problem at all. The issue is when I try to run a smart client to see the effects of anything that I do. This has endless graphical glitches (fields not showing, artefacts if you make the window wider etc.)

Will the Servoy.ini trick in Eclipse fix that?? I assume it is more about developer, which for me works perfectly...

Thanks again.

Bevil

Re: Apple M1 Support

PostPosted: Thu Mar 09, 2023 7:12 pm
by ngervasi
Hi Bevil,
I'm experiencing the same artifacts problem on 2022.3.4 on Windows when launching a smart client from inside developer.
I suppose the problem is that Servoy bundles Java 17.
Is there a way to develop on the latest Servoy for smart client? Can I run Developer 2022.3.4 in Java 11?
If not, which release is the last that can support Smart Client development?

Re: Apple M1 Support

PostPosted: Thu Mar 09, 2023 7:22 pm
by robert.edelmann
You are probably missing the openfx components that are used for smartclient.

These are not included in the adopt openjdk supplied with current Servoy-Editions.

You could try to install a jdk with the openfx (for example https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-64-bit&package=jdk-fx) and modify the servoy.ini to use that jdk to run eclipse.

Re: Apple M1 Support

PostPosted: Fri Mar 10, 2023 12:34 pm
by ngervasi
Thanks Robert,
I tried but I have the same artifacts problems:

Code: Select all
-vm
#plugins/com.servoy.eclipse.jre.win32.x86_64_17.0.4/jre/bin/server/jvm.dll
C:/Program Files/Zulu/zulu-17/bin/server/jvm.dll


Am I missing something else?

Re: Apple M1 Support

PostPosted: Fri Mar 10, 2023 12:46 pm
by ngervasi
Using Zulu 11.0.18 with openfx DOES work.
Looks like 11 is the latest release to support Smart Client.

For now Developer 2022-03 seems to run fine with Java 11, Johan, do you think I can use it with java 11 or should I expect problems?

Re: Apple M1 Support

PostPosted: Fri Mar 10, 2023 4:42 pm
by jcompagner
it should work fine in java 17
For Servoy 2022.09 we did some fixes to not use api anymore that shouldn't be used
When you are getting artifacts problems what do you see in the log, very likely you get exceptions there of stuff that is not accessible anymore (and you need to do --add-opens xxxxx/yyyy for it)

Re: Apple M1 Support

PostPosted: Fri Mar 10, 2023 6:27 pm
by ngervasi
You are right Johan, It works in the current Servoy (2022.12.1) with the bundled Java 17.
So the problem is 2022.03 and btw no errors in console, just screen artifacts (portions of the window not drawn changing upon mouse click) in the smart client launched from developer.

I'll stick with 2022.12.1 waiting for the next LTS.

Thanks!