What is required for my program to run on a computer without Java installed

I was just curious if any body knew how to make a Java program that will open and run on a double click without java being installed on that computer. I've seen people mention that we can create a shortcut (though I'm not sure how) so that the program will run on a double click. I've also seen a link to a program that creates .EXE files but I would like to avoid using that.
I have a small group of friends that I would like to share one of my programs with, but they are not Java programmers and I don't want to clutter up their Hard Drive with the Java JDK or SDK.

First, make sure you package your program in a JAR file, will make things easier...
Under the folder you have the SDK installed on your computer, should be a folder named JRE.
Make a copy of the JRE in a folder underneath where your JAR file resides, for instance...
You Jar File is:
C:\JavaProgs\MyProject\TheJar.jar
Then put:
C:\JavaProgs\MyProject\JRE\...
In the C:\JavaProgs\MyProject\ directory, make a Batch file. Batch files are text document scripts that run windows commands. Just use a plain text editor and create a file called RunTheJar.bat.
The batch file should consist of exactly 1 line:
start .\JRE\bin\javaw.exe -jar TheJar.jarThen the users can just double-click the batch file to run your program...

Similar Messages

  • How do you make a jmf application run on a computer without jmf installed?!

    I can create a jar with a program i made using jmf. It works on my comp, but i realized tht it doesn't work on others computers because they don't have jmf installed. How do i incorperate the jmf in my jar so that it can run on any comp whether or not they have jmf installed.
    Please help me asap, i really need to get this done.
    Thank You

    So here's some more info, Not only have i never used a mac before, I don't really know how to use one, and my girlfriend is at school pretty far away right now, shes not good with computers either. So i don't wanna have to resort to asking her to install jmf on her macbook. If i do have to do that i guess i could get her friend to help her out.
    But i'd still rather get this problem fixed. How do i incorperate jmf with my program, so it runs on all computers. I checked the native folder in SipCommunicator 1 release 2 and 3, but its only one dll file called ShellLink.dll
    I checked everywhere in both of the downloads and i couldn't find any other dlls.
    I must be downloading the wrong thing....
    I downloaded
    SIP Communicator 1.0-alpha2 release: Generic installer for all OSs
    and also
    SIP Communicator 1.0-alpha3 nightly builds: Generic installer for all OSs, Java installation required
    The reason i got the generic installer is because I have a vista, and i want to run this on a mac. I don't have or know any one living near me with a mac, so i need to be able to build it on my comp.

  • TS3212 I'm runing IE9 & I'm unable to download iTunes.  I receive this error each time: There is a problem with this windows installer package.  A program required for the program to complete could not be found.  Contact your support personnel or package

    I'm running IE 9 & windows 7.  I'm unable to download iTunes.  I receive this error each time: There is a problem with this windows installer package.  A program required for the program to complete could not be found.  Contact your support personnel or package vendor.

    There is a problem with this windows installer package.  A program required for the program to complete could not be found.  Contact your support personnel or package vendor.
    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Install Acrobat Pro program, with 32-bit Lenovo computer without problems. Try to install HP computer with 64 bits and rejects me. I wish instalárselo. What do I do?

    Install Acrobat Pro program, with 32-bit Lenovo computer without problems. Try to install HP computer with 64 bits and rejects me. I wish apply. What do I do?

    What is the version of Acrobat you are trying to install?
    Response: Acrobat Pro 11.
    Are you getting any error message?
    Response: I am not allowed to install.
    Acrobat can be installed in 64 bits machine.
    Response: every attempt in the 64-bit computer I rejected all attempts.
    2014-06-12 10:42 GMT-05:00 Anoop9178 <[email protected]>:
        Install Acrobat Pro program, with 32-bit Lenovo computer without
    problems. Try to install HP computer with 64 bits and rejects me. I wish
    instalárselo. What do I do?  created by Anoop9178
    <https://forums.adobe.com/people/Anoop9178> in *Creating, Editing &
    Exporting PDFs* - View the full discussion
    <https://forums.adobe.com/message/6453389#6453389>

  • Starting a java program on a ordinary windows computer (without JDK)

    I have made an ordinary java program which reads from a specified text file, changes it a bit and then creates a new file with the new text. This works good when I use a computer with an JDK installed, but I must be able to run this program on a Windows 2000 computer (without any "extras" installed, only the programs that are included in Windows 2000). The reason for this is that I'm not allowed to install programs on this computer. Can anyone help me?

    You neither need to
    1- have a JRE installed on the computer (Java Runtime Environment)
    The Java Virtual Machine to convert the compiled byte code into the necessary instructions for the computer it is running on... W/O it...can't run it.
    2- create a native executable...there are packages etc for which this is true. If you can install NOTHING on the computer... you would either
    A- Find one of the packages that creates .exe files from java or class files
    B- Bundle the JRE with it... it doesn't need to be 'installed' persay-- unpack the directories and create a batch file that calls <path-to-java>/java <path-to-program>myclass
    C- Write it in C or C++
    That is not an inclusive list of possibilities... Java's portability comes with the price-tag of needing something that can run it... once you have that something (and the JRE is fairly ubiquitous, or at least, easy to get if not present generally) ... you can run the program.
    ~Dave

  • Is there a way of compiling a VI so that it runs on a PC without Labview installed?

    Is there a way of compling/exporting/publishing a finished VI so that it runs on another PC without LabVIEW installed on it?
    Message Edited by bluefocs on 04-29-2009 10:34 AM

    You will always need the LabVIEW Runtime Engine of exactly that version the VI was built in.
    Every VI is executable in the appropriate runtime engine without the need for the developement system.
    In order to start the execution of a VI without using the developement system, you most often use .exe or sometimes .dll as files. And i think you are up to this.
    You need the LV Application Builder to build an exe or dll containing your application. The Application Builder is part of the LV Professional Developement System, the other ones (Base and Full) can include it as an extra tool (liable to pay costs).
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • HT5254 Flashback Removal Tools available for those WITHOUT Java installed?

    Apple's own KB says that this tool is available for "OS X v10.7 or later without Java installed". Is this a typo? Am I missing something? (I do that from time-to-time.)
    You must have Java installed in order to become infected by Flashback.
    I have Java installed, and when I ran Software Update, there was nothing new available. Can anyone with Java installed confirm that they were able to download and run this tool via Software Update?

    Okay, as long as the recent Java update performed the same job and removed the malware, I guess Java users are in good shape.
    I never had Flashback in any case, but this KB was confusingly worded—at least to me.

  • What slideshow with music maker program will run on Mac Powerbook G4?

    What slideshow with music maker program will install and run on my Mac Powerbook G4 1.5.8 1.33 GHz OSX  laptop? Or are there any out there, I know my system is old but it's all I got for now.

    There are many ways to produce slide shows using iPhoto, iMovie or iDVD and some limit the number of photos you can use (iDVD has a 99 chapter (slide) limitation).
    If what you want is what I want, namely to be able to use high resolution photos (even 300 dpi tiff files), to pan and zoom individual photos, use a variety of transitions, to add and edit music or commentary, place text exactly where you want it, and to end up with a DVD that looks good on both your Mac and a TV - in other words end up with and end result that does not look like an old fashioned slide show from a projector - you may be interested in how I do it. You don't have to do it my way, but the following may be food for thought!
    Firstly you need proper software to assemble the photos, decide on the duration of each, the transitions you want to use, and how to pan and zoom individual photos where required, and add proper titles. For this I use Photo to Movie. You can read about what it can do on their website:
    http://www.lqgraphics.com/software/phototomovie.php
    (Other users here use the alternative FotoMagico:  http://www.boinx.com/fotomagico/homevspro/ which you may prefer - I have no experience with it.)
    Neither of these are freeware, but are worth the investment if you are going to do a lot of slide shows. Read about them in detail, then decide which one you feel is best suited to your needs.
    Once you have timed and arranged and manipulated the photos to your liking in Photo to Movie, it exports the file to iMovie  as a DV stream. You can add music in Photo to Movie, but I prefer doing this in iMovie where it is easier to edit. You can now further edit the slide show in iMovie just as you would a movie, including adding other video clips, then send it to iDVD 7, or Toast,  for burning.
    You will be pleasantly surprised at how professional the results can be!
    To simply create a slide show in iDVD 7 onwards from images in iPhoto or stored in other places on your hard disk or a connected server, look here:
    http://support.apple.com/kb/HT1089
    All above suggestions will work on a PPC Mac running Leopard.

  • Questions on SETSPN syntax and what is required for MANUAL AD auth

    I'll preface this by stating that I don't need to do all the extra stuff for Vintela SSO, SSO to database, etc.  I just need to know precisely what is necessary to do to get AD authentication working.  I managed to get it working in XIr2 previously but it's been so long and I'm not 100% sure that everything I wound up doing was absolutely necessary that I wanted to sort it out for good as we look at going to XI 3.1 SP3.
    In the XI 3.1 SP3 admin guide, page 503, the SETSPN command which is
    used as part of the setup process to establish a service account to
    enable AD authentication is outlined as follows:
    SETSPN.exe -A <ServiceClass>/<DomainName> <Serviceaccount>
    The guide suggests that the <ServiceClass> can be anything you want to
    arbitrarily assign. If I choose something other than the
    suggested "BOBJCentralMS" value, is there anywhere else I have to
    specify this value to allow the service account to function properly?
    The guide suggests that the <DomainName> should be the domain name on
    which the service account exists however I've seen many posts online which seem to
    indicate this <DomainName> should actually be the FQDN of the server
    running the CMS service instead of the general domain name.
    Clarification there would be very helpful if anyone has some insight.

    The CMS account can have an SPN of spaghetti/meatballs, there are no requirements (cept 2 characters on each side of the / I believe). The SPN created should be the value entered in the CMC > Authentication > Windows AD
    The account must run the SIA and it therefore must have AD permissions. Now if you are using IIs or client tools you don't even need an SPN. The SPN is for kerberos only which is required for java app servers.
    The vintela SSO white paper in the this forums sticky post explains the roles of a service account.
    Regards,
    Tim

  • What is Required for Distribution of Desktop App

    Hi,
    I'm trying to figure out what is required to distribute JMF. I don't want to make users install an executable, I just want to include required JARS/data files/libraries for a streaming webcam (no audio). (I have read the README and searched all over online, but I'm still not sure)
    I create my app, and I have customizer.jar, jmf.jar, jmf.properties, mediaplayer.jar, multiplayer.jar, sound.jar in the lib folder. Although I only need the jmf.jar, and possibly the jmf.properties? I am using NetBeans.
    Anyways, I still can't get it to work on another WinXP computer. If I disconnect my camera on my computer, the app still knows what type of device camera it is looking for (vfw:Microsoft WDM Image Capture (Win32):0), but when I trying to run it on another computer with or without the camera connected , it doesn't seem to know because no devices print out when I print the list.
    Thanks for your time, I am out of ideas.
    J

    806359 wrote:
    Captfoss,
    Do you know where I can find a programmer's guide that explains the Dll's that I need to include for JMF distribution without the installer? I can't find documentation anywhere. The Windows delivery doesn't seem to include any, so I guess they are only installed with the executable installer?AFAIK, there isn't one...
    Or better yet, do you know much about DirectShow? or can you point me to a nice replacement to JMF, possibly one that has some JNI included? I just want a lightweight simple video framecapture support on Windows 7. ( I have read that JMF might not work on Windows 7 anyways) I can't believe I haven't found anything good online yet, maybe I am looking in all the wrong places.Adobe Flex and Silverlight 4 are probably the most commonly used "new" technologies for dealing with AV data... You can use C/C++/C# to use some native AV libraries, but as far as using Java, there really isn't much support for video because you really need lower-level access than Java provides to take advantage of things like hardware acceleration and such...
    So all of the Java APIs (JMF, FMJ, Quicktime for Java, etc) are essentially Java wrappers for native code... so those are the 3 things I'm aware of that do AV in Java...

  • What legal requirements for releasing an Microsoft Excel add-in?

    Hello,
    We developed an application to be released as a Microsoft Excel add-in. What are the legal requirements for releasing an add-in? We are located in Manitoba, Canada.
    Kurt Jakob,
    C.E.T.
    Certified Engineering Technologist
    Horizon Innovations

    You are free to release the add-in any way you want - for free or commercially. There are no legal requirements.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • What apps can I download for my account, Photoshop CC, and what is best for that program

    What apps can I download for my account, Photoshop CC, and what is best for that program

    Hi Bosseb,
    You can install products listed in the Download Center, all are included except Photoshop Touch
    https://creative.adobe.com/products
    On the left hand margin you can see products based on field, Audio/Video, Gaming, Graphic Design, Photography, etc.
    If you have a fulll membership you can download any that are included that interest you.
    -Dave

  • What DVD Require for AIX IBM

    Dear All,
    Please Suggest me We want install SAP 2005 On AIX IBM
    What DVD Change for AIX IBM Os.
    We want to install SAP on AIX IBM Operating System so We have all sap DVD for windows
    IS any difference for AIX IBM Os.
    Thanks
    Kumar

    "SAP 2005" is not a product. Contact you SAP Sales Representative to help you define which SAP product is best suited for your business needs

  • How can i make the .exe run on the computer without Labview?

    .exe can't run on computer without Labview.  Is there any way?  Thank you.

    You need to install the LabVIEW Runtime engine for your specific LabvIEW version.
    In the project window you can create an installer that includes the Runtime Engine (RTE).
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Anyone know what I need for basic program text?

    So I have a 'server' (really an older desktop) running Arch, and only recently have I installed a GUI which I use remotely through FreeNX or VNC. The reason for this is because sometimes it's faster to get things done through the GUI than the command-line interface. I installed FluxBox since it's very light weight and good enough for my purposes.
    For some reason though, several programs appear to be missing all their text. I don't know what's up with this really... it looks like the text is replaced with underscores.
    Here is an image of what I'm talking about.
    Any ideas on what packages I may be missing? I figured installing Fluxbox and things like Nautilus would have automatically included everything I need... but that appears to not be the case :s.
    P.S. Thanks moderator for deleting the image link, which I didn't have saved. Would it have been so hard to just change it into a URL?
    Last edited by Ownaginatious (2012-07-24 00:24:41)

    Try playing with lxappearance ( specifically, as noted by McDoenerKing, font settings ).

Maybe you are looking for