![]() zip and the other is an executable) You want a normal JAR file, NOT executable, so to do that you first need to compile your code to get. jar file (there are two types, one is like a. ![]() Then you need to compile your code into a. jar that's inside the folder zip you downloaded, not the whole thing, otherwise when you go to build it, you'll get an error saying something like error: taskdef class could not be found. Make sure you moved the right jarbundler, this is where I ran into problems, I moved the entire folder, rather than the inner. Like I said, I'm still learning, but this worked for me. You might have to run a command to move it, something like: When you download it, put the jarbundler-2.2.0.jar file here: If anyone else is reading this and they don't know anything about ANT, here's what I did: Download JarBundler, I got mine from here: Mac OS X JarBundler ANT Task and follow the instructions there. I gave up on the do it yourself method and went back to JarBundler. Since I'm new to this, I'm going to post everything I learned to save others that run into the same problem from going through the pain. app file.ĮDIT: I got it! After 7 or 8 hours of searching and reading it works. jar file, I have an icon and everything, all I need to do is package it somehow into a. app and then run a command on it or something but this is complicated since I don't know exactly how to create an ist file.if you want to do it this way, the best website I've found so far is this one: Java Deployment Options for OSX They say you can just create the directories and files yourself and then rename your folder to. If I'm right, this would be a fail on whoever packaged the jar file right? But I've tried downloading it from other websites and other versions, but I get the same thing. The console returns "no main manifest attribute in jarbundler-2.0.0.jar" Use Jar Bundler - All the tutorials seem to be out of date, and it doesn't work. Use Xcode - As far as I can tell, Xcode no longer supports Java Builds.I've read all over the place and everyone says the same things: app file so I can distribute it as a simple executable file. All I'm trying to do is convert a simple java program into a macOSX.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |