[QUOTE=JosAH]Yes, right. Do you do anything in Eclipse that you don't do using just java
on your command line? There must be a reasonable explanation for this.
kind regards,
Jos[/QUOTE
I copied over the same jre that comes with the eclipse. Do you think that could have anything to do with? I did a test and I compiled a simple HelloWorld program in the same project as my application. I ran the...
User Profile
Collapse
-
I am creating a sql statement and I am deleting the last comma from the text. The text is a comma ",". I guess my question is why is that same java statement working in eclipse and it errors out on the command line. If it compiles and executes in eclipse it should work on the command line right?...Leave a comment:
-
Hi, I looked at line that the errors is on. Here is the code that is erroring:
sqlStatement.ap pend(text.delet eCharAt(text.le ngth()-2));
but it is not erroring in eclipse. This line of code doesn't error in eclipse it runs perfectly. So I don't understand the difference in why in will work in eclipse but not on the command line....Leave a comment:
-
nrperry started a topic "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2in Java"main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2
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....
No activity results to display
Show More
Leave a comment: