Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is "ZoneInfo"?

 
Diego Klappenbach
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
all of a sudden I get this weird "ZoneInfo" message when compiling. Does someone know something about it?
Here's an example:

It first appeared when compiling the ReverseServlet program, so I don't know if it maybe has something to do with the J2EE installation? In any case, now I get this message regardless of what I compile, not only for servlets. The output above is for the "Hundred" program (which I *know* works, since I've passed it ).
My classpath is:

This is not really a big problem, since this is not an exception/error message. But I would like to understand what is going on.
Searching the web and some of the likely JavaRanch forums has not yielded anything useful, so I reckon this is not something that occurs every day.
Does someone have an idea what this is all about?
Regards,
Diego
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you have those unquoted spaces in your classpath before? I've known a lot of wierd problems with spaces in classpaths, so it might be worth a try putting them in quotes.
Of course, it may well be something else ...
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you just recently install j2sdk1.4.2_01? Can you find the \jre\lib\zi\ZoneInfoMappings subdirectory? I'm thinking that perhaps your download was corrupted.

It doesn't seem to be a very common problem as far as I can determine.
 
Diego Klappenbach
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you just recently install j2sdk1.4.2_01? Can you find the \jre\lib\zi\ZoneInfoMappings subdirectory? I'm thinking that perhaps your download was corrupted.

Marilyn,
I think I've done most of my JavaRanch stuff with that SDK version.
I managed to find the \jre\lib\zi\ZoneInfoMappings file, but it was somewhere else (than were the compiler was looking for it).
As it turns out, I had several JREs and SDKs installed, so probably that has created some conflict.
Anyway, I did away with everything (SDK, JRE, and J2EE) and installed the latest SDK, hoping that would solve the problem. Well, it did, but instead I got a more serious problem - the compiler can't find the JavaRanchCommon.zip file (again!).
Below are some things I've tried.
First, the JavaRanchCommon.zip file I got is 184,776 bytes, so I suppose it did not get corrupted during download:


Tried putting the classpath in quotes:

I'm running this on a W2K machine.
Any suggestions?
Thanks for your help, regards,
Diego
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general I try to avoid spaces in my directory names, i.e. "otherJava" rather than "other java".

However, in this case (since you are using Win2K), I think that is not your problem.

Note that your first error message is "cannot access javax.servlet.http.HttpServlet". HttpServlet is in the javax.servlet.http package, not the com.javaranch.common package.

I have to leave for work now, but I recommend you reread the servlet assignment page very carefully, being careful not to skip any sentences or words.
 
Diego Klappenbach
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, so again it was a dumb mistake. (..on the other hand, is there such a thing as an "intelligent" mistake? )
I had simply forgotten that servlets are part of the J2EE, so j2ee.jar was lacking in the classpath. Should not have tested the classpath with the BeeServlet class...
Frank, Marilyn, thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic