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

    Default include jre in java project


    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
    Rep Power

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