How to make a .exe from a java .class

Hi All,
I want to write a scheduler program in Java and that class file I want to install as a service in windows scheduler. So for that purposr I need an executale right?
How can I convert a java class to a .exe program.
Thanks and Regards
KK

No need to create exe file. U can covert into .bat file. With help of windows scheduler u can run the file as per ur required.

Similar Messages

  • How to make a .exe from form builder?

    Hi,there:
    How can i make a .exe from form builder which can run without form builder?

    Hi,
    You can try to create a batch-file. For instance on WinNT create a CMD file. On Win95/98 create a batch file.
    In that you can use (depending on where you've installed forms/ reports)
    D:\orant\binf50run32.exe <user>/<password>@<database> <startform>.fmx
    Hope this helps

  • Executing another exe from a java class

    Hi All,
    I want to execute another executable from a java class. I am doing that with the help of Runtime.getRuntime().exec(String) function.
    My executable runs for quite sometime and it keeps printing something to stdout consistently.
    I want to read whatever this exe is putting out to stdout as and when it is put out, not after the whole process has finished.
    Now, Runtime.getRuntime().exec(String) just spawns the exe in another process space and I am not able to get its handle, maybe I have missed something.
    Is there any other method/way to do what I want to?
    TIA
    -Satish

    Now, Runtime.getRuntime().exec(String) just spawns the
    exe in another process space and I am not able to get
    its handle, maybe I have missed something.
    Is there any other method/way to do what I want to?Acutally, Runtime.getRuntime().exec(String) returns a Process object. Use this process to "talk" to the program you just launched. For your needs, try Process.getOutputStream(). Take a look at the API for Process at http://java.sun.com/j2se/1.3/docs/api/java/lang/Process.html
    Hope this helps.

  • How to make a callback from a separate class

    Hi guys!
    I've got a class that I'm trying to instantiate in downloadButton, which handles a bunch of NSURLConnection/authentication stuff, and I want it to make a callback to setWebView after it's finished. I don't think I can use the delegates built into NSURLConnection because then all the events will have to be handled by my base class, and I really just want to be notified when the connection and download has been completed and be given back the saved filename.
    Thanks!
    #import "Controller.h"
    #import "fetch.h"
    @implementation Controller
    - (IBAction)downloadButton {
    fetch *downloader = \[\[fetch alloc\] init\];
    \[downloader setAuth:Username.text password:Password.text saveName:@"test.html"\];
    \[downloader download:@"http://google.com"\];
    -(void)setWebView:(NSString *)file
    }

    True, that works. I thought there might be a way to do it with a pointer to the controller function but this works great. Thanks a lot!

  • Add OrganizationalGroup from a Java Class

    Hi,
    I want to add a new Organizational Group with two roles.
    How could I do it from a java class?
    This is the code to add a role, but to add a Group with two roles??
    DirOrganizationalRole organizationalRole = null;
    organizationalRole = DirOrganizationalRole.create(directorySession, "Nombre del Rol", false, "Desc. del Rol");
    Thanks in advance!!

    This is the JAVA code to add a role:
    DirOrganizationalRole organizationalRole = null;
    organizationalRole = DirOrganizationalRole.create(directorySession, "Nombre del Rol", false, "Desc. del Rol");
    And this to verify if the role exist:
    DirOrganizationalRole organizationalRole = null;
    organizationalRole = DirOrganizationalRole.fetch(directorySession, rol);
    I have tried to do this with a DirOrganizationalGroup but I can't....
    Exist any documentation about this classes?
    Could anybody write a simple code example?
    I think it's very easy....
    DirOrganizationalGroup organizationalGroup = null;
    organizationalGroup = DirOrganizationalGroup.create(directorySessionRol, "DirSubdir", "Grupo Directores y Subdirectores", null, null, true, true);
    And the RoleAssigment??
    Thanks!!

  • How to terminate an exe from Java

    Hi Everyone
    Can anyone let me know the code to how to terminate an exe from Java
    I run an exe using
    Runtime.getRuntime().exec(dialog); //where dialog is a string (pointing to an exe)
    Now i need to kill this exe
    How do i do this in java
    Any help is highly appreciated
    Thanks!

    getafix14 wrote:
    I run an exe using Runtime.getRuntime().exec(dialog); //where dialog is a string (pointing to an exe)
    Now i need to kill this exe
    How do i do this in java
    ejp wrote:
    Process.destroy();
    And don't forget to take a swig of magic potion first.
    Winston

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

  • How can i modify exe resource in java?

    How can i modify exe resource in java?
    No jni
    thx.

    if it is .NET code decompilation is possible if, and only if the code is not Packed by protections!
    but if the EXE file is native and created by VB 6.0,C/C++,Delphi,... it is not possible to obtain source code from it, not as far as i know.
    (some program does it , but the returned source code is as useful as its assembly code in debugger).
    if decompilation was that easy then Reverse Engineering was no longer needed!
    What program it is so that can put two exe file into each other ?
    the program you seen might put second exe file into its DATA section then when it executes ,
    it jumps to data section of itself!
    otherwise it is not possible.
    Good luck.
    Edited by: 0mega7 on Apr 5, 2008 8:27 AM
    Edited by: 0mega7 on Apr 5, 2008 8:29 AM

  • How to call a PL/SQL procedure from a Java class?

    Hi,
    I am new to the E-BusinessSuite and I want to develop a Portal with Java Portlets which display and write data from some E-Business databases (e.g. Customer Relationship Management or Human Resource). These data have been defined in the TCA (Trading Community Architecture) data model. I can access this data with PL/SQL API's. The next problem is how to get the data in the Java class. So, how do you call a PL/SQL procedure from a Java program?
    Can anyone let me know how to solve that problem?
    Thanks in advance,
    Chang Si Chou

    Have a look at this example:
    final ApplicationModule am = panelBinding.getApplicationModule();
    try
         final CallableStatement stmt = ((DBTransaction)am.getTransaction()).
                                                                                         createCallableStatement("{? = call some_pck.some_function(?, ?)}", 10);
         stmt.registerOutParameter(1, OracleTypes.VARCHAR);
         stmt.setInt(2, ((oracle.jbo.domain.Number)key.getAttribute(0)).intValue());
         stmt.setString(3, "Test");
         stmt.execute();
         stmt.close();
         return stmt.getString(1);
    catch (Exception ex)
         panelBinding.reportException(ex);
         return null;
    }Hope This Helps

  • How can I call a pop up window from a java class ?

    Hi,
    I am developing a web app. I would like to call a windoz pop up from a java class.
    How can i do that ?
    Thanks

    user504072 wrote:
    It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
    I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
    I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
    bye
    TPD

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to make the exe always visible in the illust application.

    Hi,
    I created an interface for "illustrator CS" using Visual Basic and copied that exe in Scripts folder. I want to know how to make the exe always visible in the application(Not in Taskbar), once it was clicked. Could you please kindly help me to solve this.
    Regards,
    Prabudass

    Hi,
    I guess....though i am not pretty sure....but the Preview tab has been discontinued in the newer versions....
    Only the Gods can give a perfect solution though...!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

  • How to make the exe always visible in the application window

    Hi,
    I created an interface for "illustrator CS" using Visual Basic and copied that exe in Scripts folder. I want to know how to make the exe always visible in the application window itself(Not in Taskbar), once it was clicked. Could you please, kindly advice me.
    Thanks,
    Prabudass

    Hi,
    I guess....though i am not pretty sure....but the Preview tab has been discontinued in the newer versions....
    Only the Gods can give a perfect solution though...!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

  • How to pass a "object" as a prameter from one java class to another java

    hi experts, I want to know "How to pass and get object as a parameter from one java class to another java class". I tried follwoing code just check it and give suggetions..
    import Budget.src.qrybean;
    public class ConfirmBillPDF extends HttpServlet
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");
    }Here i want to pass db with simplePDFTableShow method. simplePDFTableShow is in another java class. So how can i do this.
    And also i want to know, how this obj will get.
    please help me.
    Edited by: andy_surya on Jul 14, 2010 7:51 AM

    Hi andy_surya
    what is this i am not understand
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");but i am try to solve your problem try this
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow(db);and access like this in SimplePDFtable class update your method
    simplePDFTable(qrybean tempDB)
    // write your code
    }

Maybe you are looking for