Java Local Development Environments Exploring Your IDE Check your IntelliJ IDEA Installation

NAJEEBULLAH KHAN
NAJEEBULLAH KHAN
1,235 Points

i dont know whats wrong i copy pasted

whyyyyyyyyyyyyyyyyyyyyyyyyy

systemizer_results.txt
# Paste your results here
"C:\Program Files\Java\jdk-9\bin\java" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.5\lib\idea_rt.jar=50119:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\HP User\IdeaProjects\systemizer\out\production\systemizer" com.teamtreehouse.main
Error: Could not find or load main class com.teamtreehouse.main
Caused by: java.lang.NoClassDefFoundError: com/teamtreehouse/Main (wrong name: com/teamtreehouse/main)

Process finished with exit code 1

1 Answer

Livia Galeazzi
Livia Galeazzi
Java Web Development Techdegree Student 11,429 Points

Well, What you copy pasted is a compiler error. The reason your code does not compile seems to be that your class should be called Main, but instead is called main (with a lower case m). Try to correct that and run the code again, see if you still get an error.