Java: Illegal UTF8 string in constant pool in class file

java-128While working on the GNU ARM Eclipse project, I ran into a nasty problem, out of the blue the Eclipse used for tests started to behave strangely, refusing to load a class responsible for depicting some debug views.


Checking the Eclipse logs, I noticed the following message:

Illegal UTF8 string in constant pool in class file ...

Although this does not seem to be related to the project content, I checked the source files for any class path or import misconfigurations, but found none.

My concern was that the development Eclipse got broken, and I need to re-install it from scratch, but fortunately the solution was much easier and involved only removing the Java temporary files.

For this, it is necessary to go to the System Preferences and start the separate Java control panel; here, in the Temporary Internet File section, click the Settings… button:

The Java control pannel.

The Java control pannel.

In the new Temporary File Settings window, click the Restore Defaults button:

Restore Defaults in the Temporary File Settings page.

Restore Defaults in the Temporary File Settings page.

Your mileage may vary, but after this action, at least in my case, the problem vanished, and Eclipse no longer complained.

About Liviu Ionescu (ilg)
Hi! My name is Liviu Ionescu (ilg, ilegeul or eunete for colleagues and friends) and I’m a senior IT engineer. Or should I say a real programmer?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: