Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Major Minor Version

 
Rajkumar Sathiya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have developed an API in JDK 1.5
This API is for encrypting File using DES Algorithm.
API works fine in the client location, where they also have JDK 1.5
But it is not working with JDK 1.3
I tried placing jce.jar in classpath but it didnt work
Exception thrown:
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/crypto/spec/DESKeySpec (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)


Can anyone suggest, how to make it work?
Thanks.
 
Karl Heinz Marbaise
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you have to compile the package for using JDK 1.3, cause JDK 1.5 is not compatible with JDK 1.3...

Kind regards
Karl Heinz Marbaise
 
Rajkumar Sathiya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Karl,

Thanks for your response.
I have already complied in JDK 1.3 but then also its not working.
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the error that you get now..after compiling in jdk 1.3 ?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you get the jce.jar file? It seems to be for use with JDK 1.4; you'll need to find a JCE version that works with Java 1.3. That will be difficult, since Java 1.3 (as well as Java 1.4) have been retired years ago. Sun has some old archived version of JCE 1.2 (which work with Java 1.3), but they're apparently available to US/Canadian users only.

The proper solution is to upgrade to (at least) Java 5.
 
Rajkumar Sathiya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chinna,
When the Major Minor Version Exception occured first, I compiled my package in JDK 1.3 and placed jce.jar
Means before posting my query here, I have have my package in JDK 1.3
From then am getting the same exception.

Thanks.
 
Rajkumar Sathiya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Where did you get the jce.jar file? It seems to be for use with JDK 1.4; you'll need to find a JCE version that works with Java 1.3. That will be difficult, since Java 1.3 (as well as Java 1.4) have been retired years ago. Sun has some old archived version of JCE 1.2 (which work with Java 1.3), but they're apparently available to US/Canadian users only.

The proper solution is to upgrade to (at least) Java 5.


I persuaded my clients to upgrade to JDK 1.5, but they are reluctant to do it.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the Major Minor Version Exception occured first, I compiled my package in JDK 1.3


This error shows that the problem is with JCE, not with your code:
java.lang.UnsupportedClassVersionError: javax/crypto/spec/DESKeySpec (Unsupported major.minor version 48.0)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic