Single Clue Error Means Given Code Teacher Told Run However Need Help Q43870688
I do not have a single clue what this error means, I was giventhis code by a teacher and told to run it, however, I needhelp!
untitled6 [CAUsersliam9ldeaProjectsuntitled6] – .srecomcompany Main.java – Intellij IDEA File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help Guntitled6 src D com D company e IntegerBathtubWindow C Project – O Main.java IntegerBathtubWindowTest.java x © Guntitled6 C:Usersliam9desPrajectsuntitled6 ulh External Libraries pimport javax. Swing.”; 2 O Scratches and Consoles import java.aet.*; F import java. aut.event.*: 4. import java.awt.event. MouseEvent; 5. 6. eimport jeva.awt.event.MouseAdapter; class IntegerBathtubindow extends JFrame{ private JPanel drawsurface; // the surface that the counters will be drawn on // mouse offset from counters 10 11 private int offsetx; 12 13 private int offsetY; 14 private int numberCounters = 8; // number of each type of counter to display // top left coordinate of positive counters 15 private int positivex[] = new int[numberCounters]; 16 private int positiveY[] – new int[numberCounters]; 17 // top left coordinate of negative counters 18 private int negativex[] – new int[numbercounters]; 19 private int negativey[] – new int[numberCounters]; 20 private boolean draggingPositive[] = new boolean[numberCounters]; // true when dragging a positive counter private boolean draggingNegative[] = new boolean[numberCounters]; // true when dragging a positive counter private boolean inRectPositive[] = new boolean [numberCounters]; // true when positive counter in bathtub private boolean inRectlegative[] 21 22 23 – new boolean[numberCounters]; /! ture when negative counter in bathtub 24 private boolean dragging – false; // true when dragging any positive or negative counter 25 private Color rectcolor; // colour of interior of bathtub 26 private int redcounters – 0; // number of positive counters in bathtub private int blueCounters – 0; // number of negative counters in bathtub 27 28 private int totalCount = 0; // sum of the positive and negative coutners in bathtub 29 Run Main “C: Program FilesJetBrainsIntelli] IDEA Community Edition 2019.2.1jbrbinjava.exe” “-javaagent:C:Program FilesJetBrainsIntelli] IDEA Community Edition 2019.2.1libidea_rt.jar-61126:C:Progra Error: Could not find or load main class com.company.Main Caused by: java.lang.ClassNotFoundException: com.company. Main Process finished with exit code 1 E Terminal E O: Messages >4: Run EE TODO Show transcribed image text untitled6 [CAUsersliam9ldeaProjectsuntitled6] – .srecomcompany Main.java – Intellij IDEA File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help Guntitled6 src D com D company e IntegerBathtubWindow C Project – O Main.java IntegerBathtubWindowTest.java x © Guntitled6 C:Usersliam9desPrajectsuntitled6 ulh External Libraries pimport javax. Swing.”; 2 O Scratches and Consoles import java.aet.*; F import java. aut.event.*: 4. import java.awt.event. MouseEvent; 5. 6. eimport jeva.awt.event.MouseAdapter; class IntegerBathtubindow extends JFrame{ private JPanel drawsurface; // the surface that the counters will be drawn on // mouse offset from counters 10 11 private int offsetx; 12 13 private int offsetY; 14 private int numberCounters = 8; // number of each type of counter to display // top left coordinate of positive counters 15 private int positivex[] = new int[numberCounters]; 16 private int positiveY[] – new int[numberCounters]; 17 // top left coordinate of negative counters 18 private int negativex[] – new int[numbercounters]; 19 private int negativey[] – new int[numberCounters]; 20 private boolean draggingPositive[] = new boolean[numberCounters]; // true when dragging a positive counter private boolean draggingNegative[] = new boolean[numberCounters]; // true when dragging a positive counter private boolean inRectPositive[] = new boolean [numberCounters]; // true when positive counter in bathtub private boolean inRectlegative[] 21 22 23 – new boolean[numberCounters]; /! ture when negative counter in bathtub 24 private boolean dragging – false; // true when dragging any positive or negative counter 25 private Color rectcolor; // colour of interior of bathtub 26 private int redcounters – 0; // number of positive counters in bathtub private int blueCounters – 0; // number of negative counters in bathtub 27 28 private int totalCount = 0; // sum of the positive and negative coutners in bathtub 29 Run Main “C: Program FilesJetBrainsIntelli] IDEA Community Edition 2019.2.1jbrbinjava.exe” “-javaagent:C:Program FilesJetBrainsIntelli] IDEA Community Edition 2019.2.1libidea_rt.jar-61126:C:Progra Error: Could not find or load main class com.company.Main Caused by: java.lang.ClassNotFoundException: com.company. Main Process finished with exit code 1 E Terminal E O: Messages >4: Run EE TODO
Expert Answer
Answer to I do not have a single clue what this error means, I was given this code by a teacher and told to run it, however, I nee…
OR