Results 1 to 6 of 6
  1. #1
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default Making application run by itself

    Hello all I am try to make the game I program run by itself without needing my Java compiler.


    Here is some information that may be useful to know
    Its a Class with 7 other classes going into it
    I used AudioChip so I need to make sure I have my wav file (and its still not a Applet)
    I imported Images so I am going to need them

    I use Bluej as my compiler which i know can make a jar file but they never work.

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    First of all, BlueJ is an IDE, not a compiler.
    Secondly, you never run a Java program with a compiler - you compile with a compiler.
    Thirdly, every Java program requires a JVM to be installed in order to run.

    With all this in mind, you can make an executable jar using the jar command. Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

    Default

    Well I have look at that page you just link me before but I don't understand on how to make a jar file even with the guide help like what program do I need to make one.

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    The command line program "jar" that comes with the java development kit (JDK). If you're using BlueJ then it should already be installed somewhere.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    I use Bluej as my compiler which i know can make a jar file but they never work.
    Perhaps if you look into this further, why you can't get BlueJ to help make Jar files, you'll be able to solve this matter. Making Jars is one reason I like Eclipse.

  6. #6
    quickfingers is offline Member
    Join Date
    Dec 2007
    Posts
    21
    Rep Power
    0

Similar Threads

  1. Making Documentation
    By Adam Cruge in forum New To Java
    Replies: 6
    Last Post: 04-11-2009, 08:02 PM
  2. Help making table
    By jls7168 in forum New To Java
    Replies: 2
    Last Post: 01-26-2009, 04:53 PM
  3. Making Java Application Executable
    By jadaleus in forum Advanced Java
    Replies: 4
    Last Post: 10-23-2008, 01:59 PM
  4. Making triangle
    By banie in forum New To Java
    Replies: 4
    Last Post: 02-02-2008, 12:23 PM
  5. Help with making this algorithm better
    By RLRExtra in forum New To Java
    Replies: 6
    Last Post: 01-17-2008, 05:11 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
  •