• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JDK 1.4

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written an applet using jdk 1.3. I have activation.jar, mail.jar, and mysql.jar (used for mysql db connection) in a folder called tools where all my java files reside. I include those when I compile my java files. On my web server, I have the main JAR file in a directory along with the tools directory where my other jar files exist. My applet tag in my html file is as follows with some sensitive information excluded:

This all works beautifully under jdk 1.3. I have now switched to jdk 1.4. I re-compiled all my java code and made my new JAR file. The applet still excutes and runs, however, I am getting the following errors in my JAVA CONSOLE whenever it needs activation.jar, mail.jar and the mm.mysql-2.0.9-bin.jar:

I was wondering if there is something different I need to do with jdk 1.4 and/or if they changed the way the compiler uses external jar files.
Any help would be greatly apprecitad.
Also, when I look at where the PC stores the cached jar files, the only one there is my main JAR file, HelpDesk.jar. So it appears that it is not downloading the external jar files.
Thanks again. Sorry this is so long.
 
Ivor Horton
Author
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The API for reading and writing JAR files has changed. I think the changes are to JAR file caching but I haven't looked at the details. There are some other areas which may give you some problems. For instance, changes to JDBC 3.0 in 1.4 mean that 1.3 source may not be compatible. Binaries are supposed to be compatible though. The changes that affect compatibility are documented at:
http://java.sun.com/j2se/1.4/compatibility.html
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to start hunting, but if anyone has a link to the changes in JDK 1.4 as far as reading and writing jar files, please post it here.
Thanks.
And thanks to you Ivor.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I found out part of my problem, however I still need a fix for it. I found out that when the jar files are being cached it won't cache jar files that exist in a subdirectory appearntly because it won't create the subdirectory. I placed the jar files in the same place as my main jar file and updated my html file and it worked wonderfully with no exceptions. However, I would really like to keep the extra jar files in their own folder. If anyone knows how this can be achieved, please let me know.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic