Java 7: Problems launching applets with jars on "file://" location

Hi,
We are experiencing a problem when updating our client's JRE from Java6 U 21 up to Java7 U 55.
We have developed an Applet which is composed by several JAR files. Some of those JARs must be stored in local drive, and the JAR with the main Java class is stored on server.
Let's supose we have a similar scenario like this:
https://blahblahbah/bar.jar
https://blahblahbah/test.html
C:/foo.jar
The code of test.html:
<embed
  archive="file:///C:/foo.jar"
  cache_archive="bar.jar"
/>
This code works fine on Java 6 and Applet is correctly loaded.
However, with Java 7 a security exception is raised when trying to load JAR files from "file:///" location during Applet launch:
java.lang.SecurityException: Permission denied: file:/C:/foo.jar
    at sun.plugin2.applet.Applet2Manager._loadJarFiles(Unknown Source)
We have tried several tests using a java.policy file which grants all possible permisions:
grant codeBase "file:/C:/foo.jar" {
    permission java.security.AllPermission;
grant {
  permission java.security.AllPermission;
We also tried to low Java's security level to "MEDIUM", with no success.
We finally only managed to run the Applet if we explicity disable the "Next-Generation Plugin" with Internet Explorer 8. However, that's not a suitable solution, and still does not work with Mozilla family browsers.
Eventhought with Mozilla browsers is still not working.
Is there any restrictions in Java 7 that prevents to read jars from being loaded from local drive when launching Applets?
Thanks in advance,

Thank you baftos.
I had read the whole message before posting mine. It's not the same problem. I'm able to run the sample signed applet always having the jar in the same location than the HTML page serving the applet via JNLP:
<jar href="SignedAppletTest.jar" main="true"/>
However, the security exception raises when trying to read that jar from local drive:
<jar href="file://C:/SignedAppletTest.jar" main="true"/>
ExitException[ 3]java.lang.SecurityException: Permission denied: file://C:/SignedAppletTest.jar
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
I have even tried to decompile JNLP2Manager class, without seeing anything useful on that loadJarFiles method
The only way I managed to avoid the problem is unchecking the New Generation Plugin and running the Applet with IE. Not a suitable solution for me at all..

Similar Messages

  • Problem loading Applets from Jar files on 64 bit machine

    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases. The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Below are all of my test results. Can someone provide a suggestion for repairing this? The Windows Server machine is a clients computer I access to it via remote desktop but I can't do much with it though I do have administrator rights. The Windows 7 machine is my development platform so I have been able to do extensive testing on it.
    This problem is presenting in the following environments when trying to load an applet from JAR files in a HTML document using the Applet or Object tag.
    Windows Server 2008 (Intel Chipset)
    Tested Browsers:
    Internet Explorer 9 (32 bit) - Shows it is blocked by default then simply shows an x when loaded from a web page, same result when loading from local drive.
    Windows 7 Home Premium (AMD Chipset)
    Tested Browsers:
    Firefox 6.0.1 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (64 bit) - Java logo shows with spinner and most of the windows desktop manager freezes, keyboard is the only thing that responds so you can alt-tab to another app to regain control of the desktop.
    Chrome (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    The only way I have been able to get a Java applet to run on a 64 bit machine are the following ways.
    Firefox 9 nightly (64 bit) works perfectly! Go Firefox!
    Internet Explorer 9 (32 bit) loading directly from drive (c:\...)
    Chrome (32 bit) loading directly from drive (c:\...)
    Firefox 6.0.1 (32 bit) loading directly from drive (c:\....)
    Can someone please help! I've been fighting with this bug for over a week and I can't find anything that will solve it, I have noticed that in some cases if my jar has very little code in it than it will run on the server, but the minute I start adding things to it the jar won't load anymore.

    jschell wrote:
    rritoch wrote:
    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases.
    To clarify...
    1. You have tried it on 32 bit machine? Exactly which OS?I tested this on Windows Vista Business which is in 32 bit mode and the applets run without any problems
    >
    2. Your only 64 bit tests have involved 2008/Win7?
    If so then I would suspect something with windows not java. Probably permissions.
    The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Yes, I haven't tried running the jars on other operating systems.
    >
    I don't understand that. If you are running on localhost then you should connect to localhost. If running on an IP then you should connect to that. Perhaps you meant that you have tested using both of those?I'm testing using the lan ip address but I'm connecting from the same machine. I've tried localhost and that didn't work so I tried lan ip since that will likely have a different java security context than localhost. At first I was blaming the IIS server but I downloaded the jar directly and using HTTP fox was able to verify that the jar is being sent with the correct mime-type and that the server can upload the jar file without a problem. This leaves me to believe the problem is with Java.

  • URGENT Help for applet with JAR file in Netscape

    I am having Applet with few classes
    Html is in /www directory
    and all class files are in /www/javaclassfiles
    I jared all javaclassfiles with following command
    c:\www\javaclassfiles>jar -cvf sample.jar TaxPaymentAppletForm.class *.class
    where sample.jar is my jar file and TaxPaymentAppletForm.class is the main applet class file.
    THEN I DELETED ALL CLASS FILES & KEPT ONLY SAMPLE.JAR FILE ON SERVER
    My html code is like below:
    <APPLET CODE="TaxPaymentAppletForm" ARCHIVE="sample.jar" CODEBASE="JavaClassFiles" WIDTH=460 HEIGHT=400></APPLET>
    The things are running on IE properly, but not on Netscape. Netscape is giving following error :
    java.io.IOException: <null>
    at netscape.net.URLConnection.connect(Compiled Code)
    at netscape.net.URLConnection.getInputStream(Compiled Code)
    * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.<init>(Compiled Code)
    at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
    at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    # Unable to load archive http://nearbuy_server:90/iras/JavaClassFiles/sample.jar: java.io.IOException: <null>
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    In netscape also it is sometimes running some times not, without any logical reson.
    Any help regarding this is appreciated
    manisha

    Following is the more detailed analysis when applet is running and when not
    On local server, it is running fine on both IE / Netscape
    When I transfered jar file to live server
    On IE it is running for the first time and then onwards not running, If I clear the catch then again applet is running.
    For second time it is giving following error :
    IOException Loading Archive: http://dev1.janusx-collections.com/iras/JavaClassFiles/AppletForm.jar
    java.io.IOException: dev1.janusx-collections.com:80//iras/JavaClassFiles/AppletForm.jar
    at com/ms/net/wininet/http/HttpInputStream.connect
    at com/ms/net/wininet/http/HttpInputStream.<init>
    at com/ms/net/wininet/http/HttpURLConnection.createInputStream
    at com/ms/net/wininet/WininetURLConnection.getInputStream
    at com/ms/vm/loader/JarArchiveSet.loadNextJar
    at com/ms/vm/loader/JarArchiveSet.getResourceBits
    at com/ms/vm/loader/JarArchiveSet.getClassData
    at com/ms/vm/loader/ResourceLoader.getClassData
    at com/ms/vm/loader/URLClassLoader.findClass
    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
    java.lang.ClassNotFoundException: TaxPaymentAppletForm
    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
    ON Netscape it is NOT running at all on from live server and error is as given in above first post.
    manisha

  • Problem accessing applet with images

    I created a JApplet with images and icons in it. (The images are on my C drive). When I add the applet to an html page, and run it, the applet isn't loaded, but I get an IO error saying that I don't have security permission to access the images. Is there someway to switch of this security, or to put the images in a jar file and access the images from the jar file?? Thank you for your help!!

    By default applets can't read files off the hard drive.
    The easiest way to handle this is to put the images and other resources (such as properties files) in the same jar file as the classes, and then use Class.getResource or Class.getResourceAsStream to load them.

  • Problem launching WMP with Tiger??

    HI;
    I have problems launching WMP after installing Tiger on my Ibook!
    I have tried re-installing WMP but that doesnt help.
    Can anyone please tell me how to solve this issue?

    Said,
    I noticed that you've posted this topic numerous times. Did you ever try iFelix's suggestion listed here?
    iFelix, "any new WMP for Mac users?" #14, 06:52pm Aug 20, 2005 CDT
    Brian

  • Autostarting nm-applet with a .service file

    Hello, this is my very first forum post as you can see. Please be gentle.
    I'm trying to get nm-applet to autostart with awesome window manager.According to https://wiki.archlinux.org/index.php/Ne … er#Testing
    NetworkManager applets are designed to load upon login so no further configuration should be necessary for most users.
    but this doesn't seem to be the case for me after enabling NetworkManager.service. I have no issues starting nm-applet w/out the extra stuff designated in the link.
    I created the following service file but I cannot figure out how to get it to load.
    [Unit]
    Description=Start nm-applet in tray panel
    After=graphical.target
    Requires=NetworkManager.service
    [Service]
    Type=forking
    ExecStart=/usr/bin/nm-applet
    [Install]
    WantedBy=graphical.target
    [rob@X200 ~]$ systemctl --failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● start-nm-applet.service loaded failed failed Start nm-applet in tray panel
    Here's the output from journalctl:
    Oct 10 20:44:24 X200 systemd[1]: Starting Start nm-applet in tray panel...
    Oct 10 20:44:24 X200 nm-applet[194]: (nm-applet:194): Gdk-ERROR **: error: XDG_RUNTIME_DIR not set in t
    Oct 10 20:44:24 X200 systemd[1]: start-nm-applet.service: control process exited, code=dumped status=5
    Oct 10 20:44:24 X200 systemd[1]: Failed to start Start nm-applet in tray panel.
    Oct 10 20:44:24 X200 systemd[1]: Unit start-nm-applet.service entered failed state.
    Oct 10 20:44:25 X200 systemd-coredump[195]: Process 194 (nm-applet) of user 0 dumped core.
    In researching the problem I found on the Ubuntu forums I believe someone saying that certain environmental variables have priority over others and are loaded earlier. This led me to believe I should put in the service file a
    After=whatever .service is associated with loading XDG_RUNTIME_DIR
    or perhaps I ought to use the Requires designator? Anyways I couldn't find a working solution after a few days of research and trial and error.
    I've tried different variants for the ExecStart field including a .sh script,
    ExecStart=/bin/sh -c 'nm-applet'
    with no luck.
    Hopefully this is a trivial issue to solve. Thanks for taking your time to help me solve this.

    It is not easy to start a graphical tool with systemd, because it has to know:
    - who is the user that have to run that tool (nm-applet)
    - where (on which display)
    - what dbus session has to register too  (not entirely sure about this)
    - what environment variables will have nm-applet
    So take the easy path and start nm-applet from awesome, or if you're brave, take a look to the service file included here:
    https://aur.archlinux.org/packages/batterylife/
    Last edited by kokoko3k (2014-10-11 18:58:30)

  • Launch Firefox with double-clicked file displayed?

    System: Mac OS X 10.4.11 (Tiger), Firefox 3.6.15
    Used to be that double-clicking an html file icon in Finder or dragging the file icon onto Firefox in the Dock would always launch Firefox with that file displayed in the browser. But in recent versions Firefox now always launches with a blank page or home page (depending on preferences). How can I restore the old behavior?

    You are not going to like this answer but it is the only one.
    You are asking an end user how-to question.  The question and solution are not about scripting. They are about how to use a fundamental feature of Windows.  In Windows file extensions are associated with a default program.  To set that you
    only need to right click the file and select the program that runs it while choosing to set it as the default program.
    This and other issues of how to set up Windows programs can be answered in the forum for your OS.
    Just writing or finding a script that seems to do what you want does not mean you have to correct solution. YOU have to start by asking the correct question in the correct forum.
    Good luck.
    ¯\_(ツ)_/¯

  • Problem signing Applets with sound recording

    I'm working on a project to have live conversation in one to many clients scenario. i have tested the code as a command line app No problem but hell let loose when i converted the code into an applet
    here are the error messages i'm getting
    Exception in startCapture.
    java.security.AccessControlException: access denied (javax.sound.sampled.AudioPe
    rmission record)
    java.security.AccessControlException: access denied (javax.sound.sampled.AudioPe
    rmission record)
            at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
            at java.security.AccessController.checkPermission(AccessController.java:
    546)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at com.sun.media.sound.JSSecurityManager.checkRecordPermission(JSSecurit
    yManager.java:56)
            at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDe
    vice.java:412)
            at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:107)
            at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:139)
            at SoundController.startCapture(SoundController.java:57)
            at Client.startCapture(Client.java:28)
            at GuiClient$StartTalkingButton.actionPerformed(GuiClient.java:39)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:19
    95)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:377)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:236)
            at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
    31)
            at java.awt.Component.processMouseEvent(Component.java:5999)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
            at java.awt.Component.processEvent(Component.java:5764)
            at java.awt.Container.processEvent(Container.java:1984)
            at java.awt.Component.dispatchEventImpl(Component.java:4407)
            at java.awt.Container.dispatchEventImpl(Container.java:2042)
            at java.awt.Component.dispatchEvent(Component.java:4237)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
            at java.awt.Container.dispatchEventImpl(Container.java:2028)
            at java.awt.Component.dispatchEvent(Component.java:4237)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Exception when testing startCapture:access denied (javax.sound.sampled.AudioPerm
    ission record)I have created a policy file
    keystore "file:/C:/Conference/susanstore", "JKS";
    grant codeBase "file: /C:/conference" {
      permission java.security.AllPermission;
    i 've ran it still having the same error
    I 'll gladly appreciate if you could help me on it

    Have you tried signing your applet?
    to sign an applet , you can approach 3d parties like Thawte or you can sign them yourself.
    Package your class file into a .jar, Create your own keystore, sign the jar file using this keystore.
    Then you will be able to open it in a browser.

  • Applet with jar file doesn't work in iframe

    Hi
    I have weired problem.
    I created a applet and work fine in jsp page but i created another jsp page that has iframe and when i try to open this applet in that iframe it doesn't work it just throws error file not found.
    Does anyone has any solution.
    Thanks in advance

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • Problem launching OC4J with HSQL db settings

    jdeveloper auto-creates this xml when launching OC4J, but I get "Invalid Oracle URL specified" even though I know the connection string works elsewhere (e.g. in jdevs connection navigator). Any ides please.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" version="10.1" xmlns="http://xmlns.oracle.com/oracleas/schema">
    <connection-pool name="jdev-connection-pool-hsqldb">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="sa" url="jdbc:hsqldb:hsql://localhost/xdb" password="password"/>
    </connection-pool>
    <managed-data-source name="jdev-connection-hsqldb" jndi-name="jdbc/hsqldbDS" connection-pool-name="jdev-connection-pool-hsqldb"/>
    <native-data-source name="jdev-connection-hsqldb" jndi-name="jdbc/hsqldbCoreDS" url="jdbc:hsqldb:hsql://localhost/xdb" user="sa" data-source-class="oracle.jdbc.pool.OracleDataSource" password="password"/>
    </data-sources>

    Hi,
    Thank you very much for your reply. the previous Exception has gone but now I get the following one.
    Exception: NoClassDefFoundError: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0.
    [Jun 2, 2008 10:57:17 AM] Operation failed with error: Missing class: org.dom4j.DocumentException Dependent class: org.hibernate.ejb.HibernatePersistence Loader: hibernatejpa:1.0 Code-Source: /C:/oracle123/j2ee/home/shared-lib/hibernatejpa/1.0/hibernate-entitymanager.jar Configuration: in /C:/oracle123/j2ee/home/config/server.xml The missing class is available from the following locations: 1. Code-Source: /C:/oracle123/j2ee/home/shared-lib/other_sets/1.0/dom4j-1.6.1.jar (from in /C:/oracle123/j2ee/home/config/server.xml) This code-source is available in loader other_sets:1.0. with bset regards,
    ishaan

  • Problems deploying sounds with jar/game

    I've almost finished my game, for as far as software can ever be finished. Now I've troubles creating a jar file that contains all of the game's resources. Within my IDE (Eclipse) the game finds & plays .wav files correctly using:
    for(int i = 0; i< names.length;i++){     
         ais = null;
         cl = this.getClass().getClassLoader();               
         ais = AudioSystem.getAudioInputStream(cl.getResourceAsStream("sound/" + names));
         clips[i] = (Clip) AudioSystem.getLine(new DataLine.Info(Clip.class, ais.getFormat()));
         clips[i].open(ais);
    But when I start the game using the jar file I get the following exception:
    java.lang.NullPointerException
            at java.io.FilterInputStream.mark(FilterInputStream.java:179)
            at com.sun.media.sound.WaveFileReader.getAudioFileFormat(WaveFileReader.
    java:94)
            at com.sun.media.sound.WaveFileReader.getAudioInputStream(WaveFileReader
    .java:237)
            at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:
    680)
            at field.TestFrame.initSoundContext(TestFrame.java:657)
            at field.TestFrame.init(TestFrame.java:157)
            at field.TestFrame.<init>(TestFrame.java:112)
            at field.TestFrame.main(TestFrame.java:117)
    Exception in thread "main" java.lang.NullPointerException
            at field.TestFrame.initSoundContext(TestFrame.java:672)
            at field.TestFrame.init(TestFrame.java:157)
            at field.TestFrame.<init>(TestFrame.java:112)
            at field.TestFrame.main(TestFrame.java:117)Yes, I've made sure the .wav files are in the jar ;)
    Does anyone know what the problem could be? Help ?-)
    Greetings
    Coen

    Thank you for your reply, but I didn't get any further. I tried you code, but got another error.I use the same code (as described at the top) to load my images, but no problems there (?) I'll try to fix the problem myself, but suggestions would be very helpfull :)
    Exception:
    java.io.IOException: mark/reset not supported
    at java.io.InputStream.reset(InputStream.java:329)
    at java.io.FilterInputStream.reset(FilterInputStream.java:204)
    at com.sun.media.sound.WaveFileReader.getAudioFileFormat(WaveFileReader.
    java:128)
    at com.sun.media.sound.WaveFileReader.getAudioInputStream(WaveFileReader
    .java:237)
    at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:
    680)
    at field.TestFrame.initSoundContext(TestFrame.java:658)
    at field.TestFrame.init(TestFrame.java:157)
    at field.TestFrame.<init>(TestFrame.java:112)
    at field.TestFrame.main(TestFrame.java:117)
    Exception in thread "main" java.lang.NullPointerException
    at field.TestFrame.initSoundContext(TestFrame.java:673)
    at field.TestFrame.init(TestFrame.java:157)
    at field.TestFrame.<init>(TestFrame.java:112)
    at field.TestFrame.main(TestFrame.java:117)
    Thanks in advance for any help offered :)

  • Problem running applet with JRE 1.3.X

    Hi,
    I've developed an applet that works fine with MS JVM and JRE 1.4, but fails under JRE 1.3.x.
    Anyone knows what i've todo to my applet to get compability with JRE 1.3x too.
    Thanks,
    rjc

    Are you compiling under 1.3x and then trying to run in MS and 1.4? If so please tell the errors you are getting when you compile or what you're having problems in.
    You're question is like me saying I have a feild full of volvo's from various years and I have a box of replacement parts from vaious years--but not nessisarally the same years as I have cars, which ones do I need to fix them? (impossible to say isn't it without more info)
    or as I usually say: "My crystal ball is in the shop, please supply specific information for what you want answered."

  • Java card, problems uploading applet to Nokia 6131 NFC using Jcop + Eclipse

    Hi, we are trying to load an applet in this mobil phone ( [Nokia 6131 NFC|http://wiki.forum.nokia.com/index.php/Nokia_6131_NFC_-_FAQs] )
    and NXP people has redirect the support to this forum: [JCOP Tools|http://72.5.124.111/thread.jspa?threadID=5199227&tstart=329]
    So;
    This is the complete command sequence:
    >  /term "winscard:4|OMNIKEY CardMan 5x21-CL 0"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69                                        ...i
    ATR: T=0, T=1, Hist=804F0CA00000030603000200000000
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    jcshell: Unable to select Card Manager or invalid FCI: Unknown Global Platform Java Card.
    Subsequent commands might fail! Inspection might not be possible!somebody knows something about this error?
    Thanks in advance!

    The same!
    - /terminal pcsc:4
    --Opening terminal
    /atr--Waiting for card...
    ATR=3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69                                        ...i
    T=0, T=1, Hist=804F0CA00000030603000200000000
    /select A00000030603000200000000 => 00 A4 04 00 0C A0 00 00 03 06 03 00 02 00 00 00    ................
        00 00                                              ..
    (0 msec)
    <= 3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69 00 00 00 00 00 00 00 00 00 00 00 00    ...i............
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00                ............
    Status: 0x0000
    Error code:     0 (0x0000)
    Offending APDU: 3B8F8001804F0CA000000306030002000000006900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    Wrong response APDU.

  • Java version problem - where is i18n.jar in 1.4

    Hi there,
    I am using the old verion of generic java which requires i18n.jar. This jar file was in 1.3 but not in 1.4, can any one give me some idea what this jar file does. Thanks a lot.

    Read this: http://java.sun.com/docs/books/tutorial/i18n/index.html

  • ".. access denied: ... jnlp read" error in applet with NO .jnlp file!

    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] into a webpage. I'm using ASP.NET with XHTML 1.0. Since I'm embedding it as an object in the html code, it should not cause any issues from that end. Unforunately, when I try I get an error saying "java.security.AccessControlException: access denied (java.util.PropertyPermission jnlp read)". The weird thing is, there is no jnlp file anywhere (including the .jar and codebase).
    I'm able to run it successfully if I change the permissions in my java.policy file, but that solution only works for my local machine.
    The .jar file (the only one) has been signed (I believe). I followed the steps as suggested [http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html], with the exception of contacting VeriSign/Thawte (I wish to have this be self signed).
    This seems like a very odd issue to me, and I'm running out of hair. Can anyone help?
    Here's my html code:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <object
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "[http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab]"
    width="500" height="500">
    <param name = "code" value = "ij.ImageJApplet.class" />
    <param name = "codebase" value = "ImageJA" />
    <param name = "archive" value = "ij-1.44a.jar" />
    <param name="type" value="application/x-java-applet;jpi-version=1.4.2" />
    <param name="scriptable" value="true" />
    </object>
    </div>
    </form>
    </body>
    </html>
    Edited by: Sythion on Jul 13, 2010 2:19 PM

    Sythion wrote:
    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] ..
    I suggest you take up the problem through the [channels suggested by the API developers|http://pacific.mpi-cbg.de/wiki/index.php/Help:Contents].

Maybe you are looking for

  • Diff b/w BDC and LSMW

    hi i want know what is the difference between BDC and LSMW and which is best also tell me BDC and LSMW using for which type data (like master or transactional data) thanka in advance deepak

  • How to do custom miro for import purchase ?

    Hi All I want to know what is the process for doing custom miro for import purchase, In my case for some of the excise elements we get credit, so while doing miro how to take care of this ? Thanks Rashid.

  • Cannot find the Web Content repository in test system under KM Content

    Hi Experts, We have implemented Web Page Composer in our development landscape. I have created a web page with the required content in the development and now wish to transport this web page and its content to our test system. However when I navigate

  • How to know enhancements in the JDK when a new version is released?

    Hello: Java is releasing new versions of its JDK frequently. So, I would like to know what new features bring each version of JDK. I mean, I've just found this page: [http://java.sun.com/j2se/1.5.0/docs/guide/language/]. This page has documentation a

  • How do I transfer a 744MB MOV file from iPad to PC

    I have successfully transferred mov files and photo's from my iPad to PC using Nikon Transfer software, except for one video clip which is 744MB and over 10 mins long. Does anyone know how I can successfully transfer this mov to PC. Is there an alter