4There is usually no need for you to build JBit from source.
6If you are looking for the J2ME version of JBit (for feature phones),
10If you just want get an idea of what JBit is about and have
11a modern browser (IE8+), a (limited)
13is also available.
15If you have Windows, you can find a precompiled EXE following the
16instructions on this
19However, for Linux(-like) operating systems, building the Native version
21the Native version has few dependencies and should be fairly easy
24## Native Version
26The following should work (tested mostly on debian, but occasionally on
29 cd native
32If you are missing ncurses (or have curses), comment out the offending
33lines in the Makefile (or edit them), or install the relevant package
34(*libncurses5-dev* on debian and ubuntu).
36The resulting binary (jbit) is self-contained, so you should be able to
37run it from anywhere. From now on, I will assume that you have it in
40Switch to the sample directory and type:
42 jbit hello.asm
44You should get back the usual message:
46 Hello, World!
48JBit supports a binary format, if you really need it:
50 jbit -c jb hello.asm >hello.jb
51 jbit hello.jb
53More information is available in the included jbit(1).
54You can find a copy online here:
60broken at any give time.
62To check the progress, see:
66The old version is still available:
69## JBit Embedded
71This is a new version of the VM that is going to be used in future
73a modified version of the [Fake6502 CPU
76The same code base is used to generate three targets:
78An image for [Arduino Uno](http://arduino.cc/en/Main/arduinoBoardUno).
79See [jbit(1) - PRIMO](http://efornara.github.io/jbit/jbit.1.html#PRIMO)
80for more information.
82A test native program. Just typing make should work, but you need the
83development package of SDL 1.2. Note that this target might disappear
84entirely, once the consolidated bits of embd are integrated into the
85main Native version.
88need [emscripten](https://github.com/kripken/emscripten) installed. If
89you have a working installation of emscripten, that is, if:
93produces something like:
95 emcc: no input files
97you should be able to type:
99 make jbit-embd-c.js
101and point your browser to the included index.html. Beware that I recently
102updated emscripten and the suggested script (emsdk-portable) took about
1039GB of disk space. This:
105 wget -c http://jbit.sourceforge.net/webapp/test/jbit-embd-c.js
107is probably a good enough alternative for most.
109## J2ME Version
111To compile the J2ME Version from source you need:
113* [Java SE Development Kit](http://www.oracle.com/technetwork/java/javase/downlo
115 I use version 1.6.0; any version should be fine.
116* [Sun Java Wireless Toolkit](http://www.oracle.com/technetwork/java/download-13
118 I use versions 1.0.4 and 2.5; again, any version should be fine.
120 I use versions 1.6.5 and 1.7.0; I have no idea if you can use other versions.
122 I use version 1.2.1beta; older versions should work.
124 I use version 4.4; older versions should work.
126If your environment is setup correctly, you should be able to
127compile JBit by editing Env.defs, entering midp/jbit and running ant.
131* [JBit XHTML Site](http://jbit.sourceforge.net/)
132 (optimized for feature phones).
133* [JBit WAP Site](http://jbit.sourceforge.net/m)
134 (for old phones / very low bandwidth).
135* [JBit Wiki](https://github.com/efornara/jbit/wiki)
136 (too heavy for most feature phones).