Can't use JDK 1.4 jar file (javax.crypto) in JDK 1.3

D

Dundonald

I'm running WSAD IDE and 1.3 of JDK. I need to use the javax.crypto
package which I have obtained the jar file for (from JDK 1.4.2) and
plugged in to my web app in 1.3. Everything compiles OK but when the
server is started I get a security error. I've done some googling and
it would appear that this is a known problem. Rather than bothering
about the why this is a problem, I need to know if there is a
workaround?

How can I get the javax.crypto package working?
 
M

Mike Schilling

Dundonald said:
I'm running WSAD IDE and 1.3 of JDK. I need to use the javax.crypto
package which I have obtained the jar file for (from JDK 1.4.2) and
plugged in to my web app in 1.3. Everything compiles OK but when the
server is started I get a security error. I've done some googling and
it would appear that this is a known problem. Rather than bothering
about the why this is a problem, I need to know if there is a
workaround?

How can I get the javax.crypto package working?

By finding the correct file for 1.3. Google is your find. It took me about
30 seconds to find
http://www.webservicessummit.com/Excerpts/ApacheTools2.htm
 
D

Dundonald

By finding the correct file for 1.3. Google is your find. It took me about
30 seconds to findhttp://www.webservicessummit.com/Excerpts/ApacheTools2.htm

:) Thanks Mike. I've been googling for about an hour or so now reading
up about this issue. I'll take a look at that page and see if I can
get what I need. Incidentally I also just read about the certificate
issue (related to the security exception) and it explained that if the
system date is changed to a date before may 2006 that it would work.
And it does. Not ideal though, so as I say, I'll have a read on your
link and try to obtain the right jar for JDK 1.3.

Thanks again.
 
L

Lew

Any particular reason why you're tied to an obsolete version of Java? Even
Java 1.4 is already in its End-Of-Life phase; 1.3 has been dead for nearly a
year, after a long EoL of its own.

Generally classes from a newer version of Java will not work with earlier
versions, due to changes in the classfile format between versions.
 
D

Dundonald

Any particular reason why you're tied to an obsolete version of Java? Even
Java 1.4 is already in its End-Of-Life phase; 1.3 has been dead for nearly a
year, after a long EoL of its own.

Generally classes from a newer version of Java will not work with earlier
versions, due to changes in the classfile format between versions.

Just the IDE that I have (WSAD 5). Highest JDK available with it is
1.3.
 
L

Lew

Just the IDE that I have (WSAD 5). Highest JDK available with it is
1.3.

I don't know about WSAD, but Eclipse, on which WSAD is based, lets you upgrade
to a current JDK. You're three entire versions out of date - 1.3 is truly and
hopelessly obsolete. You should upgrade to Java 6 unless you have a
compelling reason not to.
 
M

Mike Schilling

Dundonald said:
Is it me being dumb or are the files described in your link not
available from bouncy castle site?

They may not be; as others have pointed out, 1.3 is very obsolete, and they
may have been taken down some time ago.

And I agree with Lew and Roedy. There are lots of good IDEs around for
current versions of Java, and your life will probably be much easier if you
start using one of them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top