java - JAVA_HOME is not set. Unexpected result may occur. Set JAVA_HOME to the directory of your local JDK to avoid this message -


i trying install jboss-as-7.1.1.final. first remarqued can't access administration page of jboss. tried add user , password command prompt , saw message appear:

java_home not set. unexpected result may occur. set java_home directory of local jdk avoid message.

when i've search problem, i've understand have set java_home in run.bat. run.bat content different:

#!/bin/sh # placeholder people used run.sh older version redirecting them read readme echo  echo ======================================================================================== echo  echo start jboss application server please see `pwd`/../readme.txt echo  echo ======================================================================================== echo 

java_home set environmental(classpath) variable in os.
batch files pick java_home value dynamically variable.

in windows os :-

right click on 'my computer'-->'advanced system settings'-->'environment variables'-->'environment variables'-->new -->variable name java_home --> variable value jdk installation home path.

as @laune mentioned, need run run.bat not run.sh

for creating user, refer https://docs.jboss.org/author/display/as71/add-user+utility


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -