The Coder's Handbook   

Jarsplice

OPENING JARSPLICE

Click here to download a copy of Jarsplice and Portable Java Launcher

Using Slick2D means we need extra stuff


Slick 2D includes files that lets your computer interact with Open GL and the operating system, which is what helps it run fast.  These files are called natives.  We'll need to use a program called Jarsplice to combine our Runnable Jar with the natives to make something called a Fat Jar which contains everything we need.


Extra Step @ School


So to run a jar file, you will need to have Java installed on the machine.  However, BCPS has decided to not allow us to have Java on our computers.  Madness.   This means we'll have to use an extra program just to open Jarsplice and our final products.


The file above contained Portable Java Launcher.  You simply click on that executable then use it to find Jarsplice and load it up.  You should see a program that looks like the screenshot on the right.

ADD JARS AND NATIVES

#1 Adding Jars


#2 Adding Natives


MAIN CLASS AND THE FAT JAR

#3 - Main Class


#4 - Create Fat Jar


SUPPORTING FILES

All the Resources


Warning


In eclipse, your media files are not case sensitive.  Once you make it a jar, they will be.  If you've been careless with file capitalization and the program crashes, you'll need to check every media file and start over.

RUN IT

At Home or on a Personal PC


Click on the Jar and it'll run like an executable.

At School or on a BCPS Laptop


Open Up the Portable Java Launcher and find the file to run it.