• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

J Creator Program

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is case sensitive. Try System;)
 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use code tags when you post source code.
 
We noticed he had no friends. So we gave him this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic