(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-17-24 03:31 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - How can i create a JAR file??
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
DJ Bouche
Posts: 42/111
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.
Gavin
Posts: 90/181
Originally posted by DJ Bouche
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.


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: Firefox, 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
DJ Bouche
Posts: 37/111
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.
neotransotaku
Posts: 334/1860
Originally posted by DJ Bouche
Though you need to download the Java SDK first (already 130MB)
It 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
Posts: 32/111
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.
Omega45889
Posts: 28/92
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.
neotransotaku
Posts: 148/1860
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.
Deleted User
Posts: 33/-7750
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
Acmlm's Board - I3 Archive - Programming - How can i create a JAR file??


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 351.66 kB (max 399.12 kB)