I modified jsse.jar and I'm almost there, but I still have this one problem which I'm still struggling on:
The problem is as follows:
I took the jsse.jar of my jdk 1.6.18 and imported it into eclipse. This does not show me the source code. So I took a decompiler (jd - java decompiler) and loaded the jsse.jar into the Decompiler, saved the source and imported it into Eclipse. Now I compile the it again. Whoops, 926 erros. Ok, I change the "Forbidden reference (acces rules)" from error to warning (because it only warns me about it, it is not an error). Still 377 errors. And without any rewriting of the code, the code is unchanged!
Now how do I solve this? It was a working .jar and when I compile it again it doesn't work? funny... or not, because I already put so much effort into this..
How it does work but doesn't help me:
Maybe the decompiler does something which has unwanted consequences? So I loaded the jsse source directly (with java research license) as described by ghstark in this thread:
http://forums.sun.com/thread.jspa?threadID=665691 . BUT this one is for java 1.5. Looking at the code I notice that it is way different than the one from jdk1.6.18! But it comes in a bundle with jce and jgss. I import all three (jsse, jce, jgss) into eclipse and compile it: 9 errors. Ok, I do this on my uncles computer with jdk1.5 and there: it works!
Now I could do my changes to jsse of jdk1.5 and it would work. But I already put around two weeks effort into reading and changing jsse.jar of jdk1.6 and they are very different! So I really want it to work on jdk1.6!
So what did I do wrong?
In jdk1.6.18 I ONLY took the jsse source decompiled and imported it into eclipse. This doesn't compile without errors. Comparing, in jdk1.5 if I only import the jsse source it also doesn't compile without errors. Only if I take jsse, jce and jgss.
In jdk1.6 there is no jgss anymore! So I tried with jsse and jce but it doesn't compile.
Two Ideas:
- what other jars do I need to compile jsse? I tried with jce but it is not enough. Any help here?
- Can I download the source code of jsse for version java1.6 ? Searching on javas page I don't find it! I do find the source code of java1.6 but without jsse (and jce)!
I really put a lot of work into this. I only need this last step of compiling jsse again (because in another file I wrote down all the changes I have to do for my algorithm to work) and I'm sure then it will work!
Thanks again for all your help and time!
If I get this done (, it works) and you are still interested I'll show you what changes I made for my algorithm to work.