Adding a class file to JCOP project

I'm trying to add a class file a JCOP project, I'm using a class folder.
After the load commands I'm getting the following error:
Error code: 6985 (Conditions of use not satisfied)
Offending APDU: 6985
Wrong response APDU.
Is there any special configuration that I'm missing?
Thanks,
Uri

Thank you very much for your help.
>Where are you getting the error ?
I'm getting the error at JCOP Shell after entire load (I think?):
RefLocation.cap loaded (27 byte)
Load report:
434 bytes loaded in 0.9 seconds
effective code size on card:
+ package AID 8
+ applet AIDs 15
+ classes 27
+ methods 129
+ statics 62
+ exports 0
overall 241 bytes
Error code: -4 (Malformed response APDU)
Offending APDU: 69859000
Error message: Invalid response length. Expecting delegated operation response
jcshell: C:/Program Files/eclipse/plugins/com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3/lib/scripts/sim-simul-capfile-autoinstall.jcsh[58]: Wrong response APDU.
jcshell: C:/Program Files/eclipse/plugins/com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3/lib/scripts/sim-simul-capfile-autoinstall.jcsh[58]: Unexpected error - script terminated!
>Did you authenticate to the CM first?
I think the shell does it automatically at the beginning of the script .
> Is your class an applet?
Yes, my class is an applet, but I�m trying to use(import) a regular class.
>are you trying to perform any crypto?
No
>Is there a PIN required to perform any operation?
I don�t think so.
I got the applet and this class from third party. The strange thing is that when I compile and convert it using DOS prompt, I can load it successfully on a SIM, but it doesn�t work in JCOP, does it make any sense? I�m probably doing something wrong�
Thanks again,
Uri

Similar Messages

  • Adding .class files to your project and making them work.

    Ok, im fairly new to java and having trouble understanding how to make importing of .class files work. Im using eclipse 3.2
    I have the files in a directory and I have gone to project->properties->java build path->libraries->add external class folder and pointed it to the correct place.
    Now, I am trying to use some of the classes it provides. I get no errors when creating the object with this code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    Before I did the add external class folder that code would error cause it didnt know what com.ECS was. Now it works fine. My problem is that when I try to use a class, it does not recognize it as a class. After doing the above code I have:
    itemRequest.setSearchIndex("Books");
    its giving me an error on the period, saying: "Syntax error on token(s), misplaced construct(s)". Its not seeing that it is a class, so I can't use it. But when I am creating the object I get no errors. For reference, here is the chunk of code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    itemRequest.setSearchIndex("Books");
    the second line of which errors. So my question is, how do I get it to recognize that the itemRequest is a class when I have imported the .class files to my project already?

    It's working fine. It's just that you have to put your code in a method.

  • How to add class file to the project in netbean

    Hi,
    I am not sure if it is the right place to put the question. I just cannot find the way to add my existing java class file into the project in net bean.
    Anyone can help?
    Thanks a lot

    Look at the "classpath" entry on the Index tab in NB's Help. There are entries there that explain how to add existing classes and libraries to a project.

  • Decompiling Class Files, re-building project and redeploying

    Hi
    I need to make changes to an existing customized iview.
    I have downloaded the par file, but src.core is empty.
    I have then downloaded the jar file which I proceeded to decompile with DJ Java Decompiler.
    Pls can somebody explain to me how I now include these files into a project and rebuild the par file so that I can make changes and test.
    thanks in advance
    Anton Kruse

    hi,
    Check the par file structure here:
    http://help.sap.com/saphelp_nw70/helpdata/en/bb/1bb8428e05c86ae10000000a155106/frameset.htm
    You have jar file in folders:
    lib -- Contains all application library files (JAR) that can be referenced by other portal applications
    private/lib -- Contains all application library files (JAR) that are used exclusively by the application.
    So all <b>src.api</b> classes are put in <b>lib</b> folder, and src.core into private/lib.
    If you are decompiling a jar, you should check from where you got it. (<b>lib</b> or <b>private/lib</b>). So place it back from where you took it.
    Greetings,
    Praveen Gudapati

  • Adding the wrong file into your project.  How do i recover

    Did you ever work on a project and for some reason store audio files in the wrong location or move so your project does not play back correctly.
    I just did that.
    Basically I found the right files and where there located but one of the files I found and added back, seems to be the wrong file. The problem is now that I told logic were to locate the file it saves it automatically. How do I click on a different audio file from another location, and put it in place (same location) of where the change need to be made.
    Hope i didn't confuse anyone.

    You are using 'Save As Project' aren't you? If not, you should, and set the copy options to taste, but certainly your unique files for that project. Also check out the manual about 'Consolidate' Projects.
    Having done that, if you have a region in your arrangement with the wrong audio file, then delete it, and pencil tool-shift-click where you want it to be. A file dialog will open from which you can pick the correct file. It will load where you clicked.
    Be careful when you clean up projects, or select-delete unused from the audio window, in case you delete a file used in another song. Always better to have too many copies than not enough…

  • Custom properties files in enterprise project

    Hi,
    I created a enterprise application containing 3 projects:
    - EAR project
    - EJB project
    - Web project
    And I added a properties file in :
    -EAR project/EarContent/APP-INF/afile.properties
    The content of this file is :
    Host=<path to host>
    Port=389
    And I have a .jar file that uses this properties file that is located in :
    -EAR project/EarContent/APP-INF/lib/afile.jar
    Then I add .jar file, through EAR project --> Right click --> Properties --> Deployment Assembly --> Add --> Archives from workspace
    It is then shown under EAR porject - Deployment Descriptor - Bundled Libraries - Library Directory
    When running the application, the JAR file executes as it should, but it cant find the properties file.
    In the .jar file I have a java file that locates the properties file and elements like this :
    private static final String BROKER_PROPERTY_NAME = "afile";
    brokerResources = PropertyResourceBundle.getBundle(BROKER_PROPERTY_NAME);
    String host = brokerResources.getString("host");
    int port = Integer.parseInt(brokerResources.getString("port"));
    Anyone know where to put the properties file to be able to get this to work?
    Regards, reZer

    Hi, thanks, it works :)
    After Clean, and Publish, and restart , remove, add it runs :)
    Is the Classes directory available when deploying to an production environment? So that I can change the content without the need for å redeployment?
    I could figure out where Weblogic stores deploymentfiles in my domain, EAR, WAR, EJB files, and lib and classes dir.
    -regards reZer

  • Where do these class files go?

    I downloaded a library of code that I'd like to use in my program. It came packaged as some .java files and some .class files. Many of the .class files don't have corresponding .java files. I assume this is because they did not want us to see the source code. Can I still use these class files? I put them in the bin folder of my project (I'm using eclipse) but the code still can't recognize the objects from that class.
    I found this: http://stackoverflow.com/questions/661110/how-do-i-include-class-files-in-my-project-in-eclipse-java
    and I think I did correctly what they said to do. I moved the files to a new folder called lib, and then added lib to the buildpath as a class folder, but Eclipse can't find it.
    Edited by: JFactor2004 on May 19, 2010 11:06 AM

    Need to be under the folder in the package (i.e. com.org.blah....)
    You can also decompile any class file to see what are in there
    use JAD ecplise plug-in or JD (for java >5)

  • Java .class files - Moving the Main Class .class file to a new location

    Novice question....so much so that I hope it's even coherent...
    In a Java program which references many associated .class files (e.g. bicycleMain.class, bicycleSub1.class, bicycleSub2.class, etc....), do the associated .class files always have to be located in the same directory as the Main .class file?
    What I'm getting at is - If I've developed an application consisting of several .class files on my own Windows PC and I want to put the compiled application out on our Windows File Server so that anyone can execute my application, how would I go about doing this?
    Say I put the compiled .class files in H:\PROJECTS\JAVA\COMPILED\, will other people be able to execute the application from their PCs by simply issuing the command line:
    'java h:\projects\java\compiled\bicycleMain'
    Any insights would be very helpful in getting me oriented. Thanks in advance.

    Interesting...so are you saying the command line might look something like this:
    java -classpath h:\projects\java\compiled bicycleMain
    And if I want other people to be able to execute the application without specifying the -classpath option then they would need to manually update the ClassPath environment variable on their individual PCs first?

  • .class files in eclipse

    Hello,
    I am developing a web application in eclipse.After development i need to deploy the changed .class files to the server..
    but i am not getting the .class files in my eclipse are are only .java file present in my application.
    Can any tell me how to get the .class file for the modified .java file.
    Thanks in Advance

    Maybe this is just an issue with the view? The build folder in "Project Explorer" does not display the class files by default. However, it can be customized to display the .class files. Follow these steps...
    http://stackoverflow.com/questions/4163923/what-can-i-do-to-make-display-the-bin-folder-on-eclipse
    The "Navigator" view (open it using "Window" -> "Show View" menu option) also displays the .class files in your project.
    If you're using OEPE and deploying to a WebLogic Server, this tutorial will offer additional information about deployment and the FastSwap configuration "to reload altered classes without disturbing running applications."
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/11/eclipse_intro/eclipse_intro.html

  • Separate folder for class files (eclipse)

    hello :)
    in eclipse how do i specify a different dir to output my class files to ?

    in eclipse how do i specify a different dir to output my class files to ?Project > Properties > Java Build Path: select a Default output folder.
    kind regards,
    Jos

  • Multiple .class files! Help!

    Hey!
    Im reletively new at programming in java so forgive me if this problem seems a little basic to you!!
    Basically im creating an application using JDBC and all seems to be going well except im somehow creating multiple copies of my class files in my project folder... so for example, i have a Main.class and in the folder i now have Main.class, Main$1.class, Main$2.class, Main$3.class etc all the way to Main$8.class. This is happening to all my classes! Any suggestions on what im doing wrong?? Thanks for your time!

    You're not doing anything wrong; all those XXX$i.class thingies, where
    XXX is your class and i is any non-negative number are the compiled
    versions of the anonymous inner classes you used in your XXX class.
    Most likely they're ActionListeners, MouseListeners etc.
    kind regards,
    Jos

  • *Added* code to existing source file, compiled it, and class file shrunk

    Another newbie here. Fortunately, my classpath is ok, so I'm able to compile a .java file.
    I added one line of code (System.out.println) to write the value of a variable to a log. After compiling with javac, I noticed that the resulting [new] class file was smaller than the existing class file. I looked at each of the class files with Textpad. It's gibberish, but I quickly saw that a large block of code was missing in the new class file, even though the size of the source file had been increased.
    There is a difference, however, between how the two class files were created. The existing class file was compiled (along with many others) by exporting an .EAR file from a development environment (WSAD) to the WebSphere Administrator Console. Conversely, I am now compiling the same source file with javac on my machine.
    I suspect that this is the reason why I can add code to a .java file, compile it, and have the resulting class file actually lose code. Even if I am correct, I don't know what to do about it.
    Does anyone have an idea?
    Regards,
    Daniel T.

    Thank you both for your replies. I've read many posts over the past few months, and I know how important it is to provide as much info as possible, when asking a question here. That said, I have another tasty tidbit...
    After replacing the existing (larger) class file with the new (smaller) class file, my application now produces this:
    "*Error 500: LinkageError while defining class*..." [name of class]
    *"...(Unsupported major.minor version 50.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@6bd156d5 Local ClassPath:"*
    ...[the entire classpath]...
    Original exception--- java.lang.UnsupportedClassVersionError:
    I'm guessing that my focus should mostly be on the 'Original exception', and maybe I need to revisit the JRE or JDK or JVM (these terms are somewhat nebulous to me, so please forgive me using them interchangeably) on my machine. For now, I'll just keep trying stuff. Thanks again for the replies!
    Regards,
    Daniel T.

  • Is it possible to get a count of all the class files in a Flash Builder project?

    Is it possible to get a count of all the class files in a Flash Builder project?
    Thanks!

    Resultsets are one per connection unless you have copied them. Do you have lots of connections are you properly reusing them or at least closing and discarding all references?
    See tutorial and Javadoc of API too

  • EJB:Error in adding class file in JAR

    Hi im doing project in EJB
    when i add class files to JAR this type error occurs
    Pls help in need of help

    Generally WEB-INF\classes\ is for compiled classes.
    You should move your java source files to say SecondWap\src\com\hclasses to match up with your package name in your ajva file.

  • Maven problem: class file not added in excecutable after compilation

    Hi,
    I ran into the following issue.
    I created a program, capable of reading an identity card from an electronic card reader. I use maven for dependency management and compilation.
    The libraries used for reading the card reader are not from any maven repository. So I cheated a little bit and added the jar file to the repository myself
    and created a pom file for it too in the repository. I respected the structure groupId - artifactId - version . It is something like
              <dependency>
                   <groupId>be.belgium.eid</groupId>
                   <artifactId>beid35JavaWrapper-win</artifactId>
                   <version>3.5</version>
                   <type>jar</type>
              </dependency>
    The jar file and a pom file are then to be found on that location. When running the program in my development environment, everything runs fine.
    But when I create an executable for this program, the class files for these libs are not added to the created executable.
    questions:
    1/ Do I also need to create the .sha1 file for this. If so: how?
    2/ What are these .sha1 files
    3/ Has anyone written a similar program, but with eid libs from maven? Which ones?
    thanks for any help
    Edited by: user8276126 on Apr 2, 2011 9:07 AM

    try clearing cache and restarting tomcat. If you post the code that you are using to call the methods it will help to find the issue.

Maybe you are looking for

  • Table Control in Module Pool

    hi all, is it possible to update one screen field (which is not a field of d table control) in CHAIN ENDCHAIN of a table control. plz suggest. rgds, Avijit

  • Best practice to integrate the external(ERP or Database etc) eCommerce data in to CQ

    Hi Guys, I am refering to GEOMetrixx-Outdoors project for building eCommerce fucntionality in our project. Currently we are integrating with an ERP system to fetch the Product details. Now I need to store all the Product data from ERP system in to ou

  • DataGrid can accept images...or all can accept JTable(Java)

    1)Flex 4.1 may connect to databases from Sharing Hosting Environments? 2)The concept of cookies exist in Flex/AS3/E4X? 3)DataGrid can accept images...or all can accept JTable(Java)? 4)Why this gives error...?  FlexGrocer.mxml [Bindable]  public var s

  • Sent items on Blackberry

    Hi, Can anyone help. I have a Blackberry Torch and cannot see or synchronise any sent items that were sent from BT Yahoo Mail as they do not show on the blackberry.I have spoken to BT but they are not very forthcoming on this issue. Many thanks Nick

  • Fix for folder selection bug?

    Does anyone know if there is a fix for Dreamweaver CS4 for this problem? When setting site preferences it sets a folder as one level above the folder you have chosen. I saw this problem posted by someone else so I know it's not just my machine. More