Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » linking TextIO to Eclipse Java Project(Cannot get Eclipse to recognize TextIO)
linking TextIO to Eclipse Java Project [message #821835] Thu, 15 March 2012 17:55 Go to next message
Brian Case is currently offline Brian Case
Messages: 3
Registered: March 2012
Junior Member
Hope this is the right forum. This should have taken three minutes and I've lost the whole day on this.

I'm running Eclipse Eclipse SDK Version: 3.7.2 with the default workspace on C:\Documents and Settings\owner\workspace on windows xp. I'm using the jdk-7u3-windows-i586 version of Java.

Separately, I've downloaded TextIO.java (and in desperation even created a class for it). I've copied and pasted TextIO.java to every place I can think of, but the Eclipse IDE does not find it.

e.g. Here's the code for the class (and project) (periods used to show indents)
public class Exercise1v1 {
....public static void main(String[] args) {
.
........String usersName; // The user's name, as entered by the user.
........String upperCaseName; // The user's name, converted to upper case letters.
.
........System.out.print("Please enter your name: ");
........usersName = TextIO.getln();
.
........upperCaseName = usersName.toUpperCase();
.
........System.out.println("Hello, " + upperCaseName + ", nice to meet you!");

.....} // end main()

}

the error is "the method getln() is undefined for the type TextIO"

My Project is
Exercises1
..- src
....- default package
....- Exercise1v1,java
....- TextIO.java
..+ snippet
..+ JRE System Library [JavaSE 1.7]
....TextIO.java
Re: linking TextIO to Eclipse Java Project [message #821895 is a reply to message #821835] Thu, 15 March 2012 19:50 Go to previous message
Brian Case is currently offline Brian Case
Messages: 3
Registered: March 2012
Junior Member
Resolved. Terminology issue.

The TextIO.java goes on the project group, not the package.
Previous Topic:difficulty with remote debug
Next Topic:Setup Python & pyDev IDE environment in Eclipse
Goto Forum:
  


Current Time: Wed Aug 20 10:40:20 EDT 2014

Powered by FUDForum. Page generated in 0.01480 seconds