Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (563)
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  
  Problem with classpath and inclued LWJGL library for my .jar file !  (Read 1489 times)
0 Members and 1 Guest are viewing this topic.
Offline beaucoralk

Senior Newbie





« Posted 2011-05-31 12:15:28 »

With ANT write the line Class-Path from MANIFEST.MF like this:
1  
Class-Path: lib/lwjgl.jar lib/lwjgl_util.jar lib/jinput.jar


And yet it tells me it can not find the library classes, I began well for all files .jar library in a sub-folder lib!
1  
2  
3  
4  
5  
6  
+build
   +lib
       lwjgl.jar
       lwjgl_util.jar
       jinput.jar
   app.jar


Why it does not work?
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2011-05-31 14:33:19 »

What error are you seeing?, are you sure it's not the natives that are missing?

Endolf

Offline beaucoralk

Senior Newbie





« Reply #2 - Posted 2011-05-31 14:57:50 »

Is it also necessary that the line "Class-Path:" I Mettes link to. jnilib and. dylib that is located in the native / macosx /?
Otherwise these files. jnilib and. dylib are in the folder "lib", I forget to put them in my drawing.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline beaucoralk

Senior Newbie





« Reply #3 - Posted 2011-05-31 15:12:45 »

When I use the tool "Jar Bundler" mac, I add the files in the library as a resource and there it works ... but how am I going to create the. exe for windows and linux? For the "Jar Bundler" creates one .app, and it does not seem to me that it turned a bit. app in. exe or running Linux.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #4 - Posted 2011-05-31 15:20:46 »

Packaging is something that is problematic when you start needing natives. Some people create .bat or .sh files to run the application, others use installers like izpack, some will try and compile native .exe files that launch the jvm.

The bat/sh files are probably the quickest to get running, but least professional looking. Installers like izpack are probably the best compromise of ease to create and nice user experience (in my opinion). Some are free, some are not.

HTH

Endolf

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #5 - Posted 2011-05-31 15:21:05 »

You can also use Launch4J to create windows exe files but the output files only work on windows.

Another tool you can use is JarSplice, this will create a single executable jar file (from all your jars and native files). This will then work on windows, mac and linux. Although it creates a fat jar, it does simplify deployment as it merges all jars and natives into one file.
Offline beaucoralk

Senior Newbie





« Reply #6 - Posted 2011-05-31 15:27:59 »

Another tool you can use is JarSplice, this will create a single executable jar file (from all your jars and native files). This will then work on windows, mac and linux.

A BIG THANK YOU for your link JarSplice ")!
It solves my all problems at once;)!
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.

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

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

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

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

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

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (103 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
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!