← servoy magazine

[Tip] Mac manual startup of server

  • Tips

by Marcel Trapman
www.it2be.com

When you are like me you really don't like working with the terminal. However when you manually want to start up servoy_server there is no other way. Or... Is there another way!?

Yes, there is. And, in fact it is quite simple to create it. Here you go:

1. Go into your Servoy folder;
2. Create a new folder and name it (like you want) with the extension .app;
3. Go into the new folder (show package contents);
4. Create a folder 'Contents';
5. Go into that folder;
6. Throw the shell script 'servoy_server.sh' into the folder and rename it with the same name as the top folder without the .app extension;

Congratulations, you created an application in the most basic way! Now double click the app and the shell script will execute and start up the server.

When you followed earlier tips/articles on creating a shell script that also starts up your database you have a way to start a server manually in a very easy and convenient way!


Cheers and have fun,

Marcel

Comments (5)

Swingman
Groovy!
Riccardo Albieri
I tried with 2.1.2 and 2.2RC5, but the server doesn't start (I've the dbsrv9 daemon already running). It alwsys gives me this result, in the Console: Exception in thread "main" java.lang.NoClassDefFoundError: com/servoy/j2db/server/ApplicationServer Am I missing something?
Marcel Trapman
Riccardo, what happens when you start up the server via the terminal? I am pretty sure this has nothing to do with my tip but with our shell script...
Riccardo Albieri
Using terminal, Servoy Server starts regularly with ./servoy_server.sh
Riccardo Albieri
Found: I added a line in the script with cd /Applications/Servoy/ And now it works! :-) Maybe it could have something to do with localized systems... Anyway, great tip, Marcel :-)