Results 1 to 9 of 9

Thread: Compiling Java files into a runnable Jar file?

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default Compiling Java files into a runnable Jar file?

    I've done this:


    However when I run the resulting JAR file, nothing happens. I've tested it on my Windows 8 Computer as well as my Windows 7 Laptop.
    Any help will be much appreciated.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Sec, I know how to do this with eclipse, gotta get on my computer that has it

  3. #3
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Okay gogogo!

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Oh god.. another eclipse user Why the bloated/confusing IDE?

    Uhh you can just command line it. If your Jar doesn't have a manifest embedded, it won't run of course. When I used eclipse, I just right clicked the project, press export chose jar and spam clicked next. Works lol.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Okay gogogo!
    Yea uhh.. I just tried it and the same thing is happening to me... awkward

  6. #6
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Run it commandline with admin. tell me what happens.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Oh god.. another eclipse user Why the bloated/confusing IDE?

    Uhh you can just command line it. If your Jar doesn't have a manifest embedded, it won't run of course. When I used eclipse, I just right clicked the project, press export chose jar and spam clicked next. Works lol.
    I right clicked and viewed the archive and it did have a manifest in there.
    And idk, Eclipse just stuck with me from the RSBuddy days

    Quote Originally Posted by Kasi View Post
    Run it commandline with admin. tell me what happens.
    How do :x

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    I right clicked and viewed the archive and it did have a manifest in there.
    And idk, Eclipse just stuck with me from the RSBuddy days


    How do :x


    Open CMD and type this:

    java -jar "C:/Users/Sin/SomeJarFile.jar"


    Change the above to the path of your Jar. Keep the quotes. What does it print?
    I am Ggzz..
    Hackintosher

  9. #9
    Join Date
    Sep 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just right clicked the project.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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