Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - How can i create a JAR file?? | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
Deleted User Banned Since: 05-08-06 Last post: None Last view: 6299 days |
| ||
Some games for mobile phone are made in java with JAR format. I would like to make my own game for my mobile phone but i dont know how make the JAR file. Please help. Thanks
|
|||
neotransotaku Sledge Brother Liberated from school...until MLK day Since: 11-17-05 From: In Hearst Field Annex... Last post: 6300 days Last view: 6298 days |
| ||
a .jar file is just a ZIP file with a few needed files.
Java comes with a jar utility--here are instructions to use it from San Jose State. scroll to the jar section. |
|||
Omega45889 Shyguy Since: 11-18-05 Last post: 6331 days Last view: 6346 days |
| ||
Umm, you can make a .Jar file really easily with a Java frontend called BlueJ. Just google for it. You just have to have a Main method somewhere so that the program has somewhere to start from. The main function is pretty picky. It looks somethin like this if i remember correctly:
public static void main(String[] args) { // Program starts here } Just go project -> create Jar file, and point it to the class with the main() method in it. Now that that is said, i hate BlueJ... it is a terrible program. |
|||
DJ Bouche Koopa Since: 11-22-05 From: Bligh Park, NSW, Australia Last post: 6460 days Last view: 6460 days |
| ||
Firstly, the JAR files [used on J2ME enabled phones] are just ZIP files.
Secondly, you can't just put a JAR file together and expect it to work. You'll need a J2ME SDK of some sort, Sun releases one which comes with a nifty emulator. Though you need to download the Java SDK first (already 130MB) then the J2ME SDK (30MB? can't remember). So if you can bear with the download, (I did ), you'll be able to develop fine. There are probably lighter packages and emulators around elsewhere but to be honest I haven't really looked. |
|||
neotransotaku Sledge Brother Liberated from school...until MLK day Since: 11-17-05 From: In Hearst Field Annex... Last post: 6300 days Last view: 6298 days |
| ||
Originally posted by DJ BoucheIt is only 56 something, not 130... although it maybe 130 if you install everything. Like DJ Bouche says, there are a different set of classes used with J2ME than with the JRE. So you will need to adapt some of the java games not designed for J2ME to use those in order to make the games J2ME compatible... |
|||
DJ Bouche Koopa Since: 11-22-05 From: Bligh Park, NSW, Australia Last post: 6460 days Last view: 6460 days |
| ||
Hmm damn I wasted some download then .. That was Sun's package anyway and the only one I found >.>;.
Also it might be worthy to check which J2ME classes/APIs are supported on your phone in order to keep full compatibility with it. |
|||
Gavin Cheep-cheep Vandalism is not tolerated Since: 11-17-05 From: IL, USA Last post: 6375 days Last view: 6318 days |
| ||
Originally posted by DJ Bouche um.. not necessarily. It depends, as everything does, on the platform in which you are working. My real world working example is Mozilla based applications (read: lololol, Thunderbird) which actually package extensions and other central components in the .JAR format but have nothing at all to do with Java or J2ME. So I might concede that a majority use .JAR for a specific purpose, but not all (edited by Gavin on 01-05-06 05:48 AM) (edited by Gavin on 01-05-06 05:49 AM) |
|||
DJ Bouche Koopa Since: 11-22-05 From: Bligh Park, NSW, Australia Last post: 6460 days Last view: 6460 days |
| ||
Erm, my apologies, I didn't mean to target them to just J2ME applications. I know they're used in hundreds of other java (if not all/most of them?) situations. |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - How can i create a JAR file?? | | |