Solved

Should jce files be installed on the client machine?!?

Posted on 2004-04-16
8
296 Views
Last Modified: 2013-11-18
     
Hi,
I'm writing a signed applet that makes use of JCE to decript some parameters.
The applet should work fine by just open it in a browser (that's the whole point in being an applet) and accepting the certificate that the applet contains.
In the applet html "archive" tag I added the JCE jars (sjce1_2_2.jar, local_policy.jar, sunjce_provider.jar, US_export_policy.jar) together with my applet jar .

Now, I can oly make the thing work if I add in my java plugin jre/lib/ext directory the JCE files.

Is this normal?!?
I mean to ask a client to install JCE and put the jar files in his plugin extension directory the JCE jars in order to be able to run my applet?

It doesn't make any sense!

Any ideas that I might use? Am I doing something wrong? Shouldn't JCE run fine with applets without installing anything on the client machines?

Thanx anyway
0
Comment
Question by:jackiemani
  • 5
  • 3
8 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10847549
If you're using non-standard JDK APIs, you will have to supply the jars for those extension. I am not entirely sure, but you should be able to unjar the jars you're describing above and add the contents of them to your applet jar.
0
 

Author Comment

by:jackiemani
ID: 10847562
Adding the contents only to the applet doesnt make it work.
These jars are optional package for JDK1.3.

How do i supply from sever automatically in case i need to supply it
0
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 105 total points
ID: 10847894
You need to create a proxy applet, signed, which detects whether the necessary classes (jars) are available in the running JVM. If the needed classes are not available, the applet downloads the jars and installs them in a known location. Since the location is known, using a class loader would be trivial to retrieve the needed classes after the download(s) complete.
0
 

Author Comment

by:jackiemani
ID: 10848818
I COULD LOCATE THE JRE FOLDER AT CLIENT SIDE USING JAVA.HOME IN SECURITY CLASS.
BUT I AM NOT SURE HOW I WOULD DOWNLOAD AND COPY THE JARS INTO THE FOLDER.CAN U HELP ME WITH THE SAMPLE CODE FOR IT.IT WOULD BE GREAT HELP.

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10849611
Before we get into code, did you also specify the cache_option and cache_version tags in your html file?
0
 

Author Comment

by:jackiemani
ID: 10851484
Yes i have. for each jar files
0
 

Author Comment

by:jackiemani
ID: 10851487
But it doesnt download to the JRE installed folder of the client.
0
 

Author Comment

by:jackiemani
ID: 10852534
<PARAM NAME="cache_option" VALUE="Plugin">
<PARAM NAME="cache_archive" VALUE="a.jar,b.jar,c.jar">
<PARAM NAME="cache_version" VALUE="1.2.0.1, 2.1.1.2, 1.1.2.7">

sample above will it place my jar files to Jre folder of client  side inside jrepath/lib/ext/ folder ?


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 98
Modeling a class in java 5 44
Python Assistance 7 71
servlet requestdispatcher include and forward differences 1 22
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now