Thread: Jar Execution.

Results 1 to 9 of 9
  1. #1 Jar Execution. 
    Registered Member Capsize's Avatar
    Join Date
    Jan 2011
    Posts
    373
    Thanks given
    71
    Thanks received
    35
    Rep Power
    0
    Well, I assume the problem is with skinning (theme) the client. But that doesn't give me errors or problems. I can run it through Eclipse fine, it loads all and the skin is there. But when I export it as a jar, it does not open. I'm not sure why it can run in Eclipse without problems but does not run when I export it.

    I'm using substance.jar w/ trident.jar.
    Reply With Quote  
     

  2. #2  
    Registered Member Capsize's Avatar
    Join Date
    Jan 2011
    Posts
    373
    Thanks given
    71
    Thanks received
    35
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    run it with a .bat and check the errors.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Mar 2013
    Age
    24
    Posts
    1,767
    Thanks given
    335
    Thanks received
    386
    Rep Power
    318
    I actually have the same problem when exporting any application that has a custom packaging (aside from the default package) to a jar file, it gives me a RunTime exception that it could not load or find main class. I'm starting to think Eclipse doesn't export the classpath...
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    May 2013
    Posts
    458
    Thanks given
    145
    Thanks received
    59
    Rep Power
    0
    Are you selecting "Package required sources" or something along those lines when your exporting it. Also are you selecting "Executable jar file" (or runnable I can't remember) as the thing your jarring it to.
    Reply With Quote  
     

  6. #6  
    Registered Member Capsize's Avatar
    Join Date
    Jan 2011
    Posts
    373
    Thanks given
    71
    Thanks received
    35
    Rep Power
    0
    Quote Originally Posted by Datbeastmayne View Post
    run it with a .bat and check the errors.
    It loads perfectly fine with the .bat
    Quote Originally Posted by Squidward View Post
    I actually have the same problem when exporting any application that has a custom packaging (aside from the default package) to a jar file, it gives me a RunTime exception that it could not load or find main class. I'm starting to think Eclipse doesn't export the classpath...
    Mine just doesnt open up.

    Quote Originally Posted by Abexlry View Post
    Are you selecting "Package required sources" or something along those lines when your exporting it. Also are you selecting "Executable jar file" (or runnable I can't remember) as the thing your jarring it to.
    Eclipse gives two options when exporting Java; Jar File and a Runnable Jar File but I'm selecting Jar File. Everything needed for the client is selected for exporting as well.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Orrcus View Post
    It loads perfectly fine with the .bat

    Mine just doesnt open up.


    Eclipse gives two options when exporting Java; Jar File and a Runnable Jar File but I'm selecting Jar File. Everything needed for the client is selected for exporting as well.
    Use runnable.
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Banned

    Join Date
    May 2013
    Posts
    458
    Thanks given
    145
    Thanks received
    59
    Rep Power
    0
    Yea use runnable not the plain jar file
    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Registered Member Capsize's Avatar
    Join Date
    Jan 2011
    Posts
    373
    Thanks given
    71
    Thanks received
    35
    Rep Power
    0
    Quote Originally Posted by Datbeastmayne View Post
    Use runnable.
    Quote Originally Posted by Abexlry View Post
    Yea use runnable not the plain jar file
    Will try it out, thanks.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 20
    Last Post: 09-06-2013, 11:40 AM
  2. Replies: 95
    Last Post: 06-17-2012, 11:25 PM
  3. jar - execute 2 class files
    By Paladin in forum Application Development
    Replies: 9
    Last Post: 05-14-2011, 10:36 AM
  4. Executing .jar files
    By 2pro in forum Application Development
    Replies: 33
    Last Post: 03-14-2010, 04:15 PM
  5. [Req] Turn my client into Executable Jar
    By AshleyProductions in forum Help
    Replies: 0
    Last Post: 02-28-2009, 12:55 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •