Results 1 to 10 of 10

Thread: Eclipse is being retarded.

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

    Default Eclipse is being retarded.

    I can't export my jar.

    Here is a list of projects it lets me export...




    And here is a list of projects I actually have in eclipse..





    So why can I not actually export the jars that I need to.. ?

  2. #2
    Join Date
    Nov 2006
    Posts
    449
    Mentioned
    84 Post(s)
    Quoted
    145 Post(s)

    Default

    Those aren't projects in the first screenshot, those are launch configurations. If you want just a jar, export as a jar and it won't ask you for a launch configuration. If you want a runnable jar (aka main method in the manifest), you need to create a run configuration first, usually the easiest way is to run your project in eclipse, then it should populate the launch config in the list.

    First they ignore you, then they laugh at you, then they fight you, then you win.
    Stance on Leechers

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

    Default

    Quote Originally Posted by core View Post
    Those aren't projects in the first screenshot, those are launch configurations. If you want just a jar, export as a jar and it won't ask you for a launch configuration. If you want a runnable jar (aka main method in the manifest), you need to create a run configuration first, usually the easiest way is to run your project in eclipse, then it should populate the launch config in the list.
    I did run it in eclipse :s many time

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

    Default

    Quote Originally Posted by Officer Barbrady View Post
    I did run it in eclipse :s many time
    Right click the project and press export. Choose Java->Jar. Choose export resources and source files.
    Choose Finish.

    Should now have a run-able jar file and be shot for using eclipse.

    It is harder to help with IDE trouble than it is to help with coding trouble.
    Last edited by Brandon; 02-28-2014 at 05:30 PM.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Right click the project and press export. Choose Java->Jar. Choose export resources and source files.
    Choose Finish.

    Should now have a run-able jar file and be shot for using eclipse.

    It is harder to help with IDE trouble than it is to help with coding trouble.
    IntelliJ for life?

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

    Default

    Quote Originally Posted by Brandon View Post
    Right click the project and press export. Choose Java->Jar. Choose export resources and source files.
    Choose Finish.

    Should now have a run-able jar file and be shot for using eclipse.

    It is harder to help with IDE trouble than it is to help with coding trouble.
    I do that but when I double click the .jar nothing pops up -.-.-.-.-.-.-.-


    Installing netbeans ATM

  7. #7
    Join Date
    Nov 2006
    Posts
    449
    Mentioned
    84 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    I do that but when I double click the .jar nothing pops up
    Because choosing Export > Java > JAR File does not create a runnable jar.

    Export > Java > Runnable JAR File creates a runnable jar.

    The problem is not with the IDE.

    First they ignore you, then they laugh at you, then they fight you, then you win.
    Stance on Leechers

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

    Default

    Quote Originally Posted by core View Post
    Because choosing Export > Java > JAR File does not create a runnable jar.

    Export > Java > Runnable JAR File creates a runnable jar.

    The problem is not with the IDE.
    When I choose runnable it doesn't have my launch configuration

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

    Default

    It does create a run-able jar :l He is trying to double click the jar and that's why it isn't running?


    Quote Originally Posted by Officer Barbrady View Post
    I do that but when I double click the .jar nothing pops up -.-.-.-.-.-.-.-

    Because the jar might not have a proper manifest OR you might not have your registry set right..

    C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %* is what it needs to be opened with through double clicking.. That requires these two Default keys to be modified: HKEY_CLASSES_ROOT\jarfile\shell\open\command and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jarfile\shell\ open\command


    However, if you don't care about double clicking then try pressing "WindowsKey + R" and then type "cmd".
    In cmd, type "java -jar MyJarFile.jar"

    where MyJarFile is the location of your jar.. if it runs fine, there is no problem with the IDE being retarded or your Jar file.. It's your system.
    Last edited by Brandon; 03-01-2014 at 01:38 AM.
    I am Ggzz..
    Hackintosher

  10. #10
    Join Date
    Nov 2006
    Posts
    449
    Mentioned
    84 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    It does create a run-able jar :l
    Yes, this is technically true.

    But in order to be able to run the jar, make sure you don't click "Finish" until you click "Next" all the way through to the JAR manifest specification and specify your main class.

    The Runnable Jar option just hides away much of the configuration in favor of making the process simpler.

    First they ignore you, then they laugh at you, then they fight you, then you win.
    Stance on Leechers

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
  •