3 Replies Latest reply on Sep 21, 2006 9:48 PM by iturnthepage

    Beginner with JBoss getting a command line error

    iturnthepage

      I Greatly appreciate any help with this problem. I understand that a professional is taking time out of his/her busy schedule to help a student. Thanks for your time !!

      JDK: 1.5.0_07 *can compile and run successfully

      Environment Variables:

      CLASSPATH : c:\java_ee_sdk-5-windows\bin;c:\Program Files\Java\jdk1.5.0_07\bin;c:\Program Files;C:\Program Files\jboss-4.0.3SP1\bin

      JAVA_HOME: %PATH%;c:\Program Files\Java\jdk1.5.0_07\bin;C:

      JBOSS_HOME: C:\JBoss\jboss-4.0.3SP1\bin

      PATH: %PATH%;C:\Sun\AppServer\bin;c:\java_ee_sdk-5-windows\bin;c:\Program Files\Java\jdk1.5.0_07\bin;C:\JBoss\jboss-4.0.3SP1\bin

      ** When I try to test the JBoss installation and start the server using

      C:\Jboss\jboss-4.0.3SP1\bin>run -c all
      ** I get the following error message over and over until I stop the command line output.
      "The filename, directory name, or volume label syntax is incorrect.
      The filename, directory name, or volume label syntax is incorrect.
      The filename, directory name, or volume label syntax is incorrect.
      The filename, directory name, or volume label syntax is incorrect.
      The filename, directory name, or volume label syntax is incorrect." **etc.

      or using this command line statement

      C:\>%JBOSS_HOME%\bin\run -c all
      The system cannot find the path specified.

      The run.bat file

      @echo off
      rem -------------------------------------------------------------------------
      rem JBoss Bootstrap Script for Win32
      rem -------------------------------------------------------------------------

      rem $Id: run.bat,v 1.13.4.2 2005/05/04 23:05:42 starksm Exp $

      @if not "%ECHO%" == "" echo %ECHO%
      @if "%OS%" == "Windows_NT" setlocal

      set DIRNAME=.\
      if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
      set PROGNAME=run.bat
      if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%

      rem Read all command line arguments

      REM
      REM The %ARGS% env variable commented out in favor of using %* to include
      REM all args in java command line. See bug #840239. [jpl]
      REM
      REM set ARGS=
      REM :loop
      REM if [%1] == [] goto endloop
      REM set ARGS=%ARGS% %1
      REM shift
      REM goto loop
      REM :endloop

      rem Find run.jar, or we can't continue

      set RUNJAR=%DIRNAME%\run.jar
      if exist "%RUNJAR%" goto FOUND_RUN_JAR
      echo Could not locate %RUNJAR%. Please check that you are in the
      echo bin directory when running this script.
      goto END

      :FOUND_RUN_JAR

      if not "%JAVA_HOME%" == "" goto ADD_TOOLS


      ***** If there is any more info needed to help me solve this problem Please let me know...Thanks so very much!!!

        • 1. Re: Beginner with JBoss getting a command line error
          visolvejboss

          Hello,

          Follow the steps for executing the JBoss AS.

          1. Set the PATH and JAVA_HOME environment variables as given below.

          For Windows,

           >set JAVA_HOME=<jdk home directory path>
           >set PATH=%PATH%;<jdk home directory path>/bin
          


          For Unix or Linux,
           #export JAVA_HOME=<jdk home directory path>
           #export PATH=<jdk home directory path>/bin
          


          2. Run the JBoss AS as follows.

          For Windows,
           <JBOSS_HOME>/bin>run.bat
          



          For Unix or Linux,
           <JBOSS_HOME>/bin#./run.sh
          



          • 2. Re: Beginner with JBoss getting a command line error
            peterj

            To be specific, you should set JAVA_HOME and JBOSS_HOME as follows:

            set JAVA_HOME=c:\Program Files\Java\jdk1.5.0_07\bin
            set JBOSS_HOME=C:\JBoss\jboss-4.0.3SP1

            A few other tips (these are probably not a problem but could bite you later):

            1) Don't install the JDK into Porgram Files. Yes, I know that the 1.5 JDK installs there by default. But there are too many Java libraries that cannot handle spaces in directory names.

            2) Don't set the classpath globally. That is usually asking for trouble when the Java app picks up a class you didn't intend it to. I don't have classpath set on any of my machines. Besides, the JBoss run script sets up the necessary classpath and its classloaders know where to look for the jar files included with your applications.

            • 3. Re: Beginner with JBoss getting a command line error
              iturnthepage

              Thanks for everyones help !!!

              I have a new problem but I am going to slam my head into the keyboard for while before I ask for help. I actually learn a great deal searching first.

              :)