Loading the applet

Hi All,
I've been asked to produce documentation for java card beginners. I'd like to double check much of what I write. Is this right: the easiest way to convert a class file to an applet and load it on to a card is to use a vendor package, like Gemplus's RAD III?
Is it any easier to do this using the latest java card kit than it was with 2.1.2, or is the vendor package still the way to go?
I suspect the vendor package will still get the nod. If so, which one is the one to go for? It may be that it is a case of six of the one or half a dozen of the other. I am only familiar with RAD III.
Does any one know how to load a pure java card application not importing or implemeting visa.openplatform but only importing javacard.framework? I'd like to make the first applet example as simple as possible.
Thanks
Chris

Most, if not all, vendors use the standard, Sun Converter. This is what converts your java class file into a CAP file. This cap file is what gets downloaded onto a JC. Since you get the Sun converter with the Sun JC kit, that's the easiest way to convert. I recommend this way to assure that the cap files you are generating are adhereing to standards. see VerifyCap. As far as a loader, you may develop your own OR use a vendor specific tool.
The Sun kit version is for the card, not client side. Therefore, you need to check the version of the card you are using. Currently most, if not all, are 2.1.x.
For starting out, I'd say use a vendor's kit. In my opinion there are only 2 good kits out there. I'd worry more about who can give you the better simulator, since they all provide a loader.
You only need to import visa.openplatform if you are implementing it in your applet. So if you don't use any openplatform, you won't need to import it. Keep in mind the implementation is already loaded onto your card.
To see a simple applet look at the Sun's HelloWorld applet.

Similar Messages

  • Discoverer client screen hangs trying to load the applet

    ...or so I think.
    We have a portal server running Discoverer 10.1.2.1. When using IE 6, the developers can get to the login screen (we're using the default one) and after they hit GO the new client browser window comes up but then just sits there blank.
    The person that is our Discoverer admin and one other in the office do not have this problem, the rest do. Using Firefox does get you in, however the client is standardized on IE so we need to figure out what's wrong.
    It's failing right at the point where you should get prompted to install the applet, but never gets that far. I've turned off the popup blocker and added the portal to the trusted sites with no luck.
    I did find a METALINK report regarding this exact behavior when there is an underscore in the host name, but in our case there isn't. Regardless it's not the case since there are a couple IE users that are getting in so I'm guessing it's due to a specific permissions setting on the client.
    Anyone struggle with this before?
    Thanks.

    Update -
    One of the clients that IS connecting is running the latest: 1.5.0_09 which makes no sense based on the other behavior.
    Well we figured it out (I think). If you have 1.4.2_06 on the box, you can connect, it installs the applet and you get in. If you then upgrade or uninstall/reinstall 1.5, Discoverer still works. Now we haven't tested anything else other than just logging in so what ever might blow up on us is still in question.
    But what it looks to be is that the kick off for the install is failing under 1.5 and once it's on the system, using a newer version is just fine. Now without really knowing/understanding what's going on under the hood this is just an assumption. However I've repeated it on a couple XP machines so far.
    That is, have 1.5 on the box, fail to get to Discoverer. Uninstall, then install 1.4, get Discoverer loaded, then upgrade/reinstall 1.5 and move on.
    We did give JInitiator a try but had similar strangeness happen and gave up since the client machines should have a copy of 1.4 on them to begin with. It's a matter of ironing out the details with our app. Hopefully 1.5 will be compatable by the time we go live which isn't for some time yet.

  • Facing the problem in loading the applet in mozilla, Firefox and netscape

    Dear sir,
    Well I am facing the problem regarding loading of applet in firefox,mozilla and netscape. Its working fine in IE6 I have the samplecode which asks for jdk1.4 whenever the applet gets loaded in IE6 and also it works fine for every browser but he is asking jre for every time whenever the page gets loaded even if the jre is installed. I need a code such that it should ask only if the jre is not installed. One more thing is it so that for mozilla or netscape the jre installation files are different.
    pls give the solution.
    Well I am also facing the problem like when I load login page of my applicatoin in netscape or firefox
    I provided the buton on login page on which the hyperlink is present, the hyperlink is of servlet path when I click on the same it shows me the blank page instead he should forward the page to the next jsp webpage where I am showing the applet. But it works fine in IE versions and opera but not in the others.
    Awating for your reply.
    Rgs
    sumeet.

    Issue resolved with the help of ABAP.
    Regards
    Bijudas

  • Problem while loading the applet across SSL in IE 5.0 & NS 6.0

    Hi
    Can any one of u guys solve my problem????
    I m trying to load an applet thru https protocol in both the browsers( IE 5.0 and Netscape 6.0). I am having a jar file which contains the applet class files and some helper files for the applet.When i m accessing the image URL (in the html file for the applet) thru https protocol itz working fine on both the browsers. But when i try to access codebase thru https i m getting different errors on both the browsers. Errors r as follows.
    Exception in IE 5.0
    java.net.ConnectException: HTTPS response=404
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.openStream(Native
    Method)
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.<init>(Unknown
    Source)
    at
    sun.plugin.protocol.https.BrowserHttpsURLConnection.getInputStream(Unknown
    Source)
    at sun.plugin.cachescheme.PluginURLConnection.downLoadFile(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.downloadJarFileToCache(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.cacheHandler(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.getJarFilesPath(Unknown
    Source)
    at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception in Netscape 6.0
    java.lang.ClassFormatError: package1/package2/package3/TiffViewer (Bad
    magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.access$201(Unknown
    Source)
    at sun.plugin.security.PluginClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Plz help me out if any one of u guys have came across such type of problem. Its very very urgent as well as critical. Any help / suggestion will highly be appreciated
    tks in advance
    Soniya

    Hi..
    I m also facing the same problem as described above. I have checked up the path for the class files mentioned in the "code" param in the html file.I also tested with the sample program but could not succed in getting the result.Both the browsers give different error messages as mentioned in the query posted by soniya1.I would be thankful if u can kindly throw some light on this
    if u have some sample code u may kindly drop it to the following mail id
    [email protected]
    hope to hear from u soon
    tx in advance
    R.Lakshmi

  • Cannot load the applet

    Hello.
    I am trying to use the j2re-1_4_1-win.exe, but it will not load all the way up. A new window will open, but the graphics do not load entirely, including the text fields, rendering the applet useless. I had my pc debugged, tried installing and uninstalling java ad nauseum, but still cannot run the applet. The progress bar will show that the applet is Done loading, but I never get to use it. I have tried using the applet on other machines and succeeded. Any advice? Anyone?

    Determine what the actual error is. The Java Console will have this. In IE, use the Tools menu.

  • JRE is updated but FF won't load the applet to bid on Proxibid site. Safari will, no problem.

    Running FF 3.6. Have updated Java to latest update for Mac OS X 10.6.4. Java is enabled on FF. I have cleared the cache. Nothing I do will let the bidding applet run for live bidding on Proxibid.com. Java works on all other including test sites. If I use Safari there is no problem. In FF it downloads the applet then opens the window asking what program I want to use to open it. Nothing will work. Everyone I know using FF on Mac has this issue. I'd rather not switch browsers.

    You are using a wired computer right, not wireless.  If yes then you need to take more drastic action.
    Try these...
    http://www.savemondo.com/2008/11/21/how-to-unbrick-a-linksys-router/
    or
    http://www.lancelhoff.com/how-to-fix-a-bricked-linksys-router/
    Make sure you have a good valid copy of firmware ready to go.

  • Show progress bar before loading the applet or application

    hi ,
    My application size is large and take some time to load . Now i want that to show progress bar . how can i do this .Please Help me
    sorry for my english.
    Thanks

    Do everything in a seperate thread. Create a progress bar in the main thread, then create a new thread for initializing your app. Once the init is done, hide the progress bar and make your app visible.

  • The applet fails to load. with 'red cross' screen JVM 1.6.19 and above

    After updating the JVM to one of the latest version 1.6 builds, our users started to experience a problem with opening java applets.
    All the users have JVM versions 1.6.0_19 – 1.6.0_26 on Windows 7/2008. The browser is IE8. On the server usually there is IIS7, with ‘Integrated Windows authentication’
    on applet’s virtual folder. Applet’s classes are packaged into a signed JAR file. Both the client and the server are located in the same local area network with no proxy or firewall between them.
    The applet’s website usually belongs to the trusted security zone. When loaded, the applet establishes HTTP connection to the server to get the necessary data.
    When the user tries to open an HTML page containing the applet, there can be the following scenarios:
    1.     The applet fails to load. We’re getting a ‘red cross’ screen. All the HTML elements except of the applet are loaded OK.
    From the IIS log we can see that the loading of the JAR file failed with the error code 401, the user name field in the log for the JAR is empty.
    2.     The java asks for the user name and password showing a popup ‘Authentication required’. At this moment we can see the following message in the Java console:
    network: Firewall authentication: site=/XX.XX.XX.XX:XX, protocol=http, prompt=, scheme=ntlm
    If the user enters the correct credentials, the applet loads OK. Even if the user checks the ‘Save the password in your password list’ checkbox, Java continues to ask for credentials
    on every page reload. It’s worth to note that the company’s external firewall doesn’t get any requests from the applet.
    The problems happen even when the client and the server are located on the same machine, but never happens when we use localhost as the server name in the page URL.
    During investigations we found out the following workarounds:
    1.     Enabling anonymous authentication on the virtual folder always solves the problem.
    2.     Sometimes, changing security zone from ‘Trusted’ to ‘Local intranet’ solves the scenario 2 (‘Authentication required’ popup) problem.
    It’s worth to note that changing the security zone never helps if the page URL contains dots (for example, uses IP address instead the server name).
    3.     Upgrading to IE9 solves the scenario 2 problem partly: Java asks for the credentials only once.

    I have the same issue. I use single sign-on with IIS 7 and Integrated Window authentication on the tomcat virtual folder. The applet jar file is on the root directory of the web application (the same level of index.html). So I use '.' as the code_base to call the applet from javascript.
    So when I launch my web application into a browser, the auto-connection is successfully performed (single sign-on through Upstream, kerberos, remote_user, ...). But when I want to launch the applet in the web application, a new authentication panel (red panel with "authentication required") occurs in order to set credentials (login, password, domain) with the message in the java applet console:
    "network: Firewall authentication: site=myApplicationUrl, protocol=http, prompt=, scheme=ntlm"
    So why the applet doesn't inherit previous credentials in this case ??
    Have you solved this problem ?
    Thanks
    Edited by: 886341 on 20 sept. 2011 08:56

  • Unable to clear java cache and also unable to load JAVA Applets when QTP installed in PC

    Hi,
    I am facing a problem when QTP 11.0 along with Java 6 Update 22 and Java Plugin  installed in the PC. The Java Applets are not being loaded in the webpages, when I try to load it through QTP, but when I try to load the applets manually that is working fine. Can anyone suggest any kind of solution for this. All the setup was being run on 32-bit and 64- bit PC's.
    Thanks in advance,
    Waiting for the reply.

    start the weblogic server with the command startWeblogic. And then start the SOA server from Admin console.This is the issue. For starting servers from console, you need to configure node manager. Start SOA servers from command line using command startManagedWeblogic (as mentioned in Quick Start Guide for BAM server).
    Regards,
    Anuj

  • How to load an applet in different folder??

    Hello, (sorry about my english, I speak spanish)
    I have an applet in :
    E:/ProyectosPrueba/testJSP/classes/testjsp/AppletConfig.class
    and I have a Page JSP (that call it (the applet)) in:
    E:/ProyectosPrueba/testJSP/jspConnectApplet.jsp
    inside this page I have the tag:
    <APPLET
    CODEBASE = "."
    CODE = "testJSP.AppletConfig.class"
    NAME = "SA"
    WIDTH = 120
    HEIGHT = 20
    </APPLET>
    I works in JBuilder 5.0 and inside it, this works well, but when
    I attempt to do this in Internet Explorer doesn't load the applet
    the error is :
    java.lang.ClassNotFoundException: testJSP.AppletConfig
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    Can someone help me??

    Try to write the path to the applet after "codebase". Maybe it will help.
    Ex. <applet code="test.class" codebase="test/classes">
    /A

  • How can i load a applet in a jsp page

    hi ,
    i am chiranjit , i am working in a jsp project . i want to load a applet in a jsp page.previously i had tried this one through <jsp:plugin> but when it goes in cross platform this page unable to load the applet from the serverside.
    if have any solution then pls send the solution in forum.
    thank you.
    chiranjit

    I never tried this... but doesn't the normal html <applet> tag work?

  • Clear the applet from cache

    Hello,
    I use the following html code to open my signed java applet.
    <APPLET CODE="Applet.class" ARCHIVE="applet.jar" WIDTH=100 HEIGHT=100>However if I make some changes into the applet code and open the HTML file in the browser, I see that the applet is being picked up from the applet cache. Thus if users have caching enabled on their systems they will not be able to retrieve the new version that I have made.
    Is there a way to trigger the browser to download not to use the applet from the cache whenever an updated copy is available on the server.
    I need this fix for IE, Mozilla, Netscape..
    Thanks in advance.

    Hello,
    the easiest solution (for me, at least, it was): when you want to reload an applet type x in the java console (it openes when you load the applet; if it doesn't open you may find it in the icons bar at the bottom of your screen) and then reload the applet
    Hope it helps, good luck!

  • Loading an applet in tomcat 4.x

    Hi,
    I have been reading the forums for a while trying to find an explanation to the problem I am having with no success.
    The problem is that I have an applet that has a dynamic number of parameters. The number of parameters is determined by the contents of an application bean which is part of the environment.
    The problem is that I can't get the applet to work using the <applet> tag. It seems that no matter what I set the codebase parameter to, I always get the dreaded "ClassDefNotFound Exception: FacilityApplet" in IE 6.0 or "ClassFormatError: Bad Major Version Number" exception in Netscape 4.79.
    I am using JDK 1.4_0_01 and Tomcat 4.1.12 and my application (oam), context is organized as follows:
    webapps/
    oam
    WEB-INF
    classes
    lib
    applets
    facility
    jsp
    html
    index.html
    I have jarred the applet into a file called FacilityApplet.jar and stored it into the oam/applets/facility directory. The contents of the jar file follows:
    META-INF/
    META-INF/MANIFEST.MF
    FacilityApplet.class
    common/DataEvent.class
    common/Facility.class
    common/Link.class
    DialogBox/
    DialogBox/DialogBox$CloseDialog.class
    DialogBox/DialogBox$CloseWindow.class
    DialogBox/DialogBox.class
    The following is the contents of my jsp page that attempts to load the applet.
    <html>
    <head>
    <!-- Ensure the HTTP Server Does Not Save this Page in Cache -->
    <meta HTTP-EQUIV=Pragma CONTENT=no-cache >
    <title> Status Page </title>
    </head>
    <%@ page import="javaBeans.SettingsBean" %>
    <jsp:useBean id="settings" class="SettingsBean" scope="application" />
    <body BGCOLOR="honeydew" LINK="Blue" TEXT="black" VLINK="Red">
    <h1>
    Application Status
    </h1>
    <%
    // Make sure we have a good bean to work with
    if (settings.getTotalFacilities() != 0) {
    %>
    <applet
    archive="FacilityApplet.jar"
    codebase="http://localhost:8080/oam/applets/facility"
    code="FacilityApplet.class"
    width="300" height="150" >
    <param name="PORT" value="8939" >
    <%
    for (int i = 0;i < settings.getTotalFacilities();i++) {
    %>
    <param name="FAC_<%= i %>" value="<%= settings.getFacilityName(i) %>">
    <param name="STATE_<%= i %>"
    value="<%= settings.getFacility(i).getState() %>">
    <% } %>
    </applet>
    <% }
    else {
    %>
    <h2 align="center"> No Facilities to Display </h2>
    <% } %>
    </body>
    </html>
    Here are the values for codebase that I have tried so far:
    codebase="<%= request.getContextPath() %>/applets/facility"
    codebase="http:localhost:8080/oam/applets/facility"
    codebase="../applets/facility"
    I also expanded the jar file under the applets/facility directory with the same results. I also copied all the class files in the same directory as my jsp file, codebase="facility", with the same results.
    Now, if I use the <jsp:plugin> tag the applet loads with no problems using codebase="<%= request.getContextPath() %>/applets/facility", but that does not allow me to set my applet parameters dynamically. It works fine if I hardcode my parameters inside the <jsp:param> tag. However, I can explain this since it will require the JSP compiler to do multiple passes over the source code, and I don't think it does that.
    My PC has the latest version of the JRE plugin 1.4.X.
    Any help will be greatly appreciated.
    Maizo

    Folks,
    I hate to follow up my own posting but I figured out the problem. My browser was using its own JVM, which of course was an old one.
    Sorry to waste these resources
    Maizo

  • Why the IE cannot open the Applet build by Swing

    Halo, i build a GUI inside an Applet, by using the Java Swing. althoug i have
    installed the Java plug in, and use the HTML converter, but when i try to use the internet explorer to open this applet, the exception is thrown, and it said the
    "Start: didnt initialize the applet" in the IE window.
    and this is the error message shown in the the Java Console:
    java.security.AccessControlException: access denied (java.io.FilePermission anny.gif read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
         at sun.awt.SunToolkit.getImage(Unknown Source)
         at javax.swing.ImageIcon.<init>(Unknown Source)
         at javax.swing.ImageIcon.<init>(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Anyone can help me in this problem? thank you very much

    the image saved with the class file of the applet, and this applet i will
    paste in the server, it is funny when i cut all the codes about the imageicons,
    then the IE can load the applet and show it ,
    and now i use the xx = new ImageIcon("xxx.gif"); to construct an imageicon in the java code of that applet,but it got the problem
    i want to konw whether can use xxx = new ImageIcon(url) will help me to solve this problem, and if it can, how format the url is, for example, the IP of my server is 172.20.54.152, and the image anny.jpg saved in C:/Javaprogram,
    can u tell me what is the solution.
    Thank you very much

  • Loading an Applet Multiple Times

    I'm using the JNLPAppletLauncher to load an applet that is used in several web pages across my site. Whenever I load the applet, the jnlp extension for the url of the JNLP file changes to something slightly different due to authorization logic. The first page that loads the applet functions correctly, and the applet itself functions exactly as it should. However, if I navigate to any other page that has the applet, the load fails with the following error:
    java.lang.IllegalArgumentException: jnlpExtension parameters do not match previously loaded appletSeeing as how the url of the jnlp file is the only extension I'm specifying, is there any way to make the AppletLauncher not flip out whenever it encounters a url that isn't exactly the same as the last one used? In other words, can I specify to the AppletLauncher not to store that information?
    Any help is greatly appreciated.

    Why does authentication change your url? I guess you're sending the session id to the client and it's sending it back in the query string (you're not behind basic auth).
    If it's not and it's because of some other weird thing, an application proxy may work.
    Point to an unprotected servlet and in this servlet:
    - check for user auth (it's still there if user has authenticated),
    - open an HttpURLConnection to the actual jnlp (where you should set the dummy servlet in the href)
    - read it and send it back (headers included) to the client
    No quick idea otherwise.
    Bye.

Maybe you are looking for

  • CD drive dead (but dvd's boot)???

    Help! A few monthes ago my internal CD reader/writer started acting funnny. Some days the door would not open and close, and it would mysteriously not show up in my system profiler. On other days only itunes would work to open and close the doors, an

  • Full resolution without EDID

    With my new VGA cable extension, EDID (vendor info and supported resolutions) isn't detected. In Win7 I could easily work around this by adding a custom resolution from the nVidia control panel, but in X/nvidia-settings, that's not possible. I tried

  • Logic for Hr Report

    Hi All, I have one report that is executing every week by batch job. If the employee position is changed or new hire taken place in the previous week, then it has to fetch that data and send it an email to manager. For example: if the employee positi

  • Mail or gmail? why should i switch?

    so i'm a recent switcher. i'm happy happy happy with the things about macos that enable much greater productivity and pleasure when interacting with my little macbook. so the reason to switch from PC to MAC is very clear. i can easily talk to others

  • Why wont my library transfer?

    Hi, I'm trying to transfer my library from my iPhone onto my new laptop as some songs are not on my laptop..although i dont know why as i copied all my itunes library from my other laptop. Its annoying as i know cant sync my phone with my new laptop.