Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException when passing arguments to JoshuaDecoder.main #221

Open
lewismc opened this issue Oct 5, 2015 · 4 comments

Comments

@lewismc
Copy link
Contributor

lewismc commented Oct 5, 2015

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
Copy link
Member

mjpost commented Oct 16, 2015

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
Copy link
Contributor Author

lewismc commented Oct 21, 2015

I was inside of Eclipse

@lewismc
Copy link
Contributor Author

lewismc commented Oct 21, 2015

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

@mjpost
Copy link
Member

mjpost commented Oct 21, 2015

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 [email protected] wrote:

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


Reply to this email directly or view it on GitHub #221 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants