I have Java at school, and now we're gonne learn how to use "easyIO". I've found out that easyIO is a class that has to be downloaded and installed manually, which I've tried. The problem is that Eclipse doesn't seem to find it. The teachers and other students aren't using Eclipse but some Emacs thingy, so I'm not getting much help from them. I dont want to use their programe since it sux imo.
So, I've downloaded easyIO, and tried to install it. Went to Preferences, classpath variables, made a new variable called easyIO and set the path to C:/Program Files/Java/jre1.5.0_12/lib/ext where the easyIO.jar is located. But when I try "import easyIO.*;" I'm getting error and it wont run.
[Kari]: ...and set the path to C:/Program Files/Java/jre1.5.0_12/lib/ext where the easyIO.jar is located.
For a jar file, the path needs to include the name of the jar file, not just the directory it's in.
"I'm not back." - Bill Harding, Twister
Joined: Feb 12, 2007
Fixed to "C:/Program Files/Java/jdk1.5.0_12/jre/lib/ext/easyIO.jar" Not helping:\
Joined: Jan 30, 2000
Hm, I see this is actually in the ext directory. Normally you shouldn't need to set the classpath at all to pick up jars in the ext directory. Maybe eclipse doesn't handle it the same way though. As an experiment, try putting the jar file in some completely different directory, away from your JDK installation. For that matter, put it in some location that does not have any spaces in the path (not part of Program Files). (Spaces shouldn't cause a problem on modern systems, but sometimes they do.)
If that still doesn't work, we should probably move this to the IDEs forum and you can explain exactly how you're setting the classpath in eclipse. I haven't used Eclipse in a while, so maybe someone there can catch an error there. Actually I'll go ahead and move it now, since I'm sure this isn't an I/O issue. [ September 11, 2007: Message edited by: Jim Yingst ]
If you're using Eclipse then messing with the CLASSPATH environment variable is futile, as Eclipse doesn't pay any attention to that. Right-click on your project, select Properties, and go to Java Build Path. That's where you need to identify things you want in your classpath.