Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4519
  • Last Modified:

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
0
vihar123
Asked:
vihar123
1 Solution
 
TimYatesCommented:
Have you copied something into your JAVA_HOME/lib/ext directory?

Like xerces?

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

(pet rant, sorry) ;-)
0
 
vihar123Author Commented:
>>>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
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
TimYatesCommented:
if you move all them out of lib/ext, does eclipse start up ok?

then you can try moving them back in one at a time...  I reckon one of them is conflicting with something in Eclipse...

Maybe some other expert will have a better idea though?
0
 
CeldricCommented:
>>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
0
 
TimYatesCommented:
> 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...
0
 
expertmbCommented:
no problem if you have other ides. when you close the workbench its state is saved automatically.
0
 
vihar123Author Commented:
ya thanks its working, i moved all to the lib folder and also included them in eclipse....

thanks for all contributions
0
 
TimYatesCommented:
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
0
 
vihar123Author Commented:
ya i have tested they are working fine
0
 
vihar123Author Commented:
i have also saved them :-))))
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now