Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java

Gaurang Kotasthane
Gaurang Kotasthane
1,394 Points

Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

I got this error today in command prompt after I noticed that there were tons of errors in my code on IntelliJ .....errors like " cannot resolve type" etc Please help me. I didn't upgrade or downgrade anything JDK version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Please help it's so frustrating

2 Answers

Gaurang Kotasthane
Gaurang Kotasthane
1,394 Points

I reinstalled the JDK and it seems to work properly

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,161 Points

Have you tried installing Java JDK and not Java JRE ?

This looks to me like JRE

Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)