This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

packages; *.zip; *.jar & import

 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working ahead in the CattleDrive while waiting for current nitpick to arrive.
Assignment OOP-1 (DaysOld) requires the downloading of a *.zip file and re-configuration of classpath. Two preliminary questions:
1. Is a *.zip == *.jar?
2. Does simply renaming a file to someFile.jar from someFile.zip make a zip file a jar file?

Finally, the real problem. No matter how I configure the classpath this error occurs at runtime with the required import statement in the java file:

I even changed my folder structure to match that in the example and placed the given path example in classpath with the same error.
What gives?
TIA
doco
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to questions 1 and 2 are yes. I don't know if this is the cause of your problem, but it looks like you are trying to import a class called common from the package com.javaranch. You probably want to import something different. Is that cryptic enough.
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew;
Thanks for the answers. You hit the nail on the head - this bonehead! Your encryption pointed me to the problem. I was not referring to some file named common. That was the least node in the hierarchy; what I didn't do was place the ".*" at the end! Jeesh what a bonehead! :roll:
Well then, it seems I'm back in the saddle again!
Thanks
doco
[ March 09, 2003: Message edited by: doco mastadon ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic