aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Cant get easyIO to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Cant get easyIO to work" Watch "Cant get easyIO to work" New topic
Author

Cant get easyIO to work

Kari Nordmann
Ranch Hand

Joined: Feb 12, 2007
Posts: 38
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.

Please help...
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[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
Kari Nordmann
Ranch Hand

Joined: Feb 12, 2007
Posts: 38
Fixed to "C:/Program Files/Java/jdk1.5.0_12/jre/lib/ext/easyIO.jar"
Not helping:\
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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 ]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18992
    
    8

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.
Kari Nordmann
Ranch Hand

Joined: Feb 12, 2007
Posts: 38
Thanks alot, now I got it working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant get easyIO to work