PDA

View Full Version : RTVrc giving JAVA exception when try to start


spoma
10-08-04, 11:40 AM
When I try to run RTVrc I am receiving the following java error. anyone seen this?

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at GenHTML.createIndex(GenHTML.java:72)
at RTVrc.main(RTVrc.java:184)

I am running java 1.4.2_05
I used the following command to lauch the application: java RTVrc

I turned on DEBUG and it did not give me any other information.

spoma
10-08-04, 01:56 PM
From what I can tell from the Java code it is trying to at this point print out a list of ReplayTVs that I have to select from.

<my java is real rusty...>

spoma
10-08-04, 02:13 PM
problem is that if you have an empty space line replays.txt the code tries to split that line by a , and since there is no comma there is no data [1] and thus you get an ArrayIndexOutOfBoundsException

maybe this will help someone else out down the road.

edthecat
05-27-05, 08:39 PM
Spoma, THANK YOU. I was having this issue, and it was driving me crazy. Funny how something you can't see can be so troublesome.

adone36
05-28-05, 11:03 AM
I've been trying to ge this to work for days. I get the same result on all my pcs:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at RTVrc.loadProps(RTVrc.java:1234>
at RTVrc.main<RTVrc.java:180>

Any java users know what's up?

karog
05-28-05, 11:57 AM
[QUOTE=adone36]Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at RTVrc.loadProps(RTVrc.java:1234>
at RTVrc.main<RTVrc.java:180>

Any java users know what's up?[/QUOTE]
I don't run RTVrc so I don't know what its install instructions are. But the problem is that the code utilizes a class called Base64 defined in the apache commons codec jar file. And you either don't have it in your classpath or don't have it at all.

You can get it at apache commons codec (http://jakarta.apache.org/site/downloads/downloads_commons-codec.cgi) and download the binary 1.3.zip file. Unzip this file and look for the commons-codec-1.3.jar file. Put this file in your classpath or add it to the jre/lib/ext folder of your java installation.

adone36
05-28-05, 06:52 PM
Thanks Karog, that fixed the laptop. I just have some firewall issues to fix there.

I get a different error on the other pc now:

Exception in thread "main" java.lang.NoClassDefFoundError: RTVrc