Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (108)
games submitted by our members
Games in WIP (536)
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  
  Exporting with JarSplice and LWJGL  (Read 452 times)
0 Members and 1 Guest are viewing this topic.
Offline Genius Coder

Junior Member


Medals: 1
Exp: 4 years



« Posted 2014-05-05 11:26:00 »

Im using JarSplice to export my .jar however i get an error when exporing when i follow the steps exactly and the project works fine within the IDE which is eclipse in this case:

1  
jar creation failed due to the follwing exception: Duplicate entry: org/lwjgl/BufferChecks.class 


Any suggestions?

I love making games...
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 751
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2014-05-05 11:34:53 »

You have LWJGL on your classpath twice.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Genius Coder

Junior Member


Medals: 1
Exp: 4 years



« Reply #2 - Posted 2014-05-05 11:40:21 »

I can only see it once on here:

https://www.dropbox.com/s/22kalacouhkmap3/Screenshot%202014-05-05%2010.45.04.png

EDIT: Shorlty after posting this, it said jar successfully created however when i click it, it doesnt work

I love making games...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 751
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2014-05-05 11:43:46 »

My guess is that lwjgl-debug.jar and lwjgl.jar both contain all lwjgl's classes.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 751
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2014-05-05 11:44:28 »

EDIT: Shorlty after posting this, it said jar successfully created however when i click it, it doesnt work
Well, run from the commandline and look at the stacktrace Roll Eyes

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #5 - Posted 2014-05-05 12:47:22 »

My guess is that lwjgl-debug.jar and lwjgl.jar both contain all lwjgl's classes.
That is correct, don't use both those jars, use either one but not both at the same time. lwjgl-debug.jar is useful when looking for opengl errors, otherwise use the plain lwjgl.jar.

Further you also have both slick-util.jar and slick.jar on the classpath. slick-util.jar is a subset of slick.jar so it'll contain duplicate classes, so use only one of those.

Also noticed that you have AppleJavaExtension.jar on the classpath, you probably don't need that as its only useful when compiling LWJGL.

Further you probably don't need lwjgl_util_applet.jar and lzma.jar on the classpath as they are used only for LWJGL web applets.

You also probably don't want lwjgl_test.jar since that only contains lwjgl test classes, so unless you are trying to run one to those you should remove it too.

Lastly its unlikely that you need asm-debug-all.jar unless you are using it in your app or using the Mapped stuff from lwjgl_util.jar.

As for not running as mentioned above by Riven, run it in the command line (using "java -jar yourjar.jar"), and post the output.
Offline Genius Coder

Junior Member


Medals: 1
Exp: 4 years



« Reply #6 - Posted 2014-05-05 12:55:14 »

Its strange I followed both of your guys' steps and yet the program just opens and then closes straight away. Its really starting to confuse and annoy me now Tongue

Any more ideas?

I love making games...
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #7 - Posted 2014-05-05 12:58:38 »

So nothing is printed when you run it from the command line?
Offline Mr.CodeIt

Junior Member





« Reply #8 - Posted 2014-05-05 12:59:57 »

I'm not sure about the error but a YouTuber named Oskar Veerhok explains how  to do it, which i found easy.

I'm not drunk, I've just been up late coding.
Offline Genius Coder

Junior Member


Medals: 1
Exp: 4 years



« Reply #9 - Posted 2014-05-05 13:00:32 »

No worries guys, ive sorted it now. I was missing the model I had being used within the program(I assumed it was already embeded)

Thankyou guys anyway for your time!

I love making games...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline hsifeulbhsifder

Innocent Bystander





« Reply #10 - Posted 2014-07-07 00:10:07 »

How exactly did you manage to do this with JARsplice?
Pages: [1]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (17 views)
2014-07-30 21:08:39

Riven (23 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!