Re: How do you execute a program outside of IDE?

You need to package your program into a JAR file
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

paranoiapenguins wrote:
I packed it into a Jar, but when I double click it says to pick a program to open it with. I want something that doesn't require the people downloading it to download anything else.
>I packed it into a Jar, but when I double click it says to pick a program to open it with. I want something that doesn't require the people downloading it to download anything else.
If you're running windows, it should automatically associate jar files with java for you. I haven't actually run a windows system in several months and haven't installed java on a windows machine in over a year, so my knowledge may be a bit outdated. If, on the other hand, you are running *NIX, then the best you're going to be able to do is supply a shell script.  (You could also package a batch file with windows, if you prefer).  Tarball your jar and your shell script together and distribute that single file.  They can then untar them and then run the shell script.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How do you execute this program on a DVD in a PowerShell statement

    How do you execute this program on a DVD in a PowerShell statement?
    E:\path /program1

    You should be able to just type the command. You may need to quote the path.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • How do you uninstall a program from mountain lion osx

    Hi first time on mac forum
    my question is being new to imacs how do you uninstal a program from an imac running osx mountain lion. And of course get rid of the icon for that program from launchpad
    thanks

    What app do you want to uninstall? If it's an app that is provided by the installation of OS X, e.g. Safari, Reminders, Notes, Mail, etc. - there are many others - they shouldn't be uninstalled.
    If it is an app that was downloaded from the Mac App Store, in Launchpad click and hold its icon until it jiggles. Click on the 'x' in the corner to delete it.
    If it's an app that was installed using an installer program it is always best to see if an uninstaller is available from the developer of the app (there is often an uninstaller bundled in with the installer package).
    Other third party apps that are simply drag-installed into the Applications folder - like Skype, for example - can be just dragged to the Trash and will be deleted when the Trash is emptied.

  • How do you determine which programs or processes run following a reboot?

    How do you determine which programs or processes run following a reboot?  Also when you reboot Mac tries to reopen anything running before the reboot.  Is there any way to turn off that functionality?

    10.7 Lion
    dadpope wrote:
    How do you determine which programs or processes run following a reboot?
    Login items
    Follow the  instructions in this article.
    http://support.apple.com/kb/PH4333
    Also when you reboot Mac tries to reopen anything running before the reboot.  Is there any way to turn off that functionality?
    System Preferences > General
    Section: Number of recent items
    Uncheck the box for "Restore windows when quitting and re-opening apps".

  • How do you add a program to a "Space" in Lion?

    I can see how to add a space in Mission Control, but how do you assign a program to a Space within Lion?  It carried over my settings from Snow Leopard so there must be a way to change it or add to it.  Can anyone find the hidden Space's feature? 

    Right click on the application icon in the dock.  Select "Options" and then Choose to assign it to the particular space that you want (or to all or no spaces).
    Cheers,
    Rodney

  • How do you change what programs open on starting up?

    How do you change what programs open on start up?

    By changing the list of login items for your user account in System Preferences, and if Lion is automatically reopening applications, which ones are running when the computer is shut down.
    (64981)

  • How do you know what programs to uninstall?

    Cannot get rid of GeekBuddy pop up. Tried several times to uninstall and then restart computer.I need to free up space on HP Tools (E)How do you know what programs to uninstall?I have no idea what board to choose.

     Hi  ,
    I would be happy to assist if needed as there are many models of HP Notebooks, I would need the model number.
    How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Please let me know.
    Thanks.

  • HOW DO YOU UNINSTALL A PROGRAM IN YOU MAC

    HOW DO YOU UNINSTALL A PROGRAM IN YOU MAC

    to uninstall apple software (what came on the mac) and most other 3rd party applications you can do as mentioned above. however some third party apps require you to use their uninstaller to remove all components of the application from your computer.
    can usually do google search to see if an uninstaller is required to remove something or not!

  • How do you uninstall a program IOS 5.1.1?

    how do you uninstall the program IOS 5.1 ? ipod was due for update and my son updated, now wishes to uninstall it. Can he? How?

    to uninstall apple software (what came on the mac) and most other 3rd party applications you can do as mentioned above. however some third party apps require you to use their uninstaller to remove all components of the application from your computer.
    can usually do google search to see if an uninstaller is required to remove something or not!

  • How do you convert windows programs to imac

    how do you convert windows program downloads to your imac

    You need to use a tool which enables them to be run on the iMac, such as CrossOver Mac, VirtualBox, or Boot Camp.
    (66074)

  • HT204216 how do you uninstall a program?

    How do you uninstall a program?

    If the app doesn't include its own uninstaller just drag it to the Trash.

  • How do you document ABAP programs?

    hi
    How do you document ABAP programs? Do you use program documentation menu option?
    Regards
    Ashok Kumar

    Hi,
      good for selection screens:
    when in the ABAP Editor, in edit mode, choose
    Goto->Documentation.
    This gives you a SAPscript-type screen with many headings. Enter the instructions that you want your end-user to see when they run the program. SAP supplies many different headings here, choose the ones relevant to your program.
    Save and activate.
    When you run your program, when you are at the selection screen, choose
    Help->Application Help
    and you see your user documentation!
    I expect Sapscript experts can make this look even better, with links to other help topics etc.
    Regards

  • How do you remove a program on Mac

    how do you remove a program on a Mac

    michaelsip4 wrote:
    Depending on the version of osx you are using - you can drag it to the trash,  you can go to launch pad and delete.  There is also appcleaner as stated above which works well
    I am a week old newbie to ML.  Haven't fully explored Launch Pad yet.  Thanks for the heads up!
    One thing about Hazel that I love is that it runs in the background.  Any file that I trash a window pops up showing all the straggler files w/select options for each straggler file to keep or trash. 
    Before I got Hazel, I noticed when I deleted an app after using it, the preference (plist) files have not been deleted when I manually checked.  This also includes the apps that install through "packages." 

  • How do you make to program the radio station on my remote contol ?

    how do you make to program the radio station on my remote contol ?

    Programming the radio stations (in hifi-mode) is explained in the "getting started" manual. Be aware of the fact that when you unplug the power cable all memory settings are lost.
    JaDi.

  • How do you exit a program or ap on the iPad mini?

    How do you exit an ap or program on the iPad mini?

    Tap the X (see top left)
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%203/3867644ff823d342a6b fc9d866a2e861.jpg

Maybe you are looking for

  • Presets in Lightroom mobile

    I have a lot of custom presets that I love to use. Is there a way to import these presets into Lightroom mobile?

  • Using 27 monitor for face time

    How do I use my macbook pro and my 27 iinch apple monitor with face time.

  • Help with a New Case for the ZEN Touch 20

    Does anyone know of a case other than the one that came with the player?Something I can use,not like the pouch. It would be nice to change songs or even adjust the volume with out having to pull the player out all the time. If some one from Creative

  • Java.lang.UnsatisfiedLinkError: running tomcat on java headless?

    Dear all, I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown: java.lang.UnsatisfiedLinkError:

  • Screensaver lock not locking after latest security update

    Hi, I have a dual 1.8 G5 running 10.4.7. After the last security update the security preference that allows the screensaver activation to lock the account no longer works. I also tried enabling the keychain access menu item and the "lock screen" func