I\'m rewriting an applet I have, but when it loads it\'s giving me a runtime exception. The exception is
Exception in thread \"main\" java.lang.NoSuchMethodE
I had the same problem, but when writing unit tests. The test was failing with this exception when creating the object I wanted to test. I did add a new constructor in the class I was testing and I think I was running an older code which didn't have this constructor. Cleaning and rebuilding the workspace (with maven) solved it for me.
Line 41 of RunClient
is looking for a default constructor on ClientSettings
, which doesn't exist. You've defined a constructor that takes a String[]
, so no default constructor is generated. It looks like the code you've posted isn't what's running, because it seems to show a correct constructor call.