Creat simple library for javaCard

hi all.
thanks for your reading.
i use NetBean to create library. My project is very simple, just have some variables and some public methods. Now, i built and received 2 files: Mylib.Exp and Mylib.Class.
The question is: how to convert it to JAR file to import from another applet.
I use command line: jar -cvf, but it throw ex:
java.io.FileNotFoundException: mylibrary\javacard (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at sun.tools.jar.Main.run(Main.java:169)
at sun.tools.jar.Main.main(Main.java:1149)
here is my simple code:
package mylibrary;
import javacard.framework.JCSystem;
public class MyLibClass {
     public byte f1 = (byte)3;
     private byte f2 = (byte)2;
     protected byte f3 = (byte)2;
     private byte f4;
public byte f5 = (byte)1;
     byte f;
     public void mPublic(byte a, byte b){
          f = (byte) (f2+f1+f3+f4+f5);
     private void m_private() {
          return;
protected void mProtected(byte a, byte b){
          f = (byte) (f2+f1+f3+f4+f5);
thanks you all
Edited by: hoan_micheal on Jun 16, 2011 3:28 AM

Hi,
This is not a problem with your code. Can you show the complete command you ran? It looks like you do not have permission to write to the output folder.
You should also be able to create a JAR file from NetBeans. As far as I am aware, when you build a project it will create a JAR file in the dist directory.
Cheers,
Shane

Similar Messages

  • HT1660 How do I create a library for a second iPod?

    How do I create a library for second iPod?

    See How to use multiple iPods, iPads, or iPhones with one computer for the official suggestions. In practice a single library with each device syncing to one or more playlists is much the easiest way.
    tt2

  • How can I quit the photos app? It has been trying to create a library for hours but nothing happens. when I try to quit, it won't let me.

    How can I quit the photos app? It has been trying to create a library for hours but nothing happens. when I try to quit, it won't let me. Have just upgraded from iPhotos so don't want to lose any content.

    How can I quit the photos app? It has been trying to create a library for hours but nothing happens. when I try to quit, it won't let me. Have just upgraded from iPhotos so don't want to lose any content.
    Force-quit Photos as recommended by Arsenal1607.
    Make backup of your iPhoto Library and run the iPhoto Library First Aid tools to repair the permissions on your library and rebuild the iPhoto Library.
    To launch the First Aid Tools hold down the  alt/option and the command key simultaneously while double clicking the iPhoto Library to launch the iPhoto Library First aid tools. You'd to hold down both keys firmly and long enough, until the First Aid panel will appear.
    Try both the options "Repair Permissions" and "Rebuild library".  Then try again to migrate the iPhoto Library to Photos by dragging it onto the Photos icon in the Dock.
    Make sure, you have plenty of free storage. Don't try the migration, if you are running out of storage.

  • How create shared Library for JNI

    Please tell me how to create a shared Library for vc6.0. I have created <.h> file of java class. Please Help me.

    This is a duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=676996

  • Create a Library for common code

    I want to create a library of common PHP and JavaScript code. How do I do it? The conceptional problem I am having is how can I access this code across separate sites. Dreamweaver makes avail common code, like mysql code to access a database. I want to set up a similar the library for my code.
    Thanks for you help.

    Here is an example of one Snippet I frequently use.  A double click inserts the following code.
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <!--invoke FANCYBOX on page load-->
    <script>
    jQuery(document).ready(function() {
    $.fancybox(
    '<h2>Hi!</h2><p>Your custom message here...</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis et neque</p>',
    'autoDimensions'    : false,
    'width'             : 400,
    'height'            : 'auto',
    'transitionIn'    : 'elastic',
    'transitionOut'    : 'elastic',
    'overlayOpacity'    : 0.8,
    'speedIn'        :600,
    'speedOut'    :400,
    'overlayColor'    : '#FFF'
    </script>
    Or, if you prefer, you could insert those Snippets into a server-side include file.
    Nancy O.

  • Create simple slidshow for CD or DVD

    This is pretty vague I know but still would like a push in the right direction.
    I own photoshop CS3 but haven't used it for quite a long time.  I want to generate a slideshow from a pile of  images that can be burned to CD or DVD and play on most any settop player (or computer).
    I'm pretty sure this fairly easy to do but from Bridge menu tool.. I don't see that in the list of things you can do with selected prictures.
    Looking up `slideshow' in photoshop help file only leads to direction for using a slide show for viewing pictures inside photoshop.
    Isn't there some starndard to way to create a cd/dvd presentation of pictures in slide show format using Photoshop?

    As far as I know, you can't create a slideshow that plays on a dvd player in Photoshop.
    You can do it using Nero (it will create a slideshow for you before burning it onto cd/dvd)  or if you want to make it the way you like it, use Adobe Premiere Pro/Encore CS4.

  • What is the best software for creating simple forms for the internet? I am currently using an oldversion of Dreamweaver for web authoring.

    I am currently using and old version of Dreamweaver for web content, but need  a simple way of creating forms for my web site. I am not all that web savy...just enough to be dangerous.

    how about coda?

  • Creating Simple transformation for an XML data having deep structure

    Hi
    I have the following XML structure..
    <REQUESTS>
      <REQUESTNAME>REQ123</REQUESTNAME>
      <REQUESTID>1234</REQUESTID>
      <CITY>NEWYORK</CITY>
      <ZIPCODE>123456</ZIPCODE>
    <COMPETENCIES>
       <LANGUAGES>
         <COMPETENCY>
            <SKILL>SAP</SKILL>
            <PROFICIENCY>TEST</PROFICIENCY>
            <SKILL>JAVA</SKILL>
            <PROFICIENCY>TEST123</PROFICIENCY>
    (here we may have any number of records for SKILL&PROFICIENCY...)*
    </COMPETENCIES>
       </LANGUAGES>
         </COMPETENCY>
    </REQUESTS>
    My requirement is to read the above data from an URL and push it into an internal table.
    For this I'm trying to use Simple transformations but I'm facing difficulty in doing this.
    Can you pl. guide me how to create the transformation and the corresponding code for this.
    Best Regards
    Anil

    Hi
    Here is the actual XML structure..
    - <REQUEST>
      <COUNTRY />
      <ADDRESS />
      <CITY />
      <ASSIGNTYPE>IP</ASSIGNTYPE>
      <CHARGETYPE>CH</CHARGETYPE>
      <REMOTEALLOWED>Y</REMOTEALLOWED>
      <SALESRATE>EUR</SALESRATE>
      <SECURITY>NO</SECURITY>
      <TRAVELEXP>Y</TRAVELEXP>
      <MAXDAILYRATE />
      <CREDENTIALS />
      <EXPENDDATE />
      <NEWENDDATE />
      <NEWEXPENDDATE />
      <REPLYBEFORE>2010-11-30</REPLYBEFORE>
      <STARTDATE>2010-01-01</STARTDATE>
      <ENDDATE>2010-12-31</ENDDATE>
      <GCMTYPE>PM</GCMTYPE>
      <GCMLEVELFROM>02</GCMLEVELFROM>
      <GCMLEVELTO>08</GCMLEVELTO>
      <LOCATION>FR43</LOCATION>
      <MOBILITY>04</MOBILITY>
      <ZIPCODE />
    - <COMPETENCIES>
    - <LANGUAGES>
    - <COMPETENCY>
      <SKILL>01106034</SKILL>
      <PROFICIENCY>005103</PROFICIENCY>
      </COMPETENCY>
      </LANGUAGES>
    - <ACTIVITIES>
    - <COMPETENCY>
      <SKILL>01105500</SKILL>                            
      <PROFICIENCY>004507</PROFICIENCY>
      </COMPETENCY>
      </ACTIVITIES>
    - <BUSINESS>
    - <COMPETENCY>
      <SKILL>01105729</SKILL>
      <PROFICIENCY>004605</PROFICIENCY>
      </COMPETENCY>
      </BUSINESS>
    - <INDUSTRIES>
    - <COMPETENCY>
      <SKILL>01105491</SKILL>
      <PROFICIENCY>004901</PROFICIENCY>
      </COMPETENCY>
      </INDUSTRIES>
    - <METHODS>
    - <COMPETENCY>
      <SKILL>01105591</SKILL>
      <PROFICIENCY>004805</PROFICIENCY>
      </COMPETENCY>
      </METHODS>
    - <OFFERINGS>
    - <COMPETENCY>
      <SKILL>01105840</SKILL>
      <PROFICIENCY>005002</PROFICIENCY>
      </COMPETENCY>
      </OFFERINGS>
    - <PRODUCTS>
    - <COMPETENCY>
      <SKILL>01107304</SKILL>
      <PROFICIENCY>004703</PROFICIENCY>
      </COMPETENCY>
      </PRODUCTS>
      </COMPETENCIES>
      <CANDIDATES />
      </REQUEST>
    Here..... <SKILL></SKILL>   <PROFICIENCY></PROFICIENCY>  can be more than 1 entry...
    For this I have created a simple transformation like below..
    I have used the tcode 'XSLT_TOOL '..
    In SE11 I have created a Table type 'ZCOMPETENCIES' which is having  a line type 'ZLANGS'.
    ZLANGS is a structure which has another structure called 'ZCOMPETENCY' and this 'ZCOMPETENCY' is having fields
    SKILL & PROFICIENCY.
    I have used the wizard button which u can find  'XSLT_TOOL '.. and provided the table type ZCOMPETENCIES'  and it has automatically created the following transformation...
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
      <tt:root name="ROOT" type="?"/>
      <tt:root name="COMPETENCIES" type="ddic:ZCOMPETENCIES"/>
      <tt:template>
        <COMPETENCIES>
          <tt:loop ref=".COMPETENCIES">
            <ZLANGS>
              <COMPETENCY>
                <SKILL tt:value-ref="COMPETENCY.SKILL"/>
                <PROF tt:value-ref="COMPETENCY.PROF"/>
              </COMPETENCY>
            </ZLANGS>
          </tt:loop>
        </COMPETENCIES>
      </tt:template>
    </tt:transform>
    I have written following code to get the data
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = gs_file
      CHANGING
        data_tab                = gt_itab
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    GET REFERENCE OF gt_person INTO gs_result_xml-value.
    gs_result_xml-name = 'COMPETENCIES'.
    APPEND gs_result_xml TO gt_result_xml.
    TRY.
        CALL TRANSFORMATION ZTEST_TRAN
        SOURCE XML gt_itab
        RESULT (gt_result_xml).
      CATCH cx_root INTO gs_rif_ex.
        gs_var_text = gs_rif_ex->get_text( ).
        MESSAGE gs_var_text TYPE 'E'.
    ENDTRY.
    Please let me know if you need any further details..
    Best Regards
    Anil

  • Is there an easy way to create simple forms for use in iweb?

    or a template?
    I need to create a reply form on the site I am working on.
    thanks

    After a few days of working on this issue the tutorial is updated to make the form be sent from within the webpage with extra form additions available as well!
    The form is fully customizable for background color or image background, there's no ads or service to sign up for, all you have to do is copy and paste a code into your html and enable cgi and/or php on your host with some additional small tweeks here and there to put it all together. Basically it's the do it yourself way.
    *The form on the tutorial link provided still opens the Email app when the form is submitted but we have tested this method on our other sites using the same procedures mentioned with successful results.

  • I created another library for my moms music, and now i cant find mine anywhere. Help?!

    ive already tried hitting shift while opening so that i can click change library, the problem is, i dont know what to change it to. No matter what i choose, it always opens this new library. Im freaking out! Any help would be amazing!

    The default location for the iTunes library on a Vista system is in:
    C:\Users\[your username]\Music\iTunes\
    After getting into the choose library dialog, if you browse inside there do you find your own library inside there?

  • Create Shared Library for toplink.jar

    I have followed the "How-to: Swap Oracle JDBC Drivers" http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapjdbclib/doc/readme.html and try to do the same for toplink.jar.
    However, when I check with the call oracle.toplink.Version.getVersion() it still return that I'm using 1013 DP4 toplink.
    From the post in Toplink forum Re: Change Toplink library version used on 1013 DP4 it seems that it is difficult, to use another toplink version in 1013 DP4...
    I would like to confirm if that's the case? Any other methods I can try?

    This is a duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=676996

  • What's the fastest way to create simple report for the web?

    I have Developer 6i and Oracle 9I installed.
    If i have a report already done, how can I make it available to users, so they can access them thru an IP or a host?
    can I achieve that just with my developer 6i (report builder) and my database (oracle 9i)???
    If so, how?

    1) pls see
    [     Publishing reports to web  - 10G  ]
    see
    [    All Docs for all versions    ]
    for 9i version of same document
    2) Better to have 9i builder - 9i ias combinations
    (not sure whether other combination is supported or not. but understandably it is best to have same combination]
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Creating a new library for Webpart pages, or wiki pages

    We are using sp2013 in O365, on a site collection that is using the publishing feature.
    We want to create another library for content pages where we can create either Webpart pages or Enterprise Wiki pages.  I can create a new library and add the appropriate content types so that those types of pages are options when creating a new page. 
    But when I open the library and try to create a page based on the "(Enterprise Wiki Page) Basic Page" page layout (or any other page layout content type that I added to that library), the dialog comes up and shows it will save to the "/pages/"
    library (it is shown in the un-editable part of the "URL Name field"), and not in the new library where I initiated the creation request.  When I click save, I get a correlation ID error.
    Am I doing something wrong here?

    Hi ,
    I could reproduce this issue in my SharePoint 2013 Online when I created a new document library and add “Enterprise Wiki Page” content type into the library then create a page using this content type.
    It seems that publishing pages only can be created in the Pages library. And the SharePoint Publishing Infrastructure can only handle a single Pages library per Web site, it's a physical limitation of the software. If you want to create
    multiple Pages libraries, You could create sub webs to do it.
    Also, as there is a Correlation ID about this issue, you can use it to check more information about this issue. However, in SharePoint Online, we could not see the log files, they are controlled by Microsoft. I suggest you create a new thread on Office
    365, there are some backend engineers who can check the log. You will get better help with SharePoint Online.
    Office 365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • How do I duplicate the exact playlists from my iphone 4th gen to my new ipod 4th gen 64gb?  So far I've created a new library for it, duplicated all the apps, books

    I'v been using an iphone 4 (16gb) for a year now, and have just got an ipod touch 4gen, 64gb.  I created a new library for this, and most of what I have managed to transfer everything onto the ipod touch.  However, although all my music has transferred, the playlists have not.  Do I have to transfer them manually?  That is, creating every playlist again, which would be a nuisance since I have 48 playlists and almost 250 pieces.  All the music have been bought from itunes. 
    What I plan to use the ipod for is mainly for books, magazines and itunes U podcasts.  Most other apps and music will be the same on both iphone and ipod.  Both are under my same apple id.  Please help, 'cos I've been searching for an answer on the internet and can't really find one.  Everything else has transferred expect the playlists.

    - Go to settings>Store and sign out and sign into your account.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • Creating a folder for a document library in SharePoint online

    Hello I am looking for a good place to get started on creating a folder for a document library using a powershell script. Thanks in advance for any help.

    Here is a guide to creating folders and items in a document library for SharePoint Server/Foundation: Creating SharePoint Folders
    and Items with PowerShell. You will need to tailor it to your needs as it's a demo for creating 50,000 items.
    That's step 1 and contains the bulk of what you would need to do. Here's an example of connecting to a library in SharePoint Online using CSOM: Office
    365 - PowerShell Script to Upload Files to a Document Library using CSOM. You won't be uploading files, but the parts where you connect and get a list are what you're interested in.
    Now you'll combine bits from both of these scripts:
    1. Connect to SPO
    2. Get your list (looks like you need to first get the site collection and then the site)
    3. Create a folder
    I figure it would look something like this (note I haven't tested this at all):
    #Specify tenant admin and site URL
    $User = "[email protected]"
    $SiteURL = "https://tenant.sharepoint.com/sites/site"
    $DocLibName = "DocLib"$FolderTitle = "Example Folder"
    #Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
    $Password = Read-Host -Prompt "Please enter your password" -AsSecureString
    #Bind to site collection
    $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
    $Context.Credentials = $Creds
    #Retrieve list
    $List = $Context.Web.Lists.GetByTitle($DocLibName)
    $folder = $list.AddItem("", [Microsoft.SharePoint.SPFileSystemObjectType]::Folder)
    $folder["Title"] = $FolderTitle
    $folder.Update();
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

Maybe you are looking for

  • What file are the bookmarks stored in?

    I want to transfer my bookmarks from this computer to another computer. What is the name of the file where the bookmarks are stored?

  • Version Control

    I have RoboHelp HTML Version 7. We use RoboHelp for publishing our procedures; we use our Word documents for making reviews, updates, etc. and then just reimport and republish as necessary. Our company is asking us to use version control on our proce

  • View a image in a web app using scroll bars.

    I am using Dashcode to make a web app and i will be displaying images. How to i display the width of the image I can see the image by scrolling up and down but cannot see the width of the image as i cannot scroll left and right. I need a horizontal s

  • CoverFlow Shows Icons Only

    I have deleted the thumbnails and now all I have are icon thumbnails. (.jpg) Help? Thanks!!

  • Developer license

    Is it possible to download the E-Business Suite with developer license, similar to Databases and Application servers? Please let me know