Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    Maryland
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Executable Java Applications

    I'm trying to develop a Java application for my Mom's school, but I would like it to be executable. From what I've seen I need to make an executable jar file but am at a lost on how to do this. I'm using JCreator 3.5 if that makes a difference.

  • #2
    cfc
    cfc is offline
    Regular Coder
    Join Date
    Dec 2004
    Location
    Keswick, Ontario
    Posts
    251
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First google result:
    http://csdl.ics.hawaii.edu/~johnson/...jar-files.html

    His example isn't exactly executable because it requires an argument, but if you remove the reference to args[0] in the source file and recompile it, it should be executable by double-click.

    Edit:
    After another quick skim through, I don't think he mentions this:
    Double-clicking jar files invokes "java -jar %1" (or something along those lines, on my system it uses 'javaw.exe -jar "%1" %*' instead) on Windows systems with J2REs installed and probably a few other platforms as well.
    Last edited by cfc; 03-24-2005 at 01:14 AM. Reason: add more info


  •  

    Posting Permissions

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