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
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
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: 715
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: 163
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: 8846
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 Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1759
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: 715
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: 163
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: 715
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: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Apple M1 Support

Postby ngervasi » Thu Mar 09, 2023 7:12 pm

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?
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: Apple M1 Support

Postby robert.edelmann » Thu Mar 09, 2023 7:22 pm

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.
mit freundlichen Grüßen
Robert Stefan Edelmann
User avatar
robert.edelmann
 
Posts: 101
Joined: Wed Aug 14, 2013 6:12 pm

Re: Apple M1 Support

Postby ngervasi » Fri Mar 10, 2023 12:34 pm

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?
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: Apple M1 Support

Postby ngervasi » Fri Mar 10, 2023 12:46 pm

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?
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: Apple M1 Support

Postby jcompagner » Fri Mar 10, 2023 4:42 pm

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

Re: Apple M1 Support

Postby ngervasi » Fri Mar 10, 2023 6:27 pm

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!
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

PreviousNext

Return to I'm just getting started

Who is online

Users browsing this forum: No registered users and 2 guests