Problems with project.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #1

    Problems with project.

    Hi Everyone:
    I have a problem with my project. I'm using Eclipse and it I don't know what is going on.
    As I working on my Project it will give me errors, At one time I thought I had only two errors. I would try to correct the problems (getting advice from "thescripts ) and the problems would be fixed. But if I would add a script to my project, suddenly errors would show up, if I took out the script that I just put in the errors would still show and if I do a save they disappear. If I take out or add a char. the errors will show up....
    This is driving me crazy....
    What is going on.
    I figure these errors are real and some how I need to correct them...
    Any help and advice would be great....
    nomad
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    You realize there is a difference between "Java" and "Javascript "? I'm not sure what you are talking about when you say you added a "script" to your project. What kind of problem are you getting in eclipse? What are you trying to do with eclipse that some error will not let you accomplish?

    Comment

    • hirak1984
      Contributor
      • Jan 2007
      • 316

      #3
      Please post what exactly ur problems are.What errors are you getting.
      Dont post this way,nobody gets an idea about what problems are you actually facing.
      Originally posted by nomad
      Hi Everyone:
      I have a problem with my project. I'm using Eclipse and it I don't know what is going on.
      As I working on my Project it will give me errors, At one time I thought I had only two errors. I would try to correct the problems (getting advice from "thescripts ) and the problems would be fixed. But if I would add a script to my project, suddenly errors would show up, if I took out the script that I just put in the errors would still show and if I do a save they disappear. If I take out or add a char. the errors will show up....
      This is driving me crazy....
      What is going on.
      I figure these errors are real and some how I need to correct them...
      Any help and advice would be great....
      nomad

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Originally posted by RedSon
        You realize there is a difference between "Java" and "Javascript "? I'm not sure what you are talking about when you say you added a "script" to your project. What kind of problem are you getting in eclipse? What are you trying to do with eclipse that some error will not let you accomplish?
        Sorry RedSon...
        Wrong word Script... I'm use Eclipse for Java.
        I'm trying to correct Arraylist problems.
        example
        Code:
        public class Employee {
            static ArrayList<Employee> employ;
        	int empid = employ.size();
        Part of my scanner
        Code:
        	public static Employee inputEmployee() {
        		Employee temp = null;
        
        		//prompt for data
        
        		Scanner input_flag = new Scanner(System.in);
        		System.out.println("Enter Employee Id Number AB1234==>");
        		String empid = input_flag.next();
        //need to add find section here
        		System.out.print("Enter Last Name Doe==>");
        		String ln = input_flag.next();
        I get this message The field employ cannot be declared static; static fields can only be declared in static or top level types

        and here
        Code:
        	// make an object
        	temp = new Employee(empid,ln,fn,st,ct,zp,yw,pr);
        	return temp;
        I get this message
        The constructor Employee_listin g.Employee(Stri ng, String, String, String, String, String, Integer, Double) is undefined

        So if I rename employ most of the errors are going, but if I remove a ; then I put it back the errors will show up again.

        nomad
        did that make sense....

        Comment

        • RedSon
          Recognized Expert Expert
          • Jan 2007
          • 4980

          #5
          What this thread not helpful?

          Comment

          Working...