Menu

Tree [13e645] v2.0.1 /
 History

HTTPS access


File Date Author Commit
 dists 2016-01-29 Emanuele Fornara Emanuele Fornara [c9037a] added mkdroid.sh: android binary distribution s...
 doc 2016-01-31 Emanuele Fornara Emanuele Fornara [13e645] doc: updated for new version
 midp 2016-01-30 Emanuele Fornara Emanuele Fornara [b1de5a] io2: removed rdrive, added rsformat
 native 2016-01-30 Emanuele Fornara Emanuele Fornara [b1de5a] io2: removed rdrive, added rsformat
 samples 2016-01-27 Emanuele Fornara Emanuele Fornara [12597b] removed primo/js samples
 tools 2016-01-25 Emanuele Fornara Emanuele Fornara [bc2b1b] removed primo, embd and js
 .gitignore 2016-01-29 Emanuele Fornara Emanuele Fornara [7877dc] mkbin.sh: also create tar.gz
 LICENSE.md 2013-10-13 Emanuele Fornara Emanuele Fornara [f4f7e4] prepare for jbdoc merge
 README.md 2016-01-27 Emanuele Fornara Emanuele Fornara [5905cb] use env variable for midp build
 Version.defs 2016-01-25 Emanuele Fornara Emanuele Fornara [bc2b1b] removed primo, embd and js

Read Me

JBit

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.

Native Version

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).

J2ME Version

To compile the J2ME Version from source you need:

  • Java SE Development Kit.
    I use version 1.6.0; any version should be fine.
  • Sun Java Wireless Toolkit.
    I use versions 1.0.4 and 2.5; again, any version should be fine.
  • Ant.
    I use versions 1.6.5 and 1.7.0; I have no idea if you can use other versions.
  • Antenna.
    I use version 1.2.1beta; older versions should work.
  • ProGuard.
    I use version 4.4; older versions should work.

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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.