Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK1.5 J2SDK1.4

 
Nicola Guy
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who said, that JDK1.5 is not stable yet??

Where do you have your postgre driver located?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nicola Guy
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, moving the driver jar file worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic