ExceptionInInitializerError when using self-built jar

Questions on using RSyntaxTextArea should go here.

Moderator: robert

ExceptionInInitializerError when using self-built jar

Postby Daniel » Fri Oct 12, 2012 10:36 pm

Hi everybody,

i need to add some functionality to RSyntaxTextArea - so I modified Gutter.java and LineNumberList.java a bit and built the RSyntaxtTextArea project in NetBeans (7.2)
i added this .jar that was the output of previous step to my actual project

and when i run my program and try to open some file in the RSyntaxTextArea - i get the "ExceptionInInitializationError" for the line: "private static final EditorKit defaultKit = new RSyntaxTextAreaEditorKit();" in file RSyntaxTextAreaUI.java which i did not touch.

also, i should say, that i am using the code as the base for my experiments.

so my question is, has anybody expicienced this? or how should i get rid of this problem?
thanks very much and have a nice day :)

Re: ExceptionInInitializerError when using self-built jar

Postby robert » Sat Oct 13, 2012 3:01 pm

Did you add the "i18n" folder as a source folder in your project? If you do that, and still have problems, please post the entire stack trace. The ExceptionInInitializerError wraps the "real" exception.
User avatar
Posts: 852
Joined: Sat May 10, 2008 5:16 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest