I am trying to use one-jar for a new project (this is not the first time I am using it).
After packaging everything I am able to start my application but I get the exception:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: java.lang.NoSuchMethodError: de.julielab.jules.types.Token.setWordCount(I)V
but this method is definitely existing. Without onejar this project is working as expected.
Does anyone have an idea what's happening here?
I found the solution - the class was in the classpath twice - what else could it have been. :-)
This happens when you are debugging projects from colleagues…
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.