Solved

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

Posted on 2004-04-16
8
295 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

757 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

19 Experts available now in Live!

Get 1:1 Help Now