How to package Java application in a setup file?

I wish to package my application in a setup file. On double clicking the icon of setup file, the installation of the application may begin. I like to include modified JVM, Acrobat Reader along with class files of the application (packaged in a JAR file) in the setup file, i.e., I want to spare users from the headach of downloading before installing the JVM or Acrobat Reader, etc.
Things like this have been done in commercial products such as Dreamweaver.
I have no idea right now how this can be done, but I have to work on this. Any hint, suggestion, direction, advise would be highly appreciated.

This is a simple free program which will allow you to package your JVM etc with all your other files and it'll give you a small exe file which will invoke the VM and start your app. It only works on windows btw.
http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm
After you've set up the program all you need to do is download one the many shareware install programs from download.com. They're normally really easy to use, you just tell them the dir/s you want to package, which files, usually the exe, to add a shortcut to. It will then build a setup exe file for you.

Similar Messages

  • How to package an application as a JAR file?

    I want to package an executed JAR file,how to do?
    "jar cvf jar_name class_name"? But it can't run,:( help me.
    Thanks in advance.

    Suppose your main class call MyMainClass. You need to create a file called "mymanifest". In the mymanifest file, you need to include following line:
    Main-Class: MyMainClass
    Then you need to jar your jarfiles by:
    jar cvfm classes.jar mymanifest -C foo/ .
    After this, you can run your jar file by java -jar classes.jar.

  • How to package/inlcude C++ .exe and .dll files in a Java Web Start App?

    Hello,
    I have a Java Web Start application that runs fine if the application is only 1 .jar file.
    But I have a need to also run C++ .exe and .dll file from my Java application.
    I wonder if someone could please tell me how to package/include C++ .exe and
    .dll files in my Java web start application?
    Thank you and Best Regards,
    Akino

    You need to place the EXE and DLLs inside the jar.
    Java cannot execute them from the jar. They have to be extracted (see Class.getResourceAsStream) from the jar and copyied into the target machine file system, perahps to the temp directory. Now you can execute them using Runtime.exec() or ProcessBuilder.start().
    Edited by: baftos on Jan 14, 2011 6:49 PM

  • How to invoke java application from ABAP

    How to invoke java application from ABAP  ? Suppose I needto execute a EJB wihic is running on my SAP J2EE Enigne from an ABAP Program .
    Thanks,
    Manish

    Hi Manish,
    did you get some further documents concerning "abap program calls ejb"?
    If yes, could you please send me some informations.
    Thank you for your help.
    Kind regards, Patrick.

  • Pass return code from Java application to a .bat file.

    I have a .bat file which will execute a Java application. I want to pass the return code from the java application to the ".bat" file.
    Could you please let me know, how can I accomplish this.

    I tried that, but it doesn't return the value...
    In my Java app, I had System.exit(returnCode) and in the '.bat' file
    I have
    @echo off
    java <myApp>
    set returnCd=%?%
    echo %returnCd
    and it didn't return any value. What should I specify in set returnCd=%?% instead of ?

  • How to embed java application into flash player

    By using SWT flash, I able to embed flash player into java
    UI. But then now I want to embed the java application in flash
    player... Do it possible ?? or any export can help me or advice me
    on this? Thanks
    Regards,
    Sosseres

    Hi,
    In this case, you need to setup Single Sign-On (SSO) between your SAP Portal and Websphere.
    Please refer to the following URL:
    IBM WebSphere
    Here, you will find all the guides that explain how this SSO can be established. Under the General Section, you will find documentation that describe the SSO cases. Under the section of interoperability, you can find the guides like "How to Set Up SSO Between SAP NetWeaver Portal and IBM WebSphere Portal Using TAI".
    Use these guides to setup SSO.
    Regards,
    Shitij

  • Packaging java application

    I don't know whether this is an appropriate place to post my question or not. I have built a java application. Now, I have to package the application. I can easily package it using Advanced Installer which is based on microsoft installer. My million dollar question is, what would or should I use to package my application that is a java-based packaging application?? i.e. it will install my application in any platform just as my application will run in any platform. Does that make sense???
    Namrata

    http://www.google.com/search?num=100&hl=en&lr=lang_en&c2coff=1&q=%22java-based+installer%22&btnG=Search
    You need to answer the "should" question yourself. How much money do you have to spend, etc., etc.

  • How to Deploy Java Application?

    I'm trying to deploy a Java application. I made a lot of code changes to it and previous developers have worked on it all using JBuilder4 (old! I know). I've
    been testing it on my development machine with no problems. Does anyone know how in the world to save my changes and put it on another machine. It currently uses a .bat file that has environment variables setup in it to deploy. I know how to make it point to different directories, problem is when I try to move my code (bin, sources, etc folder) to another machine and run the app only some of my changes are there, but when I run the same program on my computer all of my changes the program works fine. I've tried creating another java project file (.jpx) and rebuild the project with no luck because it doesn't change this problem. I have a C/C# Visual Studio background. Is there any else I have to do like updating the .jar files or something? I'm lost. Please help.
    Edited by: pootietang on Feb 21, 2009 2:48 PM

    Point conceded, cross-posting in itself is not that serious. What's serious is this:
    1) You not telling us.
    2) You giving us attitude.
    3) You giving us more attitude when we complain about your cross-posting.
    4) You still refusing to do what the people who were (read: were, not are) trying to help you asked you to do, which was keep them updated.
    5) You acting arrogant.
    6) You being arrogant.
    7) You telling someone with 36,000 posts to "cut the attitude" like you're his father.
    ... shall I continue?
    The nerve of people these days, I swear...
    You honestly think you're entitled to help? Let me reference you to an excellent quote I once encountered:
    "The world doesn't owe you anything. It was here first." - Mark Twain

  • How to run Java Application in Weblogic 8.1

    Hi,
    I'm new to Weblogic 8.1. I just deployed a EJB with WebLogic 8.1 Server and I
    don't know how to run my Java Application against the EJB I deployed earlier.
    I tried to run "java Client_1" in a console window. It gives me the following
    message:
    C:\temp\WebLogic\new>java Client_1
    javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
    WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException:
    we
    blogic.jndi.WLInitialContextFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
    a:42)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    49)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at Client_1.getInitialContext(Client_1.java:55)
    at Client_1.main(Client_1.java:14)
    C:\temp\WebLogic\new>

    hi,
    i solve this one after check bea documnetaion.
    with regards
    jp

  • How to deploy Java Application to AS?

    Hello there,
    I created Java Application, created Java Web Start (JNLP) Deployment Descriptors and everything works just fine when I am running application locally (using Run Manager in JDeveloper).
    How do I publish this Java Application to Oracle Application Server to start it using Java Web Start since there are no Java Web Start Deployment Descriptors to publish Application to Oracle Application Server?
    Or is there any other (easier, better) way to Deploy Java Application to Oracle Appplication Server?
    I searched otn.oracle.com but I cant find anything usefull, maybe it is me, please help me :)...
    Thanks,
    -Andrej

    From the JDeveloper technical papaers page:
    http://otn.oracle.com/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf

  • How to remove Java Applications from "Add and Remove Programs" list?

    I have deployed my Java applications (both JWS and Applet) via JNLP with allow-offline option enabled and without installer-desc option specified.
    My questions are:
    1. An entry is added to the Add and Remove Programs list after launching the application via JNLP. Is it due to the specification of JNLP or JWS? Is there anyway to prevent this behavior?
    2. I removed my application by clearing the cache via Java Control Panel but the entry for the application is still listed in Add and Remove Programs. How can I remove the entry in the Add and Remove Programs?
    I have tried following methods but neither works:
    1.Go to Add and Remove Programs, and click [remove] button to the right of my application.
    *Warning message like 'Application cannot be uninstalled completely' is thrown.
    2.Follow instructions listed @ [Microsoft Online Support site|http://support.microsoft.com/kb/314481/en-us] to remove my application manually via Windows registry.
    *Couldn't find appropriate registry entry to delete.
    Thanks in advance!

    Hi, guys!
    This issue has been officially approved as a new bug (Bug Id: 6946221) for the JDK 1.6_20(might include any release below) release.
    It will take a couple of days for it to be shown up in the external Bug database. However, once it becomes available for viewing on external Bug database.I would like to encourage your valuable participation to vote on this bug to get it fixed ASAP by the SUN developer teams.
    Java Bug Database @
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221]
    Voting for the bug @
    [http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221]
    Thank you for your cooperation!
    Edited by: Jay-K on Apr 23, 2010 12:14 AM

  • How can my java application fill out an online form

    Hi,
    I am trying to create a Java application that will connect to a URL, fill out the form and submit it.
    How would I go about doing this?
    Thanks in advance,
    Chanie

    I'm doing something exceedingly similar, but I'm not sure how to get it to work, to be honest. Basically, I'm trying to download information from a site that requires a username and password. The html of the site is as follows, as well as my code. Any help would be appreciated!
    <form method="post" action="/cards/FALLON19790309A.php">
    <p>Username:   <input type="text" name="username" size="16" maxlength="16" value=></p>
    <p>Password:   <input type="password" name="password" size="16" maxlength="16"></p>
    <input type="hidden" name="action" value="muffinklezmer">
    <input type="hidden" name="nocache" value="1046986423">
    <input type="submit" value="Log in"></form>
    My code right now looks like this:
    URL playerCard = new URL("http://www.webpage.com");
    URLConnection pcConnection= playerCard.openConnection();     
    pcConnection.setRequestProperty("username","ABCDE");
    pcConnection.setRequestProperty("password","12345");
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    pcConnection.getInputStream()));
    pcConnection.connect();
    String inputLine = in.readLine();
    while (inputLine != null)
    System.out.println(inputLine);
    inputLine = in.readLine();
    }

  • How can my java application get its own PID?

    My java application runs under AIX?
    The application needs to get its own PID.
    There is a possibility to get it by
    Runtime.exec("ps -ef | grep <user.name>");
    But is there any other alternate possibility?
    Any idea would be great appreciated
    kind regards

    Hello! I found several ways for this in a blog from someone called Igor Minar on
    http://net3x.blogspot.com/2007/03/how-java-application-can-discover-its.html
    He found several ways:
    * Use Java management and monitoring API
    ManagementFactory.getRuntimeMXBean().getName();returns something like
    1826@localhost
    where 1826 is the PID of the JVM process, i.e. my application's process. But this hack is JVM dependent and may not work on JVM's other than Sun's
    * Use a shell script to put a property in place that is set to the PID:
    exec java -Dpid=$$ -jar myapp.jar* Java Native Interface - cumbersome and platform dependent solution
    * Use procfs (Linux solution: read /proc/self, nifty nifty, posted in the comments of the resp. post!)
    int pid = Integer.parseInt( ( new File("/proc/self")).getCanonicalFile().getName() );* From another comment: Reflection will work (on Unix): The Process class has a field called pid which can be queried:
    static int getPID(Process process) throws IllegalAccessException, IllegalArgumentException,
                                                                      NoSuchFieldException, SecurityException
         Field field = process.getClass().getDeclaredField("pid");
         field.setAccessible(true);
         return field.getInt(process);
    }But this solution looks a bit of a kludge to me. I think the /proc/self solution is best - it definitely rox my sox!
    Hope this helps!

  • How to connect Java Application to ORACLE8i over SSL connection

    Hi,
    I would like to know how to make an existent Java application connect to an ORACLE8i database over a secure SSL connection?
    can I user ResultSets?
    Could you please tell me what parameters to set on the database and, especially, what new code must be added for the Java Application so send data over an SSL connection.
    Your advice/hints will be greatly appreciated.
    Vani

    Use usual Oracle' encryption. SSL configuration is a nightmare.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Properties props = new Properties();
    try {
    props.put("user", "scott");
    props.put("password","tiger");
    props.put("oracle.net.encryption_client", "REQUIRED");
    props.put("oracle.net.encryption_server", "REQUIRED");
    props.put("oracle.net.encryption_types_client", "( RC4_56 )");
    props.put("oracle.net.encryption_types_server", "( RC4_56 )");
    props.put("oracle.net.crypto_checksum_client", "REQUIRED");
    props.put("oracle.net.crypto_checksum_server", "REQUIRED");
    props.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
    props.put("oracle.net.crypto_checksum_types_server", "( MD5 )");
    props.put("sqlnet.crypto_seed", "769764576979045769576907");
    } catch (Exception e) { e.printStackTrace(); }
    Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT =1521)))(SDU=32767)(CONNECT_DATA=(SERVICE_NAME=orcl)(SID=orcl))", props);
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
    while (rset.next ())
    System.out.println (rset.getString (1));
    rset.close();
    stmt.close();
    conn.close();

  • How to invoce java application (which is AQ recipient) ?

    background
    one pl/sql program (sender) puts messages into the queue
    one java application (recipient) get messages from the queue
    i cannot run the java application as a triggered java stored procedure,
    so i try to produce the same effect with Advanced Queuing
    question
    how do i invoce this java application after the queue is filled?
    do i have to run the application in a loop checking every x seconds if a new message is in the queue?
    or is there a better way to solve this problem?
    thanks

    Hi Samuel,
    In your JMS application, you can issue a blocking dequeue (receive). Your dequeue call will be blocked till a message for you comes in the queue or till the specified time out. The second option you have is to use onMessage callback.
    cheers,
    Brajesh.

Maybe you are looking for