Java Executable ?

I Would like to know how to create an executable for Windows in Java, i.e. I' like to generate a program with extension *.exe. In this case the client will make download excutable program and will run in the computer.
Sorry for my English
Thank you

Hi,
try a forum search with "java exe" that should return 100s of hits.
Phil

Similar Messages

  • Java executable with tags/options

    Firstly i'd like to say hi, i'm new to the forums have viewed the forums before and found it really useful so i thought i'd join today :p
    Anyway my question:
    i usually develop and run applications with the IDE or javac from the command prompt and never looked in to distribution. I was wondering when you run a java application with tags or options like :
    ' java myapp -tag1 option1 -tag2 option2 '
    my question is how can you do the above with the tags in java executable format or even JAR if possible. I know that if I just make JAR file or even package into a executable format it will probably just run the application without the tags.
    Also another small questions, how can you run or start services through your java applications? like how you would go to the command prompt and start a service like 'start rmiregistry', how could you do the equivalent through a java app instead of using the command prompt.
    I've heard a little bit about classes that provide you to make calls to the command line through java and start seperate processes with exec() and fork() but i'm not sure if this is it and i haven't looked into them much. So i'd like to hear how people do it.
    So if anyone knows please give advice on this, thank you very much.
    P.S if you want to know in what context or what i'm trying to achieve it's about CORBA and Java client/server applications, i'll provide the details if needed later on but I just wanted a generic answer that can work for any tags.
    Message was edited by:
    iQ.

    For being someone who has viewed the forums before, you've already started out on the wrong foot.
    Crossposted
    http://forum.java.sun.com/thread.jspa?threadID=5150801

  • Opening HTML from Java executable?

    I have an HTML file that will be located on a CD that spawns off an installation. I need to call this HTML from a java executable. How do I do this?
    Thanks,
    Scott Roth
    [email protected]

    You may adopt a refined solution trough the swing package.... Usign the application to shows the HTML file with a JEditorPane or JPane component.
    take a look in the jdk1.2.2\demo\jfc\SwingSet\HtmlPanel.java
    In this case, your app may becomes slow, but if you will run it in a powerfull machine (128Mb RAM, 16Mb Video) then don�t worry - it works.

  • Hot to call  forms11g  fmx file  through Java executable

    Hi,
    Iam having one file in some folder which will come through FTP , whenever file comes to the folder i should call the some form fmx file through JAVA so that my form will take care rest of the things .
    My question is how to call fmx through Java executable in windows environment.
    thanks in advance
    GV

    Hi All,
    Thnaks for the Info. But my requirement is different.
    1) whenever i received a file through FTP from other server to my server , some folder say d:\Test
    a) some batch program has to trigger and first it should take the backup of the received file to some other folder say d:\archive
    b) some batch program has to trigger to call the forms fmx file so that form will take care of reading from the file and put the data to database for the received file in d:\Test.
    Assume that it is in windows environment/Linux Environment . How i can achieve these tasks. There should not any user intervention in this , everything is automatic.
    Please guide me any solutions
    Thanks in advance
    GV

  • How java execute thread

    Can any one tell me
    Which of the following statements are true
    1.     To determine which thread has to execute set the priority code of the thread.
    2.     Java uses a time-slicing scheduling system to determine which thread to execute.
    3.     Java uses a pre-emptive, co?operative system to determine which thread will execute.
    4.     The scheduling in Java is platform dependent, hence it will vary from one implementation to another.

    Read [Chapter 8 of the Java VM spec|http://java.sun.com/docs/books/jvms/second_edition/html/Threads.doc.html].

  • Building java executable for windows

    Well, actually I have two qestions:
    1) how it is possible to build executable running under windows using usual Java tools, e. g. ant or something like this?
    2) if I'm using VS.NET I can't compile files wich import javax. ... etc. classes, what I should to in order to import them?
    Any suggestions welcome.

    Well, actually I have two qestions:
    1) how it is possible to build executable running
    You want a .exe at a guess, search the forums.
    All the regs. have answed this many many many times, and some very good answers exist on the forums.
    Normally, when people ask this, they really need to read:
    http://java.sun.com/docs/books/tutorial/jar/
    http://java.sun.com/products/javawebstart/
    But sometime (not very ofton) a ".exe" is needed:
    http://gcc.gnu.org/java/
    http://www.excelsior-usa.com/jet.html
    under windows using usual Java tools, e. g. ant or
    something like this?Sure, make a new task. For GCJ this would be very easy.
    2) if I'm using VS.NET I can't compile files wich
    import javax. ... etc. classes, what I should to in
    order to import them?Are you compiling to .NET or to Java Byte Code.
    If its Java Byte Code, I have no idea, if its .NET the below might work
    http://classpath.org
    http://www.ikvm.net/

  • Launching java executables in html

    <p><span style=" font-size: 18.0pt; line-height: 115%;">I am tryingto get the analyzer html client to function the same way as theanalyzer java web client.  All seems to be working well exceptfor launching executables, or basically any link that pointsoutside of analyzer. What can I to get the html version to linkoutside of analyzer?</span></p>

    Hi
    Look if you want that the code runs in the server side you need create a servlet (that not have any awt stuff) or a JSP (does not have awt to ) that are codes in java that you can put in a html code (CGI like) the code that you write here is for an applet and that MUST run in a client or you can create the applet inside a Application frame and it will run in the client or in the server
    perhaps you need another approach of this you can made a application that runs in the web servers as an executable and create a client side awt interface that made a connection with the application running in the server that means you will use RMI or corba
    just choose

  • I write a simple procedure, but in java, execute function can't work

    I made a very simple procedure in oracle logged as internal user.
    the procedure as the following:
    create or replace procedure temptest
    as
    begin
    insert into indextab(idx) values(100);
    commit;
    end temptest;
    in Java program,I use Oracle's jdbc driver to connect database, still connect as internal user.
    I can call statement.executeUpdate("insert into indextab(idx) values(100)"). and 100 row was added in database.
    then,I delete this row, try to run procedure in java,
    but the call of statement.execute("temptest") throw a exception
    the error message is:"java.sql.SQLException: ORA-00900: invalid SQL statement"
    then, I write the same procedure in sql server.
    all things work right.( I use jdbc-odbc bridge connect to sql server database)
    who can tell me what's the reason?
    I'm so urgent, please help me as soon as fast, thank you very much

    Hi
    You should call the stored procedure using Callable statement .
    The call should be like this
    CallableStatement cs = con.prepareCall("{Call tempest}" );
    cs.execute();
    You can also set parameters using functions of callable statement
    Hope this helps
    Chandar

  • Can Java execute batch file outside of current JVM in separate process tree

    Hi,
    Does anyone know how to run programs from Java as separate processes that will not die when the spawning java program exits (JVM exits).
    The problem I have with using Runtime.exec is it spawns only child processes under the current running JVM, thus when the origonal program that called Runtime.exec ends so does all child processes.
    Basically I want to start a DOS batch file from my Java application, my Java application will then immediately exit (calling System.exit(0) ). The batch program will continue to run, its does some file clean up, create's some new files and deletes the old jar (containing the main app), it then rebuilds the main app jar and and executes the main class and then exits itself.
    I've also tried the apache.tomcat.jni.Proc :-
    long pool = Pool.create( new Long(0).longValue() );
    long pa = Procattr.create( pool );
    Procattr.dirSet( pa, "c:\\temp\\updater\\");
    Procattr.cmdtypeSet( pa, Proc.APR_SHELLCM );
    Procattr.detachSet( pa, 1 );
    long proc = Proc.alloc( pool );
    Proc.create( proc, "test.bat", new String[]{"test.bat"}, null, pa, pool );
    System.exit(0);
    The detach option doesn't work, if I take it off then the bat file runs and stops the JVM exiting, if I leave it in the batch file never gets called.
    Is this possible in Java. Can java start master process on Windows XP JDK1.5+?
    Cheers
    Chris.

    Well I found the answer elsewhere (java.net) thought I'd post it here for future visitors who might be experience the same problem.
    Basically Runtime can do this however it must be done the following way :-
    The java:-
    public class Main {
        public static void main(String[] args) throws Exception {
            Process p=Runtime.getRuntime().exec("cmd /c c:\\test.bat");
            System.out.println("done");
            System.out.println("quitting");
            System.exit(0);
    }The batch:-
    @echo off
    PING 1.1.1.1 -n 1 -w 5000 >nul
    java -cp "c:\ " MainThe important line that makes the whole thing work is :-
    @echo offIf this line is missing then the whole things locks up (must be the io streams getting used)
    Also this code can not be run from an IDE (well at least not from Intellj) as it also locks up.
    It must be run from a command prompt or jar.
    Also note that any commands in the batch file must have there output redirected to "nul" otherwise Windows kills the cmd as soon as it trys to output to a dead stream (dead because the Java has exited). for example :-
    @echo off
    PING 1.1.1.1 -n 1 -w 10000 >nul
    cd %1
    del /F /Q *.* >nul
    move /Y new\*.* >nul
    RD /Q /S new >nul
    PING 1.1.1.1 -n 1 -w 1000 >nul
    java -cp "c:\ " Main
    exit

  • Creating java executables - .exe

    Is this possible? is there an easy way of doing this, I'm only a beginner at java and hope there is a simple way to create independent executable files.
    Thanks all :)

    There is a program to make java files executable you can find it at
    www.excelsior-usa.com/jet.html. However the full program licence is very expensive. The trail version does make executables but you can only use them on the machine that you create the .exe's on :(
    Try looking into executable jars and bundling the JVM with it, or batch files can be another solution but again you will need to bundle the JVM

  • Can JAVA execute a logic programme ?

    I need to execute a logic programme in JAVA.
    The logic rules are of the type: If <Condition> then <Action>.
    I feel very happy with some information about
    how checking a set of logic rules in a programme writen in JAVA.
    Thank you, very much.

    int k =0 ;
    if(k==0)
    else

  • Building Java executables

    Can anyone give me a pointer for a process to build and exe using a set of classes I have ?

    Probably the most wonderful aspect of Java is its cross-
    platform capability. Creating an executable from Java
    classes defeats this feature. If you really want to
    create an executable, you will need to use a third-party
    tool such as IBM's VisualAge for Java, or one of the
    Java-to-C translators available and then compile the
    resulting C code.
    Mark

  • Java executables and jar files

    I'm new to Java and recently completed a Java training class that involved the creation of a cutomer service application in Microsoft Visual J++. The application ran fine in debug mode. However, no mention was made of how this would be run on a machine without an development tool as J++. How is this done? Can Java programs be compiled into .exe's like C, C++,, abd Visual basic programs? If not, how are the classes called to make use of their code?
    Also, what is a .jar file and how is it used?

    You went to a class and they didn't teach you the answers to these questions? I say go and get your money back: you we're ripped off.
    1) Yes you can turn your java code into an .exe but that would be pointless as java was designed to be "platform independant" and this violates that principle.
    2) jar files are zip files for all intents and purposes. They contain your 'compiled' java byte code.
    3) Microsoft does not support J++ nor does it ship java with its browser anymore so I suggest you download java from this website and use the real thing.

  • Making java executable as a service in solaris10

    Hi all,
    I have written a set of class files and have put them in a jar file.
    now i would like to execute that jar file as a service in solris 10.
    can you please give all possible ways for this.
    i know how to make method script when using SMF facility..
    thanks in advance
    RaghuDeep Amilineni

    Does the OS know the notion of "service", or is it an imported term from Windows?
    http://en.wikipedia.org/wiki/Daemon_(computer_software)
    On the other hand:
    http://oreilly.com/pub/a/sysadmin/2006/04/13/using-solaris-smf.html
    Edited by: BIJ001 on 2008.12.15. 14:00

  • How can i get a java executable (*.class) run on a web browser?

    I have created a simple appilcation in java and i would like to view it through a web browser.
    In order to do so, do i need to use an application server or just a web server?
    Can you come up with another solution to solve my problem(view the java application through the web)?
    Thank you in advance.

    If it HAS to be an application (perhaps something you have already written and now need to distribute), then Java Web Start may be an option.
    What is your user base? How many people will be using it? In what environment? How frequently will they use your app? I think you mentioned that it needs to read files. Is that on the user's machine?
    You may be able to create an applet version of your application using the same logic but subclassing some of the components to allow for remote login etc.

Maybe you are looking for

  • Leading zeroes substring query in SQL Server

    Can Someone please help me in padding leading zeroes for the months in End date Example: actual data is like    6222007 ,11301998 in end date column the following query works fine for 11301998 and converts it as 19981130 which was correct. But 622200

  • System uses non-default language after log in

    I am bilingual, and use two languages on my Mac - English as default, and Russian as secondary. After the update to 10.7.4. every time I log back in (have a password on my Mac Pro), all the programs have Russian language. For example, I open a Chrome

  • Balances Upload

    Hi Friends we have to upload balances for 01-07-2008 for General Ledger, Customer accounts and Vendor Accounts. I have never did the job earlier can any body help me. thanks vijay

  • Adobe After Effects CC Particle World Problem!

    I have used CC Particle World millions of times, but suddenly it stopped having the options category in the effects controls. I would really appreciate any advice on why this has happened. Here is a link to show you the problem: http://www.youtube.co

  • Handling User Exceptions in DialogBox

    Hi all.... I have the following Dialogbox which asks the user for 2 integers and then adds these to the TextArea with some predefined text. What I wanted was if the user inputs anything illegal such as text, inplace of 2 integers, how I could detect