Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Dundonald - 04 Oct 2007 23:22 GMT
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?
Mike Schilling - 04 Oct 2007 23:32 GMT
> 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
[quoted text clipped - 5 lines]
>
> 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
Dundonald - 04 Oct 2007 23:45 GMT
On Oct 4, 11:32 pm, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
> > 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
[quoted text clipped - 8 lines]
> 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.
Dundonald - 05 Oct 2007 00:02 GMT
On Oct 4, 11:32 pm, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
> > 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
[quoted text clipped - 8 lines]
> 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

Is it me being dumb or are the files described in your link not
available from bouncy castle site?
Lew - 05 Oct 2007 00:09 GMT
>>> 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
[quoted text clipped - 3 lines]
>>> about the why this is a problem, I need to know if there is a
>>> workaround?

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.

Signature

Lew

Dundonald - 05 Oct 2007 00:19 GMT
> >>> 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
[quoted text clipped - 10 lines]
> 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.
Lew - 05 Oct 2007 00:26 GMT
Lew wrote:
>> 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.

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.

Signature

Lew

Roedy Green - 05 Oct 2007 01:13 GMT
>Just the IDE that I have (WSAD 5).  Highest JDK available with it is
>1.3.

IDEs have come quite a long way.  check out Eclipse, Netbeans and
IntelliJ especially. http://mindprod.com/jgloss/ide.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Mike Schilling - 05 Oct 2007 02:15 GMT
> On Oct 4, 11:32 pm, "Mike Schilling" <mscottschill...@hotmail.com>
> wrote:
[quoted text clipped - 14 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.