joshua-decoder / joshua

Joshua Statistical Machine Translation Toolkit
http://joshua-decoder.org/
121 stars 56 forks source link

ArrayIndexOutOfBoundsException when passing arguments to JoshuaDecoder.main #221

Open lewismc opened 9 years ago

lewismc commented 9 years ago
lmcgibbn@LMC-032857 /usr/local/joshua(master) $ java -jar class/joshua.jar -version
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
    at joshua.decoder.ArgsParser.<init>(ArgsParser.java:43)
    at joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:30)
lmcgibbn@LMC-032857 /usr/local/joshua(master) $ java -jar class/joshua.jar -version -v
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
    at joshua.decoder.ArgsParser.<init>(ArgsParser.java:43)
    at joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:30)
mjpost commented 9 years ago

Hmm. I suspect this is because, although we build the jar, we don't use it at all. Why are you trying to use the jar, instead of, e.g., $JOSHUA/bin/joshua-decoder?

lewismc commented 9 years ago

I was inside of Eclipse

lewismc commented 9 years ago

Was trying to debug something inside of Eclipse on this occasion.

mjpost commented 9 years ago

All right. I haven't used this at all, so I'm not sure what the problem is. In general, I don't use the jar, because it slows down debugging (you have to rebuild the jar after every change)

On Oct 21, 2015, at 12:02 PM, Lewis John McGibbney notifications@github.com wrote:

Was trying to debug something inside of Eclipse on this occasion.

— Reply to this email directly or view it on GitHub https://github.com/joshua-decoder/joshua/issues/221#issuecomment-149943688.