0 Replies Latest reply on Mar 29, 2007 8:26 PM by Helen Tran

    Could not run EJB Client from Windows batch script

    Helen Tran Newbie

      Hi All,

      My Client Windows batch script (Shell.bat) aborted with the following message:

      D:\Temp\workbook\ex11_4>shell.bat

      D:\Temp\workbook\ex11_4>set CLASSPATH=build\classes;client-config
      Files\jboss-4.0.5.GA\client\lib was unexpected at this time.D:\Temp\workbook\ex11_4>for /R C:\Program Files\jboss-4.0.5.GA\client\lib %v IN
      (*.jar) DO @call setClasspath %v



      The content for Shell.bat & SetClasspath.bat are as follows:

      D:\Temp\workbook\ex11_4>type shell.bat

      --------------------------------------------------------------------------------

      @setlocal@echo onset CLASSPATH=build\classes;client-config for /R %JBOSS_HOME%\client\lib %%v IN (*.jar) DO @call setClasspath %%vfor /R %JBOSS_HOME%\server\default\lib %%v IN (*.jar) DO @call setClasspath %%vfor /R %JBOSS_HOME%\lib %%v IN (*.jar) DO @call setClasspath %%vfor /R %JBOSS_HOME%\server\default\deploy\ejb3.deployer %%v IN (*.jar) DO @callsetClasspath %%vfor /R %JBOSS_HOME%\server\default\deploy\jboss-aop-jdk50.deployer %%v IN (*.jar) DO @call setClasspath %%v java com.titan.clients.TravelAgentShell

      --------------------------------------------------------------------------------

      D:\Temp\workbook\ex11_4>type setClasspath.bat

      set CLASSPATH=%CLASSPATH%;%1%

      --------------------------------------------------------------------------------

      These are the variables needed the Shell.bat script:

      D:\Temp\workbook\ex11_4>echo %JAVA_HOME%
      C:\Program Files\Java\jdk1.5.0_11

      D:\Temp\workbook\ex11_4>echo %JBOSS_HOME%
      C:\Program Files\jboss-4.0.5.GA

      I am running Netbeans 5.5, JBoss AS 4.0.5, SDK 1.5.0_11 on Windows XP.

      Thanks in advance,

      Henry