Java package error in eclipse

Hello there,

I get this error in my project which I imported from my backup. Before I could run the project without issue in eclipse. I formatted my machine and now when I try to run the application I get this error. what could it be..
1cheers
Zolf
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zzynxSoftware engineerCommented:
The jar this class (LocaleServoceProviderTool) is in is: rt.jar
So, make sure that your rt.jar is on your classpath

Eg. In my case rt.jar is in the directory c:\program files\java\jre7\lib or also in c:\program files\java\jdk1.7.0_55\jre7\lib
0
zolfAuthor Commented:
Thanks for your comments..I have that in my build path. one thing worth mentioning is that before i was using java 6 now i am using java 8. could that be the reason.
0
zolfAuthor Commented:
1
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

zolfAuthor Commented:
1
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
one thing worth mentioning is that before i was using java 6 now i am using java 8. could that be the reason.
Yes, it would be the reason, this class is no longer present in Java 8.

The sun.* packages are not part of the public Java API and therefore should not be relied upon for correct application functionality. You have come across the very reason for NOT using them. Refer to http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html for details.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zzynxSoftware engineerCommented:
Sorry zolf, for some reason I missed your last comments.
But I see mccarl helped you further. I couldn't have said it any better ;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.