Results 1 to 4 of 4
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    162
    Rep Power
    5

    Default if a user doubclick on the jar file will get the output

    Hai
    How can i embbeded jre in a jar file
    source program is attached and the ant file is
    <project>
    <target name="jar">
    <mkdir dir="build/jar"/>
    <jar destfile="/jar/tt.jar" basedir="/classes">
    <manifest>
    <attribute name="Main-Class" value="Tooltip"/>
    </manifest>
    </jar>
    </target>
    </project>

    by that if a user doubclick on the jar file will get the output

    Thanks
    Attached Files Attached Files

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    You don't embed JREs into jar files. The JRE should be installed on the client machines.
    It's the one that runs the jar file so if it's not there the .jar will not run.

  3. #3
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    162
    Rep Power
    5

    Default client user has no java installed in the computer

    thanks to your reply
    if the client user has no java installed in the computer then do i had to install jre or the whole jdk as we usually done.

    or any exe builder to embedd the jre with my project

    thanks

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    The client will only need the JRE for running the program.
    The JDK is for development.
    You could create a launcher program for the target OS that detects if Java is installed and asks the user to install Java if they don't have it or just launch your Jar file if Java is detected.

Similar Threads

  1. Writting output to file!
    By hakan123 in forum New To Java
    Replies: 8
    Last Post: 11-19-2009, 04:39 PM
  2. problem with output of jar file
    By nishant.4545 in forum Advanced Java
    Replies: 2
    Last Post: 07-04-2009, 04:00 PM
  3. No output to file
    By shiva in forum Java Servlet
    Replies: 0
    Last Post: 04-24-2009, 02:06 PM
  4. Replies: 7
    Last Post: 11-19-2008, 02:09 PM
  5. Replies: 0
    Last Post: 07-16-2007, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •