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);
     }

Similar Messages

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • 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 *

  • How to create .exe file of the java program you create?

    This must be the qustions asked several time on the forums.So here it is again.
    This sounds absurd to some developers here cause you'll say just create jar file and distributre to usr but sometimes there is not possiblity of having runtime environment in windows computers.So if we can bundle the enviroment and the setup together then packing into exe and then distribute like most of commercial java application sounds better.But the problem is how to do that?
    Ok creating exe will increase the size but that doesn't matter,if there is any freeware tool to accomplish just that?

    Check this out:
    http://search.java.sun.com/search/java/index.jsp?qp=%2B
    orum%3A31&nh=10&qt=create+exe+file+program&col=javaforu
    s

  • 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

  • How to create a exe file from a Java application

    hi,
    i have developed an application in java,now i want to distribute it to my client, for this i need to build a .exe file out of this application.
    i already have a jar file ,now can i convert a jar file to a exe file.
    im trying this out with JSmooth project but im getting it right, so can anyone help me .
    thanks,
    vishal j

    if u use dos to run your app like
    "java myapp"
    u can create a shortcut link
    in target wright java remove the path
    just leave the file name without the extension,
    like this Target: "java myapp"
    when u click on appy u'll c that java gets its full path, thats fine
    that works 4 me, ofcourse ur client needs to have JRE or JDK.

  • 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.

  • 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.

  • 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?

  • 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());
    }

  • 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.

  • 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

  • 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 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

Maybe you are looking for

  • Indesign cs3 crashes when export file to pdf

    my indesign crashes when i export my project to pdf then after that indesign wont aopen even after uninstall and reinstall, theres no error sign or message nothing i just wont open... Description Faulting Application Path: C:\Program Files\Adobe\Adob

  • Timeline recording not possible

    Hi there folks, I am having a problem getting timeline recording to work. I have a Matrox MX02 LE and a mic connected to one of the RCA connectors. All of the audio hardware and project settings, as well as the sequence preset are OK. When I enable a

  • FireFox not viewing swf correctly

    I purchased a small program that will make a .swf file of scrolling text. It looks fine in Explorer, but in FireFox it flickers very fast - like seizure causing fast. I've tried speeding/slowing down the frame rate. I made sure it wasn't looping. I e

  • Mac Pro - Restart stuck spinning cog/wheel - Urgent!!

    Hi, I've just gone to restart my Mac Pro Quad Core 2.66GHz comp and am now stuck with my background showing and a spinning cog/wheel which has been spinning for a fair while now. Please help!! Ash

  • Unable to restart from OS 9

    Well as the title says, I am having problems starting up my imac with the original OS 9 CD's. I had successfully installed 10.3.9 the other day only to find I could not use classic. There were issues with the system folder. I am prepared to start fro