Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
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 Jar problem. It really doesn't make sense.  (Read 1082 times)
0 Members and 1 Guest are viewing this topic.
Offline SkyAphid
« Posted 2012-01-17 03:41:25 »

Just look at these.



Then,



and then...




Can anyone shed some light?

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-01-17 03:48:22 »

Open the JAR file in some a ZIP tool, preferably 7zip. Can you find edu/bgp/global/Game.class?

Offline SkyAphid
« Reply #2 - Posted 2012-01-17 04:07:09 »



Yeah.
lol. Didn't know I could pop jars open with WinRAR though. Haha.

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-01-17 04:08:05 »

A JAR file is a ZIP file with a renamed extension Wink

Ok now go back to the root, go to the "META-INF" folder and open the MANIFEST.MF file in a text editor.

EDIT: Why is Game.java in there too? O_o

Offline SkyAphid
« Reply #4 - Posted 2012-01-17 04:10:11 »

"Manifest-Version: 1.0
Sealed: true
Main-Class: edu.bgp.global.Game"

Is what it said.

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #5 - Posted 2012-01-17 04:11:19 »

Huh, everything is fine with your JAR file. Could you send it to me? I'll try it running it here. If it works for me, then your Java installation is messed up :S

Offline SkyAphid
« Reply #6 - Posted 2012-01-17 04:17:22 »

Sent a PM.

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2012-01-17 04:21:28 »

I got a "Java Exception has occurred." On the command prompt, it said it couldn't find the Slick classes Tongue

Of course, how could I forget. You have to edit the MANIFEST.MF file properly, follow these directions in the first bullet.

Offline SkyAphid
« Reply #8 - Posted 2012-01-17 04:22:49 »

Thanks man!

“Life is pretty simple: You do some stuff. Most fails. Some works. You do more of what works. If it works big, others quickly copy it. Then you do something else. The trick is the doing something else.” ~Leonardo da Vinci
Offline sproingie

JGO Kernel


Medals: 202



« Reply #9 - Posted 2012-01-17 05:57:09 »

A JAR file is a ZIP file with a renamed extension Wink

Actually no, META-INF and META-INF/MANIFEST.MF have to be the first and second entries in the TOC or it's not a valid jar file.  Just in case anyone was thinking about using zip and renaming it in order to create a jar file.  For reading though, yeah it's a .zip
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2012-01-17 06:11:05 »

Created Zip File -> Create META-INF folder -> Create MANIFEST.MF -> add classes -> Rename to .JAR -> double click -> works for me Smiley

Offline sproingie

JGO Kernel


Medals: 202



« Reply #11 - Posted 2012-01-17 06:19:23 »

I swear I read something about the restriction about META-INF in the zip index ... maybe they dropped it in later versions.  The jar utility still guarantees it's the first entry though.
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.

Pippogeek (40 views)
2014-09-24 16:13:29

Pippogeek (31 views)
2014-09-24 16:12:22

Pippogeek (21 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (29 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06

BurntPizza (55 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!