I need to know how to compile these files from the command prompt. Then I need to know how to run these files from the command prompt. I keep getting the error package com.citc1318.course.chapters does not exist and error: cannot find symbol. I can not figure out how to fix this. This is in this directory c;\Code\com\CITC1318\course package com.CITC1318.course; import com.CITC1318.course.Chapters.Chapter1; import com.CITC1318.course.Chapters.Chapter2; import com.CITC1318.course.Chapters.Chapter3; public class GreetingsClass { public static void main(String[] args) { System.out.println("$ Greetings, CITC1318!"); Chapter1 c1 = new Chapter1(); Chapter2 c2 = new Chapter2(); Chapter3 c3 = new Chapter3(); } } These are in this directory c;\Code\com\CITC1318\course\chapters package com.CITC1318.course.Chapters; public class Chapter1 { public Chapter1() { System.out.println("Hello from Chapter1!"); } } package com.CITC1318.course.Chapters; public class Chapter2 { public Chapter2() { System.out.println("Hello from Chapter2!"); } } package com.CITC1318.course.Chapters; public class Chapter3 { public Chapter3() { System.out.println("Hello from Chapter3!"); } }
I need to know how to compile these files from the command prompt.
Then I need to know how to run these files from the command prompt.
I keep getting the error package com.citc1318.course.chapters does not exist and error: cannot find symbol.
I can not figure out how to fix this.
This is in this directory c;\Code\com\CITC1318\course
package com.CITC1318.course;
import com.CITC1318.course.Chapters.Chapter1;
import com.CITC1318.course.Chapters.Chapter2;
import com.CITC1318.course.Chapters.Chapter3;
public class GreetingsClass {
public static void main(String[] args) {
System.out.println("$ Greetings, CITC1318!");
Chapter1 c1 = new Chapter1();
Chapter2 c2 = new Chapter2();
Chapter3 c3 = new Chapter3();
}
}
These are in this directory c;\Code\com\CITC1318\course\chapters
package com.CITC1318.course.Chapters;
public class Chapter1 {
public Chapter1()
{
System.out.println("Hello from Chapter1!");
}
}
package com.CITC1318.course.Chapters;
public class Chapter2 {
public Chapter2()
{
System.out.println("Hello from Chapter2!");
}
}
package com.CITC1318.course.Chapters;
public class Chapter3 {
public Chapter3()
{
System.out.println("Hello from Chapter3!");
}
}
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)