Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Eclipse not exporting  (Read 1272 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123

JGO Knight


Medals: 22
Projects: 3
Exp: 10-12 months


Gamer's Helmet


« Posted 2013-06-27 19:04:27 »

Hey, my eclipse has stopped  exporting my project correctly meaning that the jar stops working at least on my computer. I have exported this project numerous times before but one day after not changing anything, it just stopped. (this is especially ironic because it was such a large update Emo) i then tried to export another project and the jar ran fine. any ideas?

all i do id:
select the project (.classpath and .project too)
select the main class
and hit export

here is the jar (if it works for you consider it an early update  WinkHere

Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #1 - Posted 2013-06-27 19:12:23 »

It could be a resource problem. Like the resources are not in the right place?

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline kingroka123

JGO Knight


Medals: 22
Projects: 3
Exp: 10-12 months


Gamer's Helmet


« Reply #2 - Posted 2013-06-27 19:19:22 »

i've opened up the jar with winrar and all the resources and class files are in the correct place its just not running at all for seemingly no reason

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online BurntPizza
« Reply #3 - Posted 2013-06-27 21:12:09 »

Open a command line and navigate to the directory (folder) where the jar is, and run it with:
1  
java -jar myjarname.jar


It will show any errors you are getting, like manifest issues, etc, which commonly appear as the jar simply not running.
Offline actual

JGO Coder


Medals: 24



« Reply #4 - Posted 2013-06-27 21:25:38 »

Quote
I have exported this project numerous times before but one day after not changing anything, it just stopped. (this is especially ironic because it was such a large update ).

Both of these things can't be true. Did you keep your jar settings the same but make a lot of code changes? If so, did you add any jars to your library or do you have a new entry point for the game?
Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Coding with bad posture since 2011... Nonstop.


« Reply #5 - Posted 2013-06-27 22:22:59 »

Quote
I have exported this project numerous times before but one day after not changing anything, it just stopped. (this is especially ironic because it was such a large update ).

Both of these things can't be true. Did you keep your jar settings the same but make a lot of code changes? If so, did you add any jars to your library or do you have a new entry point for the game?
He meant he did not change eclipse!
[TEXT TO FILL IN SPACE TO QUALIFY FOR AT LEAST 10% OF TEXT THAT IS NOT QUOTE]

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline kingroka123

JGO Knight


Medals: 22
Projects: 3
Exp: 10-12 months


Gamer's Helmet


« Reply #6 - Posted 2013-06-27 22:35:29 »

exactly it just stopped working for this specific project

Offline actual

JGO Coder


Medals: 24



« Reply #7 - Posted 2013-06-27 22:42:22 »

Ok, it wasn't clear to me. Are you using version control? If so, you could pull a snapshot of your project that was the last time you remember it working and re-run it. If not, just do what BurntPizza recommended which will give you a better clue as to what the error is.
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #8 - Posted 2013-07-01 14:52:41 »

No response in 4 days.....yet no one pointed out that it doesn't run because an "input == null" error occurs on an ImageIO.read(...) call?

Offline kingroka123

JGO Knight


Medals: 22
Projects: 3
Exp: 10-12 months


Gamer's Helmet


« Reply #9 - Posted 2013-07-02 01:34:27 »

but how would i fix that, does that mean that there is an error in my image finding

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #10 - Posted 2013-07-02 01:55:26 »

If input == null, then yes the resource is not found. Check if the path is correct. If you don't know how to get URL's properly in JAR files, search JGO for the millions of posts I and others have posted about the subject Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (12 views)
2014-04-15 18:08:23

BurntPizza (11 views)
2014-04-15 03:46:01

UprightPath (24 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (108 views)
2014-04-08 23:06:04

tom_mai78101 (208 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!