How to create License Key in Java ?

Hi,
I need to Generate License keys of my application for different users. How to do it ?
Regards,
Ajay

Ajay Sharma wrote:
I would also like to know what is the standard format of License Key and what it represent ?Standard format according to whom?
I just know that it must be alphanumeric and following formatNo it doesn't. Nothing is stopping you from using your own format.
You seem to be confused with this whole issue. I'd recommend that if you decide to continue with this, get an existing implementation and use that.

Similar Messages

  • How to create AES keys?

    How to create AES keys in Java Card SDK 2.2.1?
    The manual is confusing.

    The oncard building of an AES key is somehow similar to an DES key.
    On applet installation build an AES key by:
    AESKey key = (AESKey) KeyBuilder.buildKey(KeyBuilder.TYPE_AES,KeyBuilder.LENGTH_AES_128,false);
    //Now you can fill the key with random data.
    key.setKey(randomDataof128bitLength,(short)0);For generationg random data see RandomData.
    But you should keep in mind that most JavaCards only support DES /3DES as symmetric cipher. I only know two card that support AES (g&d SmartCafe Expert 64 and Axalto Cyberflex Access 64 K).
    Jan

  • How to create web services in java?

    Hi,
    I am a newbie to java webservices. Can anybody tell me how to create web services in java?
    Any tutorial link or step by step doc would be useful.
    Appreciate your help in this regard.
    Thanks in advance.
    naymo01.

    Creating web services in Java appears to depend highly upon the server you intend to use.
    Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html

  • How to created Costing Key

    Hi,
    How to create costing key and wwhere to assign for value fields.Kindly provide me the Tcodes for the same.
    I will assgin poiints
    Thanks
    Sunitha

    Hi,
    The tcode to create costing key: KE40
    The tcode to assign value fields: KE4R

  • How to Create adf table from java bean

    Hi,
    How to Create adf table from java class (Not from ADF BC).
    Thanks
    Satya

    @vlsn -- you have to follow what shay said.
    Do the following in Model layer ::
    create a table property java class with your columns setters and getters like :
    *public class gridProps {*
    private int sno;
    private String orderNum;
    *public void setSno(int sno) {*
    this.sno = sno;
    *public int getSno() {*
    return sno;
    *public void setOrderNum(String orderNum) {*
    this.orderNum = orderNum;
    *public String getOrderNum() {*
    return orderNum;
    Create another table java class which will populate the values to your column values and return the collection :
    *public class gridPopulate {*
    private  List<gridProps> gridValues ;
    *public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
    *if (valuesToSet == null) {*
    return gridValues;
    gridValues = new ArrayList<gridProps>();
    if(btnValue.equals("completeBtn"))
    return gridValues;
    for(ArrayList<String> tempArr:valuesToSet)
    gridProps gp = new gridProps();
    gp.setSno(Integer.valueOf(tempArr.get(0)));
    gp.setOrderNum(tempArr.get(1));
    return gridValues;
    Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
    Thanks.(My jdev version 11.1.1.5.0)

  • How to run .jar on linux & how to create .jar file using java?

    hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
    thanks in advance.

    Look at the manual page for jar:
    # man jar
    Also you can run them by doing:
    # java -jar Prog.jar

  • How to transfer license key from Windows to Mac for adobe photoshop lightroom 5?

    how to transfer license key from Windows to Mac for adobe photoshop lightroom 5?

    You can download from this link and validate with your serial number. You can run LR5 on both machines.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5856

  • How to Upload License Key File of MiniSap to SAP System ?

    Hi,
    I have received the license key for MiniSap. I have downloaded the license key file to my local system. Please tell me how to upload this file to the SAP system. I am using Windows XP (SP2) and the MiniSap edition is 6.10 WA1.
    I have to tried to directly enter the license key through transaction code Slicense but got the error "Incorrect Parameter Specified". I also tried to install through OS level but even could not do so. I have ordered key 5 times, none works on either SAP level or the OS level.
    Somebody told me to upload the file, Please Guide me how to upload license key file to the SAP System.
    Thank You
    Best Regards,
    Ryan

    Very late into the reply. But I am sure someone will run into this issue again -
    In windows cmd prompt, navigate to c:\mbs.
    Then type saplicense.exe -install then follow the prompt.
    NOTE: If you get the following error -
    C:\MBS>saplicense.exe -install
    *** SAPLICENSE (Release 46D) ERROR ***
        ERROR:   Can not set DbSl trace function
        DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
        RC-INFO: error loading dynamic db-library - check environment for:
                 dbms_type = <db-type>  (e.g. ora)
                 DIR_LIBRARY = <path to db-dll>  (e.g. /usr/sap/SID/SYS/exe/run)
    Type"C:\MBS>dbenv.cmd", once it is done. simply retype
    saplicense.exe -install then follow the prompt.
    Good Luck.
    T.H.

  • How to create sub domain using java ?

    how to create sub domain using java ?
    for example:
    name1.domainname.com
    name2.domainname.com
    is it possibe ?

    You don't do that using Java.
    Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html].

  • How to create webservice in Webdynpro java

    Hi Experts,
          I need to develop one application in Visual Composer.Since VC doesn't support coding so i need to create Webservice in webdynpro java and use that webservice in VC.Can any one of you please suggest how to create Webservice in Webdynpro Java.
    Regards,
    Prasanna.

    Hi prasanna,
    Refer this links.
    /people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
    BAPI Exposed as Web Service
    Connect R/3 from Java web application
    Web Dynpro integration with R/3
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/frameset.htm
    Regards,
    karthik.

  • How to create manual key for AES with 256 key size

    we are just finding Different Approch for secure Key Genration and Store.
    For security purpose which way would be secure to store key in database and retrive that key.
    And can u tell me how to create secure maual key.
    Database user has access they should not able to find the what key we are using .
    Anybody has idea.

    1) Use 'keytool' with option -genseckey
    2) Use SecureRandom and store in a Java Keystore.
    3) Use a Secure Random with something like http://www.strongkey.org/
    4) Use hardware encryption such as produced by nCipher and others.
    There are many other approaches and I would suggest that you bring in an expert to advise you.

  • How to create hot key?

    Hi all,
    I'm creating an application by using the J2SE v 1.4.2_10 SDK with NetBeans 4.1 Bundle. I have created 4 button and handles event each. I would like to create a hotkey for each button, "F2" key for jButtton2, "F3" key for jButton3, "F8" key for jButton4, "F1" key for jButton5, once i click on the key, the event will be triggered and the coding inside will be executed.
    Actually I have read through a few including How to Write a Key Listener, How to Write a Component Listener, How to Write an Action Listener, How to Use Actions, How to Use Key Bindings... but i really not so clear about that and don't know how to apply that into my task... Hope someone can help me...Thanks
    The following is part of my coding...
    * RegisterStudent_ADD.java
    * Created on November 15, 2005, 11:12 PM
    import java.awt.*;
    import java.sql.*;
    import javax.swing.*;
    import java.lang.*;
    public class RegisterStudent_ADD extends javax.swing.JFrame {
        /** Creates new form RegisterStudent_ADD */
        public RegisterStudent_ADD() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jDialog1 = new javax.swing.JDialog();
            jOptionPane1 = new javax.swing.JOptionPane();
            jLabel7 = new javax.swing.JLabel();
            jLabel6 = new javax.swing.JLabel();
            jLabel5 = new javax.swing.JLabel();
            jLabel4 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jLabel8 = new javax.swing.JLabel();
            jTextField2 = new javax.swing.JTextField();
            jTextField3 = new javax.swing.JTextField();
            jTextField4 = new javax.swing.JTextField();
            jTextField5 = new javax.swing.JTextField();
            jButton5 = new javax.swing.JButton();
            jSeparator2 = new javax.swing.JSeparator();
            jLabel1 = new javax.swing.JLabel();
            jSeparator1 = new javax.swing.JSeparator();
            jButton2 = new javax.swing.JButton();
            jButton3 = new javax.swing.JButton();
            jButton4 = new javax.swing.JButton();
            jLabel3 = new javax.swing.JLabel();
            jDialog1.getContentPane().setLayout(null);
            jDialog1.getContentPane().add(jOptionPane1);
            jOptionPane1.setBounds(0, 0, 262, 90);
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            setTitle("Register Student - ADD");
            jLabel7.setText("Student Phone No");
            getContentPane().add(jLabel7);
            jLabel7.setBounds(5, 180, 150, 14);
            jLabel6.setText("Student Address");
            getContentPane().add(jLabel6);
            jLabel6.setBounds(5, 155, 150, 14);
            jLabel5.setText("Student IC# ");
            getContentPane().add(jLabel5);
            jLabel5.setBounds(5, 130, 150, 14);
            jLabel4.setText("Student Name");
            getContentPane().add(jLabel4);
            jLabel4.setBounds(5, 105, 150, 14);
            jLabel2.setText("Student Code");
            getContentPane().add(jLabel2);
            jLabel2.setBounds(5, 80, 150, 14);
            jLabel8.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
            getContentPane().add(jLabel8);
            jLabel8.setBounds(130, 75, 160, 19);
            jTextField2.setColumns(8);
            jTextField2.setName("");
            getContentPane().add(jTextField2);
            jTextField2.setBounds(130, 100, 160, 19);
            jTextField3.setColumns(8);
            jTextField3.setName("");
            getContentPane().add(jTextField3);
            jTextField3.setBounds(130, 125, 160, 19);
            jTextField4.setColumns(8);
            jTextField4.setName("");
            getContentPane().add(jTextField4);
            jTextField4.setBounds(130, 150, 340, 19);
            jTextField5.setColumns(10);
            jTextField5.setName("");
            getContentPane().add(jTextField5);
            jTextField5.setBounds(130, 175, 160, 19);
            jButton5.setText("F1-Retry");
            jButton5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton5ActionPerformed(evt);
            getContentPane().add(jButton5);
            jButton5.setBounds(5, 34, 90, 23);
            getContentPane().add(jSeparator2);
            jSeparator2.setBounds(0, 30, 800, 2);
            jLabel1.setText("Register Student");
            getContentPane().add(jLabel1);
            jLabel1.setBounds(5, 10, 150, 14);
            getContentPane().add(jSeparator1);
            jSeparator1.setBounds(0, 60, 800, 2);
            jButton2.setText("F2-NxRec");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            getContentPane().add(jButton2);
            jButton2.setBounds(100, 34, 90, 23);
            jButton3.setText("F3-PreRec");
            jButton3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton3ActionPerformed(evt);
            getContentPane().add(jButton3);
            jButton3.setBounds(195, 34, 90, 23);
            jButton4.setText("F8-Save");
            jButton4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton4ActionPerformed(evt);
            getContentPane().add(jButton4);
            jButton4.setBounds(290, 34, 90, 23);
            jLabel3.setText("mode : ADD");
            jLabel3.setBorder(new javax.swing.border.TitledBorder(""));
            getContentPane().add(jLabel3);
            jLabel3.setBounds(680, 3, 100, 25);
            setBounds(0, 0, 800, 600);
        // </editor-fold>
        private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
    ......//some coding here.
        private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                             
    ......//some coding here.
        private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    ......//some coding here.
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    ......//some coding here.
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new RegisterStudent_ADD().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JButton jButton5;
        private javax.swing.JDialog jDialog1;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JLabel jLabel5;
        private javax.swing.JLabel jLabel6;
        private javax.swing.JLabel jLabel7;
        public javax.swing.JLabel jLabel8;
        private javax.swing.JOptionPane jOptionPane1;
        private javax.swing.JSeparator jSeparator1;
        private javax.swing.JSeparator jSeparator2;
        private javax.swing.JTextField jTextField2;
        private javax.swing.JTextField jTextField3;
        private javax.swing.JTextField jTextField4;
        private javax.swing.JTextField jTextField5;
        // End of variables declaration
    }Ning.

    Use the Action architecture (http://java.sun.com/products/jfc/tsc/articles/actions/):
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.KeyStroke;
    public class HotKeyComponent extends JPanel {
         public static void main(String[] args) {
              HotKeyComponent c = new HotKeyComponent();
              UselessAction a1 = new UselessAction("Action 1", "action.1", KeyStroke.getKeyStroke("F1"));
              UselessAction a2 = new UselessAction("Action 2", "action.2", KeyStroke.getKeyStroke("F2"));
              UselessAction a3 = new UselessAction("Action 3", "action.3", KeyStroke.getKeyStroke("F4"));
              c.addButton(a1);
              c.addButton(a2);
              c.addButton(a3);
              JFrame frame = new JFrame("HotKey Test");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setBounds(100, 100, 400, 300);
              frame.add(c);
              frame.setVisible(true);
         public void addButton(Action action) {
              Object command = action.getValue(Action.ACTION_COMMAND_KEY);
              KeyStroke stroke = (KeyStroke)action.getValue(Action.ACCELERATOR_KEY);
              getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(stroke, command);
              getActionMap().put(command, action);
              JButton button = new JButton(action);
              add(button);
         static class UselessAction extends AbstractAction {
              public UselessAction(String name, Object actionCommand, KeyStroke stroke) {
                   putValue(Action.NAME, name);
                   putValue(Action.ACTION_COMMAND_KEY, actionCommand);
                   putValue(Action.ACCELERATOR_KEY, stroke);
              public void actionPerformed(ActionEvent actionEvent) {
                   System.out.println("actionPerformed " + getValue(Action.NAME));
    }The example contains three buttons. You can either click them, or press the key which is mapped to an Action.

  • How to load license key

    I installed and configured vPostgres with a trial version and now I have a license key that I would like to apply without re-installing vPostgres. Is that possible, and if so, how?

    Hi Mark,
    Thanks for your question.
    Page 23 of the vFabric Postgres User Guide  has it.
    https://www.vmware.com/pdf/vfabric-postgres-91-user-guide.pdf
    Quote:
    Add a License KeyThe vFabric Postgres database supports using a serial number in a file that you create in the virtual machine
    (local license) and validating the license by communicating with the vFabric Suite license server (server-based
    license).
    You can install a local vFabric Postgres serial number in the guest operating system of the virtual machine or
    virtual appliance.Procedure1 Log in as the root user.
    2 Use your valid license key to create the
    /etc/opt/vmware/vfabric/vf.vpg-serial-numbers.txt file, as in the following example.# echo "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX [quantity=1, expiration=Permanent ]"
    >> /etc/opt/vmware/vfabric/vf.vpg-serial-numbers.txt3 Change the group and file permissions.# chgrp vfabric /etc/opt/vmware/vfabric/vf.vpg-serial-numbers.txt
    # chmod 640 /etc/opt/vmware/vfabric/vf.vpg-serial-numbers.txt
    If vFabric Postgres does not find this file, it will attempt to use the vFabric license server. If the license server
    does not respond, the vFabric Postgres server uses the remainder of the evaluation license if one exists.
    The license key is picked up when the database is restarted. So either you can reboot the appliance or just restart the service as follows
    # service aurora_mon stop
    # service aurora_mon start
    If you have more questions let us know.
    Regards,
    Jignesh

  • How to create a class using java script..

    Hi all,
    Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
    If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
    Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
    Thanks
    Avis_su
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <SCRIPT language = "JavaScript">
    <!--
    //Created classes
    class book
    var title: String;
    var author:String;
    function author()
    doucument.write("Author is " +this.author);
    function tile()
    doucument.write("Title is " +this.title);
    function printall()
    var counter = 0;
    function author();
    function title();
    var chapters = Array[String];
    for(chapter in this chapters)
    counter++;
    document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
    var thisbook = new book()
    thisbook.author = "Sivagami";
    thisbook.title = "MS in CS giude";
    thisbook.chapters = new Array[10];
    thisbook[0] = "Prepare to Excell in all ";
    thisbook[1] = "Learn to be happy";
    thisbook[2] = "Learn to be healthy mentally emotionally physically";
    thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
    thisbook.printall();
    //-->
    </script>
    </body>
    </html>

    Run this program to get your answer:
    public class AnswerToYourPost {
    public static void main(String args[]) {
    System.out.println("TRUE/FALSE: This question
    ion belongs on a Java forum.\n"
    + "ANSWER: " + ("Javascript" == "Java"));
    }Since when do we compare objects for equality using operator == ?

  • How to create a key figure in SNP plannignbook which generate FA type order

    Hello
    trying to create a Key Figure in SNP planning book which generates FA type orders
    could kindly suggest how to do it?
    thanks
    elena

    Hi,
    You would be having different key figures in SNP. The type of orders that you see in Key figure is driven by type of categories or category group that you assign in planning area to each key figure. You can modifiy these cateogry groups in IMG settings.
    When you manually create a forecast through a report then automatically you will see those orders in key figures where you have assigned the category FA.
    Hope this helps.
    Regards
    Alhad

Maybe you are looking for