Signing the java application

Hi,
I have written an application in java6 and created a exe wrapper using jsmooth. Every thing is working fine. When I run my application, I gets prompted for "authorized exe". So I need to signing my exe.
My question is How can I do code signing for my application
a). Either I sign the jar and then creating exe
b). Or I need to sign the exe
Thanks

JL.Nayak wrote:
Hi,
I have written an application in java6 and created a exe wrapper using jsmooth. Every thing is working fine. When I run my application, I gets prompted for "authorized exe". So I need to signing my exe.
My question is How can I do code signing for my application
a). Either I sign the jar and then creating exe
b). Or I need to sign the exeThat depends on what you want to achieve. If some Java mechanism tells you that you need to run signed code, then you probably need to sign the jar files, if Windows or some other software doesn't allow you to run unsigned code, then you probably need to sign the exe file.
Anyway we'll need a lot more information (and especially more accurate information) to be able to help you 'I gets prompted for "authorized exe"' is not useful information post the exact message you get and what exactly you did before that message popped up.

Similar Messages

  • Any idea how the java application can get the physical memory?

    Hello, everyone
    Any idea how the java application can get the physical memory?
    thanks in advance

    I believe what yo intend to do is forbidden, but here
    my answer.
    when you start your application you can give your VM
    the entire memory of your pc. like this this memory
    is completly under your control.* headdesk *

  • To run the java application without jdk package

    i would like to know whether possible to make the java .class file as .exe file to run in window environment without the help of jdk package.....if the answer is yes,,,,,is it going to use the jvm???is it come together with window os or not and start from which windows version?? or do we need to use the jre??? actually i would like to make installation package to install an application in windowsxp....i know how to do that one in vb and i've done that one before using visual studio 6.0.....is there any possible way....but please explain in easy words and way coz i might not understand if too technical...nobody can help me in my college,,,even lecturers.....thanks a lot

    i would like to know whether possible to make the java .class file as >>.exe file to run in window environment without the help of jdk >>package.....Yes it is possible, there are many tools like one mentioned above to convert your java .class program to .exe and you dont need jdk for that, though you will need JVM
    if the answer is yes,,,,,is it going to use the jvm???Yes it needs a JVM
    is it come together with window os or not and start from which windows >>version?? You need some tool like PJ2Exe or one mentioned above to convert it to .exe, it wont be available with OS.
    or do we need to use the jre???Yes you will need to install JRE for the JVM
    actually i would like to make installation package to install an >>application in windowsxp....i know how to do that one in vb and i've >>done that one before using visual studio 6.0.....is there any possible >>way....Yes it is possible,
    Make a .exe of your application and using VB make a setup file which takes care of installing JRE as well as your application.
    Regards
    Rohan

  • Would the java applications be affected if change verison of Java 2 SDK

    This would be a very urgent information for me. Thanks a lot if you could help!!! :
    If the source codes I want to reuse is previously developed and tested with Java 2 SDK, Standard Edition (1.2.1_04) Production Release for Solaris, could I directly reuse them with Java 2 SDK, Standard Edition 1.3.1 for Windows? If not, what could I do to make the old Java application with Solaris to be able to run with Windows?

    If you application is pure Java (e.g. not running external programs or using JNI), then it should run w/o changes regardless of the platform. Of course, platform specific bugs may affect reality.

  • Formate of an exe generated by the java application

    I want to read an .exe file generated by a java application through C++ but i don't know the formate of that file. when i open the file in text editor i can't see anything but the symbols.
    Can anyone out there tell me what will be the file formate of .exe generated by java application or any other way out

    Let me tell u some functionality of this application as i only have the jar file of this project.
    It is a graphical application just like MS Paint but it only draw text with different colors, change background color etc.
    i also generate some code of this project through a tool which convert .jar file to java code.
    As i don't know much about java so i can't able to understand completely this code.
    I am copying the code of action lister of open file menu....
    if (e.getSource() == openMenuItem) {
              ExampleFileFilter ssfFilter
              = new ExampleFileFilter("ssf", "Sedao Scene Format");
              chooser.setFileFilter(ssfFilter);
              if (System.getProperty("PROPERTY_APPLICATION_KEY")
              == "qc2.jar") {
              if (getApplicationMode() == 0) {
                   if (System.getProperty("PROPERTY_LAST_SCENE_DIR")
                   != null)
                   chooser.setCurrentDirectory
                        (new File(System.getProperty
                             ("PROPERTY_LAST_SCENE_DIR")));
                   if (chooser.showOpenDialog(this) == 0)
                   open(chooser.getSelectedFile(), false);
              } else if (!((SchedulePanel) schedulePanel).openSchedule())
                   JOptionPane.showMessageDialog
                   (this,
                   "There was an error loading the schedule file. please check it is a valid schedule file.",
                   "Error Loding Schedule", 0);
              } else if (System.getProperty("PROPERTY_APPLICATION_KEY")
                   == "Overlay.jar") {
              if (getApplicationMode() == 0) {
                   int returnVal = chooser.showOpenDialog(this);
                   if (returnVal == 0)
                   open(chooser.getSelectedFile(), false);
              } else if (getApplicationMode() == 1) {
                   boolean result
                   = ((SmartScheduleDesigner) schedulePanel)
                        .openSchedule();
                   if (!result)
                   JOptionPane.showMessageDialog
                        (this,
                        "There was an error loading the schedule file. please check it is a valid schedule file.",
                        "Error Loding Schedule", 0);
              chooser.removeChoosableFileFilter(ssfFilter);
         }

  • How to access the mapping of Groups and Roles in the JAVA Application

    We have mapped the EJB roles with the groups through the Visual Administrator. We have developed the SSO. We have developed the application through which we are creating the user and role and mapping that role with the created user. The created role is saved in some LDAP directory. The second application in which ejb methods are mapped with some security roles.The LDAP roles we are getting in Netweaver as groups and we can perform the mapping of the deployed ejb roles with the group.Now for the logged in user we want to get the roles mapped with it so that we can give/deny the access to the methods from EJB as per the role of that user .How we will get the access to the mappings of the roles with the group in the application, if I know the LDAP roles mapped with the user (since these roles are accessible as groups in the NetWeaver)
    For e.g.  From application created the user with the role as "manager". This role is stored in iPlanet directory.
    This directory is mapped in the Netweaver.The manager role is displayed as the group in the Netweaver.
    Created the EJB application with the method "displayTheAccountDetails() with the role as "ManagerRole"
    This role is mapped with the manager group. Now we are having the details about the logged in user and the LDAP roles mapped to it (maneger role). How I will get the access to the details that for this group which ejb role is mapped in the application. So depending on that I can allow/deny the access to the ""displayTheAccountDetails()" method to the logged in user.

    Do you, guys, work together?
    See the last answer in this thread: How database works in UCM?

  • Regarding executing the java application

    Exception in thread "main" java.lang.UnsupportedClassVersionError: Hello (Unsupp
    orted major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

    49.0 is the java.class.version of Java 5.0 -- meaning you code was compiled by a version 5.0 compiler (or later). The fact that you can't run it shows you are trying to use an earlier version of the JRE. Try this:
    java -versionThe solution is to make sure your javac.exe and java.exe match.

  • Running single instace of the java application

    Hi,
    I developed a swing based application in java. I am running it through the executable jar. Each time clicking on the jar file it opens the new instance of the appliction.
    But I want to open the single instance of the application i.e. If the application is running , then user tries to open another instance it should be display the error or running application only like yahoomessenger,notepad,etc.
    Please tell me how it is done in java. send aly sample code or resources regarding this.
    Thanks
    in advance

    use jni and access java PID... etc etc it is long way to do that... i think easiest way locking a file and whenever jar runs has to check file whether it is locked or not... if the file is locked, application quits.

  • Executing jar command from the java application

    Hi All,
    In my application i want to create a jar file with the existing class @ Runtime and want to download . But i tried to execute the jar command via Process.getRuntime, it throws IOException. Please guide me or give the solution

    PavithraKarthikeyan wrote:
    Please guide me or give the solutionQuestion your need for this. Why do you think you need to create the jar file.
    P.S. The jar command is only available if the user has the JDK installed so if he has only the JRE installed then you have a problem using Runtime.exec(). There are classes (java.util.jar.JarFile et al) that will allow you to jar files using Java code.

  • How to "Refresh" the Java application

    I have made a time stamp that will display the current time. The following code are in the MyFrame Class. But I want to refresh the time stamp so that it can continuously display the current time every second. How can I do this? Thank you.
    void jTime_actionPerformed(ActionEvent e) {
            date.time();
            date.setTimeStamp(jTimeLabel);These are the methods in the ClsDate Class.
    public void time()
        GregorianCalendar calendar = new GregorianCalendar();
        Hour = +calendar.get(calendar.HOUR);
        Minute = +calendar.get(calendar.MINUTE);
        Second = +calendar.get(calendar.SECOND);
      public void setTimeStamp(JLabel T4)
        T4.setText(toString());
      public String toString()
        return (Hour + ":" + Minute + ":" + Second);
      }

    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.Date;
    import javax.swing.*;
    public class TimerExample implements Runnable {
        private JLabel timeLabel;
        private ActionListener al = new ActionListener() {
            DateFormat df = new SimpleDateFormat("HH:mm:ss");
            public void actionPerformed(ActionEvent evt) {
                timeLabel.setText(df.format(new Date()));
        @Override public void run() {
            timeLabel = new JLabel("__:__:__");
            new Timer(1000, al).start();
            JFrame f = new JFrame();
            f.getContentPane().add(timeLabel);
            f.pack();
            f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        public static void main(String[] args) {
            EventQueue.invokeLater(new TimerExample());
    }

  • Help on accessing tables of SAP from the Java Application

    Hi All
    I want to access some tables available in SAP through my Java program.  Do I have to write any code for database connectivity or straightaway I can write SQL statements in my Java code?
    Can anyone please suggest the sample code for this?
    Thanks in Advance,
    Vijay.

    the above one is with out connection pool, check this with connection pool.
    import com.sap.mw.jco.*;
    public class JcoTest {
    private static JCO.Client theConnection;
    private static IRepository theRepository;
        private static final String POOL_NAME = "myPool";
    public static void main(String[] args) {
        JCO.Pool connPool = JCO.getClientPoolManager().getPool(POOL_NAME);
        if (connPool == null) {
          JCO.addClientPool(POOL_NAME,
                            5,      //number of connections in the pool
                            "client",
                            "username",
                            "paswword",
                            "EN",
                            "hostname",
                            "00");
            theConnection = JCO.getClient(POOL_NAME);
      retrieveRepository(); 
      try {
      JCO.Function function = getFunction("RFC_READ_TABLE");
      JCO.ParameterList listParams = function.getImportParameterList();
      listParams.setValue("BSAUTHORS", "QUERY_TABLE");
      theConnection.execute(function);
      JCO.Table tableList = function.getTableParameterList().getTable("DATA");
      if (tableList.getNumRows() > 0) {
       do {
        for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
          JCO.Field tabField = fI.nextField();
          System.out.println(tabField.getName()
               + ":t" +
               tabField.getString());
         System.out.println("n");
       while (tableList.nextRow() == true);
      catch (Exception ex) {
       ex.printStackTrace();
      JCO.releaseClient(theConnection);
    private static void retrieveRepository() {
      try {
       theRepository = new JCO.Repository("saprep", theConnection);
      catch (Exception ex)
       System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
        try {
             return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
        catch (Exception ex) {
         ex.printStackTrace();
          return null;
    Regards
    vijay

  • How to deploy the Java Application?

    I just completed a small application using JDeveloper323,
    can i to deploy it into to Oracle Database(8.1.6)?
    I want to use B/S application architecture,from Browes to run the application.
    how?
    appreciate you help.
    null

    Hi Amarys,
    If you have developed the PAR file in NWDS then you can deploy the PAR in the server with NWDS ( [Check Required Settings |NWDS 7.0 does not deploy PAR;) or in server directly (system administrator > support >> portal runtime >> administration console)
    Best Regards
    Arun Jaiswal

  • How to pass Key Event from command prompt to the java application

    If iam running a application that displays JFrame when i pressed CTR+C at the command prompt i.e console window please let me know how can it be passed to the JFrame ie application window

    I doubt that you can pass Ctrl+C to the application since the application is terminated by this key combination.
    You would try adding a WindowListener or may use a shutdown hook to capture the termination of the JVM.

  • How to execute *.BAT file from  the Java Application

    Hello to all.
    I wants to run *.BAT file form my applicaion.
    Can u give the code of that two-four line,please
    Wating four your replay.
    Yours Friend
    Bhavin Shah.....

    pr = rt.exec("cmd.exe /c start " + yourProgramName)The exec() method executes the command you specify in the argument and returns a process. In this example, it's telling Windows to run "yourProgramName".
    HTH

  • Is it possible to put the java classes of an application and run?

    Hi All,
    Please excuse me if this question seems meaningless / laughable.
    We get java class files by compiling the source code with java compiler. To run the application, classpath can be set to the folder where the class files are stored and then run the main class.
    Now the question is, is it possible to read the class files to RAM and then run the application. I highly appreciate your help.
    Thanks in advance.
    Chinnaswamy

    You could
    1.) copy the class files to a ramdisk
    2.) write another class loader that deletes the class files after loading >them from ram
    but all of this is probably not necessary.
    What exactly would you like to achieve by doing this? Thanks, JoachimSauer.
    The idea I have in mind is to first read and store the java class files in C/C++ code and then while running the C/C++ code, read & put the java classes into RAM and run the java application.
    This way the decompilation problem can be alleviated for valuable java applications. ( I am not sure, this will work)
    Another reason could be speed improvement. Classes in RAM is expected to make the application to run faster than when class files are in hadr disk
    With regards
    Chinnaswamy

Maybe you are looking for