I need some help with installing servoy 5.2 on Mac OS X 10.5.8. From the forums, I see this is something regularly done at Servoy and elsewhere, so I hope I’m just doing some newbie thing.
I’m running:
MacBook Pro running Mac OS X 10.5.8
Java 1.6.0_22
SVN 1.6.12
I downloaded the latest Servoy 5.2 yesterday (1/11/11)
I removed prior versions before my final attempt, but I’ve tried this several times with no luck, including earlier 5.2 revs a few weeks back. Before installation, there was no /Applications/Servoy directory.
I ran “sudo java -jar servoy_installer.jar” and took all the defaults except I added the headless client sample. No errors from the installer.
I double-clicked “/Applications/Servoy/developer/servoy” icon and Servoy Developer launched (no sudo).
The eclipse that comes up defaults to the Resource perspective, which is empty. Looking at the available perspectives, there is no Servoy Design perspective, JavaScript perspective, etc. as I get on windows. Nor do I get Servoy import options. It feels like the installation was incomplete, or things didn’t get loaded at runtime. Looking at the disk, the com.servoy.eclipse* jars are in the plugins directory. There is no postgres process.
The “About” window is empty, and shows only the Eclipse and EMF icons. No Servoy icon is present.
I do have other eclipse installations under /Applications/eclipse and /Applications/eclipse_helios, but I believe those should not be getting in the way.
I wondered if it was a permissions problem. The installer on the mac wants to install to /Applications/Servoy, which requires the installer be run as root (sudo). However, when I ran servoy, I ran it as me, which is the typical Mac pattern. Perhaps the running instance of Servoy could not deal with not being root at runtime after being installed with sudo.
So, I uninstalled and reran the installation as just my user, and installed to /Users/myuserid/Servoy. Voila, when I ran Servoy as my user, Servoy came up correctly.
So, now my question is, what is the preferred/recommended pattern? Leave it as it is now, and go on, or should I reinstall using sudo to the /Applications tree, and run servoy from the command line with something like ‘sudo open -a “servoy”’? (I doubt this is preferred).
I wonder if the problem lies in the fact that you installed it as root.
Normally you install applications in /Applications/ (so that all system users can access them) and simply provide the administrator password (which is not root).
Also on Mac you can simply double-click the servoy_installer.jar and it will launch, no real need to go into the commandline for this.
I thought I tried that, which is what I would have expected, but perhaps had a different issue and went down the cmd line path instead. The first try was a few weeks back… I’ll try again. Thanks!
To give you some encouragement: my own experience supports Robert’s contention.
I have moved over the past year or two from Servoy 4 through to 5.2 on an MacBook Pro and from 10.5.x through to 10.6.6.
Double-clicking the servoy_installer.jar file from a user account (non-root) with admin privileges on my own systems has always resulted in a working development environment. For what it is worth, I have shifted my development work from time to time to a Mac mini: again no problems with this standard method of installation.