This content has been marked as final.
Show 4 replies
-
1. Re: A Beginner Problem: JAVA_HOME not set?
jaikiran Oct 25, 2007 5:34 AM (in response to mesmer)Do you have Java installed on your system. If not, you can download it from the Sun website. JBoss 4.2.x requires Java 5 version. You can download it from http://java.sun.com/javase/downloads/index_jdk5.jsp. Once you have downloaded it, you can set JAVA_HOME to point to the folder where you installed Java (i would recommend you install it in a folder which does not have a space in its path). You can set the JAVA_HOME in the run.bat itself. Here's an example, i have Java 5 installed at C:\jdk1.5.0_07, so my JAVA_HOME will be set in the run.bat as follows:
JAVA_HOME=C:\jdk1.5.0_07
Once you have set this, you can then start JBoss as usual, using the run.bat -
2. Re: A Beginner Problem: JAVA_HOME not set?
mesmer Oct 25, 2007 8:52 PM (in response to mesmer)"jaikiran" wrote:
Do you have Java installed on your system. If not, you can download it from the Sun website. JBoss 4.2.x requires Java 5 version. You can download it from http://java.sun.com/javase/downloads/index_jdk5.jsp. Once you have downloaded it, you can set JAVA_HOME to point to the folder where you installed Java (i would recommend you install it in a folder which does not have a space in its path). You can set the JAVA_HOME in the run.bat itself. Here's an example, i have Java 5 installed at C:\jdk1.5.0_07, so my JAVA_HOME will be set in the run.bat as follows:JAVA_HOME=C:\jdk1.5.0_07
Once you have set this, you can then start JBoss as usual, using the run.bat
Hi, thanks for your reply.
I installed JDK in my system, but i don't know how to do with the JAVA_HOME setting. Do i need to edit the run.bat file? If i need to do that, which part should i edit? -
3. Re: A Beginner Problem: JAVA_HOME not set?
jaikiran Oct 26, 2007 5:33 AM (in response to mesmer)You can edit the run.bat and set the JAVA_HOME as follows (see the line marked in bold):
@echo off rem ------------------------------------------------------------------------- rem JBoss Bootstrap Script for Win32 rem ------------------------------------------------------------------------- rem $Id: run.bat 63249 2007-05-30 13:20:25Z dimitris@jboss.org $ @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal set JAVA_HOME=C:\jdk1.5.0_07 set DIRNAME=.\ if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% set PROGNAME=run.bat if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
-
4. Re: A Beginner Problem: JAVA_HOME not set?
mesmer Nov 4, 2007 4:31 AM (in response to mesmer)Hi, thanks for the tips, it's very helpful, I can run my portal now :)