Creating setup file for java project

hi
My project has java files, properties files,batch files as well as two jar files,mail.jar & activation.jar(for importing packages).
I have to include these jar files while setting environment variables.
Now i want to make setup file for myproject to provide quick launch from desktop ,can anyone pls help me how to include these all files into a single jar file. and how to make setup file
Pls Help
Thanks a lot !!!

JAR files can contain any type of file that you want so you could use the following command:
jar cf jar-file input-file(s)
(the c tells jar to create the jar file; the f says the next item is the name of the jar file; the jar-file should be replaced with the name of the jar file; and the input-file(s) should be replaced with the name of the files you want jarred).
In general, batch files don't do much good bundled inside a jar file. If you really want a way to bundle all of your files and have them installed, then you might want to look into JExpress or one of its competitors. Full disclosure, I work for DeNova (the mfg of JExpress).
The advantage of an installer over a jar file is that you can distribute your files plus create a native executable to launch your java app, set up an uninstaller, etc.

Similar Messages

  • Creating setup file for java

    Somebody tell me how to create setup file for the software which is made by using java programming. We can create jar file for that purpose but I want to create setup file or exe file.

    open source
    - izpack (windows, linux, macos) www.izforge.com or org
    - nsis.sf.net (winblows only)
    commercial
    - www.zerog.com 's InstallAnywhere

  • Writing a setup file for Java project

    Hello friends,
    I am Kiran , very new to this Forum and also for java programming, my SE programmed a java project.
    now I got to do two things --
    1.I have to create a jar file with those class files and also an exe file which can execute that jar file.
    2. I have to write a "setup file" for automatic instalation of my Java project.
    so I request my friends to help in these two issues by providing some suggestions to do them.
    Thank you in advance.
    Kiran Karnati.

    1.I have to create a jar file with those class filesI suggest you use ant to build the jar file. Thee are many tutorials available if you use google.
    and also an exe file which can execute that jar file.Java will execute the jar file e.g.
    java -jar myjar.jar
    Of from windows just double click on the jar file.
    2. I have to write a "setup file" for automatic instalation of my Java project. You can do this with ant for remote deployment or use a batch file or use another jar which when run unpacks the application.
    BTW Is Kiran a girl's name or a boy's name or both?

  • 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 many softwares are there to create a setup file for java programs

    Hi, i am new to java
    I want to know how many softwares are there to create a setup file for java programs.
    I know one software i.e java launcher to create a setup file.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.
    And don't think that i am wastiing ur time with this question .
    Help me regarding this topic.
    Thanks in Advance

    superstar wrote:
    I want to know how many softwares are there to create a setup file for java programs.13, no wait, 42.
    I know one software i.e java launcher to create a setup file.You should clearly identify what you think you already know.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.Is this the one you talked before, or is this different?
    And don't think that i am wasting ur time with this question .Why should I not think that?

  • Create .SCA file for MII project

    Please let me know the steps in creating .SCA file for deploying MII projects developed using WorkBench with login page. I think that after creating the .SCA file we can deploy it using Eclipse under the menu Deploy View Console or using JSPM. After deploying we should be able to login using the credentials and should be redirected based on roles to appropriate pages.
    I had deployed the intial .SCA file named (XMII08_0-20004625.SCA) using JSPM. MII version used is 12.1.8 and Netweaver version is NW CE 7.1 EHP1 SP5.
    How we can set up the development environment in Eclipse or NetWeaver Developer Studio for MII project development so that we can directly create MII SCA file from the tool itself. Please share documents if any.

    I need to modify the default login page in MII and redirect it to different URLs based on roles.
    I am able to change the images in the default Menu.jsp in the NetWeaver login to Authentication page and inside properties tab. There I am able to change the images like branding-image.jpg, SAP NetWeaver image, SAP Image. But this is reflected in both the URLs
    http://servername:50000/nwa  and http://servername:50000/XMII/Menu.jsp
    Then I changed the web.xml inside war file (tcsecumelogonui.war) which is in the path InstanceDirectory:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\com.sap.security.core.logon\servlet_jsp\logon_ui_resources with the new Login.jsp file instead of Menu.jsp for the servlet tags but still when I access the new Login.jsp page from the URL http://servername:50000/XMII/Login.jsp it is still showing Menu.jsp. But when I tried to login using the Menu.jsp page then it is redirected to my new Login.jsp page.
    Please let me know how I will be able to change and deploy a new login page in MII 12.1.8 and with NetWeaver CE 7.1 EHP1 SP5.

  • I m not able to create xml file in Java Project

    hi all,
    I have created one java project just to try with Ant Builder. I have created one class inside it. and now i m creating an XML file inside that project.
    But as soon as i try to create the File -> New -> File and give the .xml extention of the file this gives error into the project.
    Will you suggest me the solution for that?
    Thanks in advance.

    Assuming that you are facing this problem in NDS, here is the solution.
    Go to Windows--> Preferences --> WorkBench -->File Associations
    In the File Types list select *.xml
    This will display the default associated XML editor as
    XML Editor(default) in the bottom list box.
    Click on add button near the bottom list box and select Text Editor, click Ok.You will see one more entry in the list box as "Text Editor".
    Select this entry and click on the default button.
    Click Ok and close the preferences dialogue.
    Now create a new xml file.You wont see the error this time.
    Please note that this will treat all simple xml files you will create as TEXT Files and always open with Text Editor.You can override this behaviour with right click on the file and select appropriate editor from the "Open With" context menu.
    The error you are talking about is because the XML editor tries to check well-formedness and basic syntax rules for the file that you newly created, actually is a noce feature of the IDE.
    Rgds,
    Amol

  • How to Create Executable file for a project for Crio Platform

    hi,
    i am using CRIO 9014  platform  for my application development.
    i am controlling (   Reset  &  then Run )  FPGA   from RT application .
    Through TCP/IP  communication the  Acquired data  (   from FPGA  then followed by some Computation Logic in RT )   is sending   to HOST computer .
    during the above process  
    First i am starting the RT Application    (  the TCP  network will be continuously in listen mode )    then
     i am  starting my HOST Application   in the project .
     here i want  to build my complete project as an  executable file 
    so that i no need to start  RT Application first and then HOST Application.
    Could you please send me One sample Project           with built in simple  ADC Acquisition  loop /  logic  in FPGA  ,  then  one sample logic  / while loop   in RT   to   acquire  this ADC data from FPGA and  send to HOST    via  TCP/IP network then   the  HOST   with GUI    for  Display in the HOST .
    This  complete project should be build in  .exe  file .
    Please  complete project  files  and .exe file    as a  zip file.
    Regards,
    Venkat

    Hi,
    I might be confused but what I understand from what you have mentioned is that you want to create a project having two VI's. One running on your FPGA target and another running on you host computer.You want to build a single executable file to complete the entire operation.
    Unfortunately you cannot have both VI's in same executable file. You can build one executable file and deploy on your FPGA target that will start running as soon as the target is booted. And you can create another executable file for running VI on your host computer. And instead of using TCP to transfer data, you could use "Interface FPGA" from FPGA module to communicate between your host computer and communicate.

  • How to create the setup file in java

    hi
    am new to java...
    is it possible to create setup file in java like in .net..
    if yes how?

    i mean our application can be installed in to any other system..
    using .net we can easily generate setup fileThe other people understood what you meant.
    And they suggested that you use one of the free
    installer generator, such as
    http://www.java-source.net/open-source/installer-generators

  • Create setup file

    Hi,
    How to create setup file in oracle application.
    I was developed number of forms and reports within that we created records.
    I need to create setup file for my application, but i've no idea what type of tools are using.
    regards
    venki

    Ying,
    Sorry for that may be my post was not clearly understanding to you. I'm not talking about that, Maran was reply that is correct.
    Basicaly all kind of application like java, .net, php...,are having such, this kind of
    setup tools. Even though our oracle Apps having these setup tools, for example
    They are provide sample code of Form6idemo. It contain no of forms ,reports, graphics,that are integrated with tables and records.we just click the setup file all table and records are stored our database automatically.
    But i dont've idea about that deployment concept, bcoz i'm very new to oracle and apps
    regards
    venki

  • Create .exe from Eclipse Java project

    Hi Friends,
    I have a spring hibernate project in eclipse. The project contains set of library and config files. I have created Jar file for this project. But this Jar file doesn't recogonise the library and config files which is present in this Jar.
    Could anyone please help me to create the executable file (.exe file) for the entire project?
    Thanks in advance.
    Sathish kumar D
    Edited by: Sathishkumar.D on Dec 18, 2008 5:28 AM

    In this forum there are so MANY posts teaching you how to build an executable jar. Search and you will find. Also, search about manifest file.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Creating an exe file for java

    Hi all,
    any way to create the exe file using JBuilder 3?
    if possible how to do that?
    how about creating installation file for the application?
    thanks alot

    I think you might need a byte code compiler that converts the .class files to .exe
    I believe there are some products out there that do this. I don't think there is a java utility that performs this type of operation.

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

Maybe you are looking for

  • Help me to remove this Error in Entity Beans

    this is the Error i am getting along with this Error i have also put my ds xml file and other related file , please help me to remove this error at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(Re flectedDispatcher.java:91) at or

  • Number of employee is incorrect

    hi gurus,                 I'm working with the cube 0PA_C01 ,I have loaded the cube and when i run the report for manpower count the number of employee is showing 0 for some employee and for some employee its showing 1, moreover the result rows are a

  • Caching in report query

    I have 2 questions. 1. Theres is cacheQueryResults() method in ReportQuery class. The javadoc says that "This method will instruct the query to cache the results returned by its next execution. All subsequent executions of this query will return this

  • GSR 12000 Router and Router 7609S

    Hi all, GSR 12816 supports 40GB/slot. How can I check this information ? I tried to using Dynamic Configuration Tool to build 04 SPA-1X10GE-L-V2 on 12000-SIP-601 but It does not support. Please answer as soon as possible. Thanks

  • I would like to ask if I can use ipad2 as a tethered modem connecting to my laptop like the iPhone ?

    I would like to ask if I can use ipad2 as a tethered modem connecting to my laptop like the iPhone ?