Hello,
I have a question about this error:
Exception in thread "main" java.lang.Strin gIndexOutOfBoun dsException: String index out of range: -2
I am doing my java development in IBM Rationale eclipse. I am compiling and running everything just fine. When I try to run my application on a commandline I get this error. I don't know why this is happening since it is working perfectly in eclipse. I am running a .bat file and here is the .bat file:
@echo on
rem ---------------------------------------------------------------------------
rem Script for launching Translation Application
rem
rem Environment Variable Prequisites
rem
rem
rem ---------------------------------------------------------------------------
cls
SET DERBY_INSTALL=C :\Translation\C loudscape_10.1
SET TRANSLATION=C:\ Translation
set CLASSPATH=%DERB Y_INSTALL%\lib\ derby.jar;%DERB Y_INSTALL%\lib\ derbytools.jar; %TRANSLATION%\l ib\Translation. jar;
echo %CLASSPATH%
C:\Translation\ jdk\jre\bin\jav a -classpath %CLASSPATH%;C:\ Translation\Con versions src.utilities.D ataConversionUt ilityDaily
pause
Can someone help me find out why my program is not running?
I have a question about this error:
Exception in thread "main" java.lang.Strin gIndexOutOfBoun dsException: String index out of range: -2
I am doing my java development in IBM Rationale eclipse. I am compiling and running everything just fine. When I try to run my application on a commandline I get this error. I don't know why this is happening since it is working perfectly in eclipse. I am running a .bat file and here is the .bat file:
@echo on
rem ---------------------------------------------------------------------------
rem Script for launching Translation Application
rem
rem Environment Variable Prequisites
rem
rem
rem ---------------------------------------------------------------------------
cls
SET DERBY_INSTALL=C :\Translation\C loudscape_10.1
SET TRANSLATION=C:\ Translation
set CLASSPATH=%DERB Y_INSTALL%\lib\ derby.jar;%DERB Y_INSTALL%\lib\ derbytools.jar; %TRANSLATION%\l ib\Translation. jar;
echo %CLASSPATH%
C:\Translation\ jdk\jre\bin\jav a -classpath %CLASSPATH%;C:\ Translation\Con versions src.utilities.D ataConversionUt ilityDaily
pause
Can someone help me find out why my program is not running?
Comment