In this case the Jar Bundler developers used the newer, and the difference is striking. That the actually looks more like a native Mac OS X file chooser than the Swing file chooser, so you want to use the older FileDialog. When you click the "Choose." button you'll see a strange looking file chooser dialog show up. ("Jelly" was the original name of the editor.)Īn interesting note is that this is where you can tell that Jar Bundler itself is written in Java. When I select that jar file, Jar Bundler is smart enough to detect that my "main" class is named .Main. What really happens is that I click the "Choose." button, then use the file chooser to locate my jar file. The first field is labeled "Main Class", but I think that's a little misleading, at least when my application is already stored in a jar file. I start creating my application bundle by filling in the fields of the Build Information panel. The Build Information panel is the first tab in the Jar Bundler application. Figure 2.1 shows the application as it first starts up. When Jar Bundler starts up you'll see it's a simple one-screen application with three tabs named Build Information, Classpath and Files, and Properties. (Start the Finder, click Macintosh HD, then open the Developer, Applications, and Java Tools folders, then double-click the Jar Bundler application.) With the Mac Xcode tools installed, you'll find the Jar Bundler application in the /Developer/Applications/Java Tools/ folder. Additionally, I have other separate files and directories that are used by my custom help system. Like most Java applications, WikiTeX is organized as a collection of jar files, with one main jar file (wikitex.jar) and a small collection of other third-party jar files. WikiTeX is an enhanced text editor, created as a Java application with a Swing/JFC interface. I'm going to walk through the Jar Bundler process for a sample application I've named "WikiTeX". Update: As there hasn’t been too much interest in this, I’ve stopped adding new versions.The only things you need to get started are Apple's free Xcode Developer Tools, a Java application that you want to deploy, and an icon for your application (as I learned, this needs to be in Apple's " icns" format). Change “Allow applications downloaded from” to “Anywhere”, start the Launcher, and put it back to what it was. Get the TechnicLauncher for Mac here (Build 439)ĭue to OS X’s safety settings, you might have to temporarily change a security setting in the Security & Privacy pane under System Preferences. jar itself, just created an App shell around it, I take no credit for the Launcher itself, and usage of this launcher is at your own risk (although I don’t see why there should be any problems with it). This will make it possible to put the Launcher in the Applications directory, and add a shortcut to the dock etc. Using Jar Bundler (I got it from the 2012-005 Java developer pkg) I bundled the jar as an App, and put it in a DMG. This means no icon and not possible to start through Spotlight. For the Launcher however…Įverything is stored under “./Application Support/technic/” which means that you won’t touch an already installed Minecraft, however it is possible to play vanilla Minecraft under the TechnicLauncher as well, but then the Launcher will redownload and install a new Minecraft install, not touching your “./Application Support/minecraft” installation.Īnyways, the launcher is at the moment a simple “TechnicLauncher.jar” file. Technic is a mod pack which easily gives you a lot of fun instantly, and I have nothing bad to say about it. I’m a huge fan of Minecraft, and recently started testing out some mods, as vanilla Minecraft does get repetitive in the long run.
0 Comments
Leave a Reply. |