Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Class Not Found Problem.

944196Feb 8 2015 — edited Feb 9 2015

I cannotr seem to be able to run successfully this JAVA file. it keeps on telling me that the Class is not found or not available!! I using the Eclipse Luna Integrated Development Editor. My program uses a series of setters/getters but what could be wrong with it?

public class SomeJava1 {

static String name = "Steve Burrus";

static int weight = 226;

static double height = 5.8;

public void setName1(String name){

SomeJava1.name = name;

}

public String getName1(){

return name;

}

public void setWeight(int weight){

SomeJava1.weight= weight;

}

public int getWeight(){

return weight;

}

public void setHeight(double height){

SomeJava1.height = height;

}

public double getHeight(){

return height;

}

public static void main(String[] args) {

System.out.println("Hi I am " + name + "\n And I am " + height + "feet tall. \n And I weight some " + weight + "pounds. Too fat!" );

}

}

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 9 2015
Added on Feb 8 2015
1 comment
604 views