Results 1 to 2 of 2
  1. #1
    samara is offline Member
    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Default include jre in java project

    hi,

    i need to run an application .jar in any computer (who has jre or not) , i think to include jre in my project then export the file .jar so any one can run this application
    can you help me ?
    thanks for any help

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: include jre in java project

    Good idea, but not easy to execute. If you use JavaFX it has built-in support to bundle a runtime with it through its deployment options. If you don't use JavaFX then there is no standard way to get this done; I'd manually bundle a runtime in a downloadable zip file of the application (32 bits runtime so it works on both 32 bits and 64 bits system) and provide a batch file / shell script to automatically run the application using the bundled runtime. Nothing at all to do with Java specifically, just basic computer science stuff that any programmer should at least know about.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. PHP include on Java?
    By KingdomX in forum New To Java
    Replies: 4
    Last Post: 12-24-2011, 11:55 PM
  2. Include (and run) uncompiled Java
    By Ruben.cc in forum New To Java
    Replies: 6
    Last Post: 05-17-2011, 07:11 PM
  3. Replies: 0
    Last Post: 03-02-2010, 08:28 AM
  4. include-prelude/include-coda
    By devin in forum Java Servlet
    Replies: 0
    Last Post: 02-11-2009, 07:33 PM
  5. jsp:include and include file
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 04:19 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
  •