File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant get easyIO to work

 
Kari Nordmann
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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.
 
Kari Nordmann
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed to "C:/Program Files/Java/jdk1.5.0_12/jre/lib/ext/easyIO.jar"
Not helping:\
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20193
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot, now I got it working
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic