Server Installation - standalone.sh does not initialize


Server Installation - standalone.sh does not initialize

I am not an expert when it comes to SQL servers, specially using macOS, but I went through all steps from Server Installation Guide and getting help from a couple videos I finished all intalation steps.


Connection successfully establishedConnection successfully established


However, when trying to execute the standalone.sh file I get the message bellow and no acces to localhost:8080. It might be something with the java path, but how to configure it?


Last login: Mon Feb 13 11:11:03 on ttys000

/Users/Ostrowski/Documents/bin/standalone.sh ; exit;

Ostrowskis-MacBook-Pro:~ Ostrowski$ /Users/Ostrowski/Documents/bin/standalone.sh ; exit;



  JBoss Bootstrap Environment


  JBOSS_HOME: /Users/Ostrowski/Documents


  JAVA: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java/bin/java


  JAVA_OPTS:  -server -Xms1303m -Xmx6144M -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Duser.country=US -Duser.language=en -Dcom.sun.jndi.ldap.connect.pool.timeout=300000




/Users/Ostrowski/Documents/bin/standalone.sh: line 310: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java/bin/java: Not a directory


Saving session...

...copying shared history...

...saving history...truncating history files...



[Process completed]



Thanks for your time guys!


John Ostrowski

Accepted by Thomas_Ott (Moderator)
‎02-13-2017 03:45 PM

Re: Server Installation - standalone.sh does not initialize

Hi John,


you can specify the Java path (JAVA_HOME) in the standalone.conf files. If you are starting the server via standalone.sh you need to modify the standalone.conf file. In case of standalone.bat you need to edit the standalone.conf.bat file.





Re: Server Installation - standalone.sh does not initialize

Ok, I'm not a MAC user but I'm sure there's a way to set your PATH environment variables. I have a JAVA_HOME path set to C:\Program Files\Java\jdk1.8.0_91\ and that does the trick for me.


Another thing to check into, in Linux had to do a chmod +x ./standalone.sh in the past, it might also be a permission issue.


Re: Server Installation - standalone.sh does not initialize

Ok changing the path did the trick!


It was apparently a bug that when getthing the path from java from System Preferences > Java > Java > View the Path already contained the final "/bin/java" which is applied by default on the standalone.sh. By removing the final extension the installation finished properly!


Thank you RM Community!


John Ostrowski