How to compile Project X

(Java-Sourcecode)

 

Programs

 

Java 2 Platform Standard Edition (SDK) of Sun Microsystems, Inc.

Project X (X08) of Matthias Müller (dvb.matt)

 

What do I have to download exactly as from java.sun.com?

You have to register but that's not tragically.

 

The compiling

After the installation of the developer packet of the Java 2 Platform Standard Edition you'll find in the program folder "\bin" (for example C:\j2sdk1.4.2\bin) the JavaC bytecode compiler (javac.exe) and the archivebuilder Jar (jar.exe).

At first the java source code has to be unpacked into a folder (for example D:\Project X). Then the java source code has to be translated with the java compiler JavaC into the bytecode (also named class file).

{C:\j2sdk1.4.2\bin\javac.exe -O *.java}

The compiled data gets the extension ".class" from the java compiler, but it's not an executable file like an exe-file. Because of that you have to make an executable program with the archivebuilder Jar. The file "manifest.mf" is the defenition for Jar and has to be mentioned.

{C:\j2sdk1.4.2\bin\jar.exe cfvm ProjectX.jar MANIFEST.MF *.class}

At the end you can copy the file "ProjectX.jar" into the unpacked sourcecode folder.


Author Lucike - support in the forum

Translator Pokkaf

(Last edit 03/08/16)