set up JCE

In the last 3 days, I tried a variety of ways to set up JCE with either j2sdk1.4.0-beta3.exe or with j2sdk-1_4_0-beta-forte-ce-3_)-beta-win.exe on both Windows ME and Win98, but with no luck at all. I even reloaded the binary .exe files from java.Sun again and uninstalled the resident JDK before re-installing the new one.

In each installation, the system always displayed a "set up successful" message. Indeed I can run any Java prgram or Java servlet or even message digest as long as the program that does not import javax.crypto.*. In other words, any program that reguired SunJCE crypto extension will not work, but it can be compiled successfully though.

In the installation instructions, there isn't much that we need to do. I took all the default during the set up. After the set up, I set the following environment varialbles (I used JRUN for my servlets):

SET PATH=.;C:\WINDOWS;C:\WINDOWS\COMMAND;c:\j2sdk_forte\jdk1.4.0\bin;C:\PROGRA~1\MICROS~6\80\TOOLS\BINN

SET CLASSPATH=.;c:\j2sdk_forte\jdk1.4.0\lib\tools.jar;C:\Progra~1\Allaire\JRun\servers\default\default-app\WEB-INF\classes

SET JAVA_HOME=c:\j2sdk_forte\jdk1.4.0\jre

SET JRUN_HOME=c:\progra~1\Allaire\Jrun

I would appreciate very much if anyone could help me solve this problem or answer my questions below:

- What else do I need to do to set up the JCE?

- Please let me know if you have successfully set up JCE on Windows ME or Win98, i.e. you can run programs that import javax.crypto.*.

- I don't dare try the beta on my active W2K Advaced Server. Does it actually work on the Advanced Server as far as JCE is concerned?

- Does the Forte beta work better than Standard beta3.

Thank you in advance.

Alice

[1772 byte] By [tsaiA] at [2007-9-26 13:50:07]
# 1

Hi everyone, I imagine that this person has already found out what the problem was in getting the JCE to run. I had the exact same problem (different OS though) and was sorely disappointed when I didn't find an answer to this particular question.

The problem (at least on my machine) was that you don't really know which java.exe you are running. The compiler completed successfull, but every single time I ran the app - it said it couldn't find javax.crypto.anything.

I have a Java resource at work and he found the error of my ways....

When I ran c:\jdk1.3.1\bin\java.exe classname

Suddenly my code worked. Apparenlty, I was running the Java.exe in the c:\WINNT\SYSTEM32 directory - every time I typed java - instead of the one in my current install.

Nidhogg - veteran of years of playing on Ascheron's call on Thistledown. :)

nidhogg at 2007-7-2 14:46:10 > top of Java-index,Security,Cryptography...