It's not a secret anymore!
The moose likes Beginning Java and the fly likes JDK1.5 J2SDK1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK1.5 J2SDK1.4" Watch "JDK1.5 J2SDK1.4" New topic

JDK1.5 J2SDK1.4

Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Ok I had 1.4 installed and my servlet worked when I moved to 1.5 the postgresql driver could no longer be found.

SO I thought I'd go back to 1.4 as everyone says 1.5 isn't stable yet, so i changed my classpaths etc.

Then I got an error which I concluded was because my servlet had been compiled with 1.5 but i was trying to run it with 1.4.

And heres the problem.

I cant recompile the file again without getting loads of errors, which werent there when i first compiled it with 1.4.

I know this is confusing so any help would be great!!
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Who said, that JDK1.5 is not stable yet??

Where do you have your postgre driver located?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15033

You have to make sure that you know about what versions of what products you're talking.

Java 2 Standard Edition version 1.5 has been out since October 2004, so it is as stable as a rock.

Java EE 5 (which you could call "J2EE version 1.5" if you're used to the old names) is still very new and not yet implemented (fully) in the well-known application servers.

Your problem most likely is not caused by a bug in your Java runtime environment, but by a misconfiguration. Put the driver JAR file in the right place. If you have a webapp in a WAR file, you can put it in the WEB-INF/lib directory in your WAR file.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Nicola Guy
Ranch Hand

Joined: Jun 23, 2004
Posts: 91
Thank you, moving the driver jar file worked.
I agree. Here's the link:
subject: JDK1.5 J2SDK1.4
It's not a secret anymore!