File | Date | Author | Commit |
---|---|---|---|
core | 2013-11-06 |
![]() |
[9a1518] hashmap for symbols |
dists | 2013-11-10 |
![]() |
[d2d57b] added buildroot instructions |
doc | 2014-01-13 |
![]() |
[b33c7b] typos and minor changes |
js | 2013-10-20 |
![]() |
[940f7a] minor ant improvements and new version id |
midp | 2013-10-20 |
![]() |
[78cc35] jbitme ant target (microemulator workarounds) |
native | 2013-11-10 |
![]() |
[a93771] rpi buildroot |
samples | 2013-09-10 |
![]() |
[aed390] flattened directory |
tools | 2013-11-09 |
![]() |
[5c8271] added sidpipe/sidtype compilation notes |
.gitignore | 2013-11-06 |
![]() |
[9a1518] hashmap for symbols |
Env.defs | 2013-10-20 |
![]() |
[940f7a] minor ant improvements and new version id |
LICENSE.md | 2013-10-13 |
![]() |
[f4f7e4] prepare for jbdoc merge |
README.md | 2013-11-10 |
![]() |
[960ff8] pointers to precompiled versions |
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 just want get an idea of what JBit is about and have
a modern browser (IE8+), a (limited)
webapp
is also 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 Javascript and the J2ME versions,
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).
The JavaScript version uses
emscripten, I assume you have
a working installation. At least, the following command:
em++
should produce:
emcc: no input files
Enter the js directory:
cd js
Fetch some additional libraries (ace and jquery) and some images (not kept
in the git repository):
make fetch
Copy some samples into the js directory:
make copy_res
Build the core:
make
The resulting directory can now be copied into a web server.
To compile the J2ME Version from source you need:
If your environment is setup correctly, you should be able to
compile JBit by editing Env.defs, entering midp/jbit and running ant.