![]() tProperty("", getClass().getName()) (LauncherComponent.java,line #27) First of all, it's really important that you register your AppletStub subclass as a system property, or it may not work with forge etc. Because my LauncherComponent is so messy, I'm going to note some important parts of it on this wiki page. tProperty("", new File(gameDir,"bin"+parator+"natives").getAbsolutePath()) tProperty(".librarypath", new File(gameDir,"bin"+parator+"natives").getAbsolutePath()) Create AppletStub subclassīasically, you need to come up with something like LauncherComponent. The properties are: and .librarypath and they're expected to be set to an absolute path of natives folder, which contains all native files. There are 2 System properties that need to be set if you want natives to work properly. You must downloaded them along with minecraft libraries :). It's not too important, but I didn't test other orders of loading them.Īfter you load all these JARs, you have to specify where native files are. ![]() Please note that this is also recommended order for loading them. This ClassLoader basically allows you to add your own java.io.Files to classpath. Loading libraries is done by using CustomClassLoader. MineCraft doesn't run on pure java, so you need to load a few libraries before starting it. Yes, you need to know java to understand this. This page describes what's happening inside the Relauncher class, so you can open it if you want. These versions require you to create the JFrame with an AppletStub inside it and then run minecraft. ![]() These require you to write launcher or loader thing in java, because minecraft in these versions is provided as subclass of applet. Versions >=1.5.2 work very differently from versions 1.6+. This page will be about launching minecraft 1.5.2 or older versions.
0 Comments
Leave a Reply. |