• Post Reply Bookmark Topic Watch Topic
  • New Topic

J Creator Program  RSS feed

 
Jeff Te
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to run the following program on j creator and am getting the errors below. any help would be greatly appreciated!

// Plug and Play

/*

*Plug and Play Assignment

*Author: Ketu Patel

*School: Upper Merion Area High School

*Date: 9/22/2009

*/

public class App {

public static void main (String[] args) {

system.out.println("Hello World!");
system.out.println("This is Kirtida");
system.out.println("Java programming is very tricky");
system.out.println("Here is my treehouse!");
system.out.println(" xxxxx ");
system.out.println("xxxxxxxxx");
system.out.println("xx^^^^^xx");
system.out.println("xx|---|xx");
system.out.println("xx-----xx");
system.out.println("xxxxxxxxx");
system.out.println(" xxxxxxx ");
system.out.println(" | | ");
system.out.println(" | | ");
system.out.println(" | | ");
}
}


Erros:

C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:15: class App is public, should be declared in a file named App.java
public class App {
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:19: package system does not exist
system.out.println("Hello World!");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:20: package system does not exist
system.out.println("This is Kirtida");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:21: package system does not exist
system.out.println("Java programming is very tricky");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:22: package system does not exist
system.out.println("Here is my treehouse!");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:23: package system does not exist
system.out.println(" xxxxx ");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:24: package system does not exist
system.out.println("xxxxxxxxx");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:25: package system does not exist
system.out.println("xx^^^^^xx");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:26: package system does not exist
system.out.println("xx|---|xx");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:27: package system does not exist
system.out.println("xx-----xx");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:28: package system does not exist
system.out.println("xxxxxxxxx");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:29: package system does not exist
system.out.println(" xxxxxxx ");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:30: package system does not exist
system.out.println(" | | ");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:31: package system does not exist
system.out.println(" | | ");
^
C:\Documents and Settings\Administrator\My Documents\KirtidaPlugandPlay.java:32: package system does not exist
system.out.println(" | | ");
^
15 errors

Process completed.
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case sensitive. Try System;)
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the first one, the error messages seems very clear ... what is it that you don't understand?

class App is public, should be declared in a file named App.java



See previous post for the rest.

Henry
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use code tags when you post source code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!