File | Date | Author | Commit |
---|---|---|---|
dists | 2016-01-29 |
![]() |
[c9037a] added mkdroid.sh: android binary distribution s... |
doc | 2016-01-31 |
![]() |
[13e645] doc: updated for new version |
midp | 2016-01-30 |
![]() |
[b1de5a] io2: removed rdrive, added rsformat |
native | 2016-01-30 |
![]() |
[b1de5a] io2: removed rdrive, added rsformat |
samples | 2016-01-27 |
![]() |
[12597b] removed primo/js samples |
tools | 2016-01-25 |
![]() |
[bc2b1b] removed primo, embd and js |
.gitignore | 2016-01-29 |
![]() |
[7877dc] mkbin.sh: also create tar.gz |
LICENSE.md | 2013-10-13 |
![]() |
[f4f7e4] prepare for jbdoc merge |
README.md | 2016-01-27 |
![]() |
[5905cb] use env variable for midp build |
Version.defs | 2016-01-25 |
![]() |
[bc2b1b] removed primo, embd and js |
There is usually no need for you to build JBit from source.
If you are looking for the J2ME version of JBit (for feature phones),
pre-built midlets
are available.
If you have Windows, you can find a precompiled EXE following the
instructions on this
wiki page.
However, for Linux(-like) operating systems, building the Native version
of JBit is recommended. Unlike the J2ME version,
the Native version has few dependencies and should be fairly easy
to build.
The following should work (tested mostly on debian, but occasionally on
NetBSD):
cd native
make
If you are missing ncurses (or have curses), comment out the offending
lines in the Makefile (or edit them), or install the relevant package
(libncurses5-dev on debian and ubuntu).
The resulting binary (jbit) is self-contained, so you should be able to
run it from anywhere. From now on, I will assume that you have it in
your path.
Switch to the sample directory and type:
jbit hello.asm
You should get back the usual message:
Hello, World!
JBit supports a binary format, if you really need it:
jbit -c jb hello.asm >hello.jb
jbit hello.jb
More information is available in the included jbit(1).
You can find a copy online here:
jbit(1).
To compile the J2ME Version from source you need:
If your environment is setup correctly, you should be able to
compile JBit by setting the WTK_HOME_DIRECTORY
environment variable,
entering midp/jbit and running ant.