Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,175 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)