Apple M1 Support

Q&A regarding installation and issues getting started with Servoy

Re: Apple M1 Support

Postby rafig » Tue May 11, 2021 6:17 pm

rafig wrote:It appears that Servoy 2021.03 release candidate 2 (release number 3641) works on Apple M1

Further to this post, I have to say that I have not managed to get Servoy to run reliably on the M1 Mac, it crashes out with an exception caused by the JIT compiler.
I hope that a future release will work better (maybe if Servoy can look at a version they can release with an ARM based Java?) and then there might also be some performance benefits, as currently it doesn’t (when working) run any faster than on a normal (Intel) Mac.
Servoy Certified Developer
Image
rafig
 
Posts: 616
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby huber » Fri May 14, 2021 9:49 am

Hi Rafi

As far as I have read the Eclipse Version Servoy is using is not currently an ARM based version. On the eclipse.org website I see an ARM version for Linus, not yet for macOS. Neither for Java on ARM, as you mention.

So you wouldn't expect running these apps on Rosetta 2 (emulation) does run faster than on a Intel Mac, would you? I think it's even a great surprise if it runs in this configuration more or less as fast as on a Intel CPU.
We will get all the (speed) benefits when everything runs natively on ARM. But it's obvious that will take some time.

And yes, I am also waiting impatiently for this to happen ;-)

Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 405
Joined: Mon May 14, 2012 11:31 pm

Re: Apple M1 Support

Postby robert.edelmann » Wed May 19, 2021 2:22 pm

You could try to install a JDK from Azul (e.g. https://www.azul.com/downloads/?version=java-15-mts&os=macos&architecture=arm-64-bit&package=jdk-fx if you want OpenFX) and change the servoy.ini (/Applications/Servoy.app/Contents/Eclipse/servoy.ini) to use the new Java (under the line with -vm).
mit freundlichen Grüßen
Robert Stefan Edelmann
User avatar
robert.edelmann
 
Posts: 19
Joined: Wed Aug 14, 2013 6:12 pm

Re: Apple M1 Support

Postby rafig » Fri Nov 05, 2021 6:58 pm

Hi all,
I finally gave in after Apple latest sales pitch & got myself a new 14" M1 MacBook Pro.
The latest Servoy launches, installs, sets up etc. on initial launch, but then crashes on subsequent launches (for me).
I followed Omar's incredibly helpful post in the 'Big Sur' thread
https://forum.servoy.com/viewtopic.php?f=74&t=22902&p=122697
which has allowed me to launch Servoy again.
BUT, I really want to be able to take advantage of some of the massive speed & power of the new chip, so wanted to use an 'Apple Silcon' (arm) native Java, so tried installing the one mentioned above by Robert, but cannot get it to work (I am changing the path in the servoy.ini to the correct path).
I have tried downloading each of the DMG installers for Java 11,13,15,17, as well as the zip/tar files to just expand in to a directory, but cannot get it to launch them (I'm not getting the 'Security' request or anything).
I am getting a warning
Failed to load the JNI shared library "path-to-my-libjli.dylib"
which I think is because Eclipse is x86 & not aarch64/arm64 architecture.
Has anyone managed to use a native ARM Java with the latest Servoy that can tell me how I can do it??
Or can Servoy produce a 4th download option back to the old 'JAR' version of Servoy that just used whatever version of Java was installed on the user's computer?? (I tried the Linux one, but couldn't get it to run ;-) )
I'd really love to be able to do my development 'natively' on my new Mac :wink:
Thanks,
Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 616
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby ROCLASI » Tue Nov 09, 2021 12:53 pm

I see here that Eclipse has an Arm64 build.
It would be interesting to see if the Servoy Developer feature works with it.
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: 5389
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Apple M1 Support

Postby rafig » Tue Nov 09, 2021 5:37 pm

ROCLASI wrote:I see here that Eclipse has an Arm64 build.
It would be interesting to see if the Servoy Developer feature works with it.

Well that looks promising...
Maybe if Servoy released the 'Servoy Eclipse Plugin' in a way that would allow us to use that ARM Eclipse, but with Servoy in it ;-)
Thanks
(I'm surprised nobody on here has managed to find a combo that allows Servoy Mac to run with a native M1 Java...)
Servoy Certified Developer
Image
rafig
 
Posts: 616
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Apple M1 Support

Postby ROCLASI » Wed Nov 10, 2021 12:39 am

rafig wrote:Maybe if Servoy released the 'Servoy Eclipse Plugin' in a way that would allow us to use that ARM Eclipse, but with Servoy in it ;-)


Well, you can add the Servoy update URL in Preferences window > Install/Update > Available Software Sites, enable it and hit the reload button so it is primed to go :).
Then under Menubar > Help > Install New Software... you can install Servoy Developer.

Sadly I have no M1 laying around (yet) or I would have tried it already.
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: 5389
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Apple M1 Support

Postby rafig » Wed Nov 10, 2021 3:14 pm

ROCLASI wrote:Well, you can add the Servoy update URL in Preferences window > Install/Update > Available Software Sites, enable it and hit the reload button so it is primed to go :).
Then under Menubar > Help > Install New Software... you can install Servoy Developer.
Sadly I have no M1 laying around (yet) or I would have tried it already.

Great thinking Robert!
I downloaded that Eclipse, but it didn't run at first as I just migrated all my old Mac stuff to new one, so it had the Intel Java installed.
I then installed the latest Azul native Java ( https://www.azul.com/downloads/?os=macos&architecture=arm-64-bit&package=jdk ) & it launched...
BUT, when I tried to install Servoy by adding the Servoy URL, it won't install with the following error
Cannot complete the install because one or more required items could not be found.
Software being installed: Servoy Feature 2021.9.0.3703 (com.servoy.eclipse.feature.feature.group 2021.9.0.3703)
Missing requirement: Servoy Feature 2021.9.0.3703 (com.servoy.eclipse.feature.feature.group 2021.9.0.3703) requires 'org.eclipse.equinox.p2.iu; com.equo.chromium.feature.feature.group 80.0.5' but it could not be found

So not sure how to progress (although looking at 'About' box, it seems as if there is Equinox p2 backward compatibility support in it...)
Might play a bit more another time
Thanks
Servoy Certified Developer
Image
rafig
 
Posts: 616
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Previous

Return to I'm just getting started

Who is online

Users browsing this forum: No registered users and 1 guest

cron