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 trialRobert Williger
3,676 PointsGetting error when running Systemizer ...
This is the error/s I get, not sure what I'm doing wrong. Does it have something to do with the JDK? I checked the console and it's installed. I thought pointed IntelliJ to the right place but maybe not? Really confused here.
Exception in thread "main" java.lang.ClassNotFoundException: com.teamtreehouse.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Process finished with exit code 1
2 Answers
Chris Howell
Python Web Development Techdegree Graduate 49,702 PointsWhen you created a new project in IntelliJ. Did you create the project exactly as Craig did or did you add your own custom project name?
What did you name it? and what is the name of your class file that holds the public static main method in it?
If you could post your code, using the Markdown Cheatsheet below, that would also be helpful.
Charles Cloud
6,134 PointsIf you copied the code directly from Teacher's notes then you have a mismatch between what the Class is named and what the file is named. The class name defaults to main (the file name) in intelliJ but in the teacher's notes it is named Systemizer. That is probably your issue
Jeremiah Montano
7,221 PointsJeremiah Montano
7,221 PointsCan you post your code so we can see where the error may have occurred?