Link to home
Start Free TrialLog in
Avatar of sunshine737
sunshine737

asked on

eclipse error: unable to read workbench state, workbench UI layout will be reset

Hi
I have installed eclipse latest version, for the first time it has asked for workspace and after giving it opened nicely, when i opened it second time its giving me this error...ubale to read workbench state..........
im also having other ides installed such as Javabeginner and Netbeans, is this the problem or i need to do some setting, i have read eclipse documentation but not much abt the workbench is given.
if anybody knows how to fix this problem, please help.

thanks

i hav java sdk1.4.2
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you copied something into your JAVA_HOME/lib/ext directory?

Like xerces?

This will override the xerces Eclipse wants...
And is another woderful reason not to use lib/ext

(pet rant, sorry) ;-)
Avatar of sunshine737
sunshine737

ASKER

>>>And is another woderful reason not to use lib/ext
(pet rant, sorry) ;-)

i didnt get you

i have all these in my java---- C:\j2sdk1.4.2_03\jre\lib\ext

transx.zip
classes111.jar
classes111.zip
classes111_g.jar
classes111_g.zip
classes12.jar
classes12.zip
classes12_g.jar
classes12_g.zip
classes12dms.jar
classes12dms_g.jar
classgen.jar
connectjdbc.jar
dms2Server.jar
dnsns.jar
jce.jar
jdev-rt.zip
jsse.jar
ldapsec.jar
localedata.jar
nls_charset11.jar
nls_charset11.zip
nls_charset12.jar
nls_charset12.zip
ocrs12.jar
ocrs12.zip
ojdbc14.jar
ojdbc14_g.jar
oraclexsql.jar
plugin.jar
rt.jar
samples.jar
servlet.jar
soap.jar
sunjce_provider.jar
sunrsasign.jar
charsets.jar
xdb.jar
xmlcomp.jar
xmlcomp2.jar
xmlmesg.jar
xmlparserv2.jar
xschema.jar
xsqlserializers.jar
xsu111.jar
xsu111_816.jar
xsu111_817.jar
xsu12_816.jar
xsu12_817.jar
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>Have you copied something into your JAVA_HOME/lib/ext directory?
>>Like xerces?
>>This will override the xerces Eclipse wants...
Whoa, didnt know that the libraries there override Eclipse's libraries
You never stop learning :D

Oh, vihar, do you remember what directory you set as Eclipses default workbench?
If so, post it plz.

Also, look for: recentWorkspaces.xml
and post its contents
Its usually in: C:\eclipse\configuration\org.eclipse.ui.ide
where c:\eclipse is where you decompressed eclipse
> Whoa, didnt know that the libraries there override Eclipse's libraries

It depends what order you have for the classpath...

Whichever jar is first in the classpath is the one that is used for that classname...

Which is great, unless lib/ext has one version of some code in it, and the application uses another, and the application jar is further down the classpath...

You tend not to get "ClassNotFound" exceptions, as the class is there...it's just what the class is doing is unexpected, so things like NullPointerExceptions, etc suddenly appear...

As I think I made clear, I'm not 100% sure this is the cause of the problem here, but it is a real reason to be wary of lib/ext...
no problem if you have other ides. when you close the workbench its state is saved automatically.
ya thanks its working, i moved all to the lib folder and also included them in eclipse....

thanks for all contributions
watch out that some of your projects which you used to work on may have relied on those jar files being in lib/ext...

So I'd keep them safe for when you find a project that doesn't run :-(

Good luck with it!!

Tim
ya i have tested they are working fine
i have also saved them :-))))