Apple M1 Support

Q&A regarding installation and issues getting started with Servoy

Re: Apple M1 Support

Postby ROCLASI » Thu Feb 03, 2022 4:51 pm

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.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Twitter: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5428
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Apple M1 Support

Postby rafig » Thu Feb 03, 2022 5:04 pm

Oh dear...
Maybe someone else might have an answer ;-)
Servoy Certified Developer
Image
rafig
 
Posts: 636
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby bevil » Mon Apr 11, 2022 11:48 am

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...
bevil
 
Posts: 159
Joined: Thu Oct 18, 2012 7:31 pm

Re: Apple M1 Support

Postby jcompagner » Mon Apr 11, 2022 11:53 am

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..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8670
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Apple M1 Support

Postby mboegem » Mon Apr 11, 2022 5:00 pm

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.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1625
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Apple M1 Support

Postby rafig » Mon Apr 11, 2022 6:28 pm

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!
Servoy Certified Developer
Image
rafig
 
Posts: 636
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby bevil » Thu Sep 15, 2022 4:20 pm

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.. :(
bevil
 
Posts: 159
Joined: Thu Oct 18, 2012 7:31 pm

Re: Apple M1 Support

Postby rafig » Thu Sep 15, 2022 4:59 pm

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...
Servoy Certified Developer
Image
rafig
 
Posts: 636
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby bevil » Thu Sep 15, 2022 5:27 pm

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
bevil
 
Posts: 159
Joined: Thu Oct 18, 2012 7:31 pm

Previous

Return to I'm just getting started

Who is online

Users browsing this forum: No registered users and 1 guest

cron