From Wikipedia, the free encyclopedia
Jump to: navigation, search
Stable release
3.5 FINAL[1] / February 2, 2013; 4 years ago (2013-02-02)
Development status Active
Written in C, Java
Operating system Microsoft Windows
Available in English, Spanish, Arabic, French, Polish, Hungarian and Russian
Type Integrated development environment
License GNU GPL (compiler), BSD (IDE)
Website midletpascal.sourceforge.net

MIDletPascal is a Pascal compiler and IDE specifically designed to create software for mobiles. It generates Java bytecode that runs on any Java ME device. In September 2009, Niksa Orlic, who wrote MIDletPascal, transmitted the source code to the Russian Boolean.name development community for feature development. MIDletPascal is now open-source, and hosted at SourceForge.

On 2 February 2013, MIDletPascal 3.5 Final released.


  • generates low-level, small and fast Java bytecode
  • full Pascal specification support
  • parts of code can be written directly in Java
  • SMS messaging
  • HTTP connectivity
  • user-interface (forms) support
  • multimedia support
  • user-friendly IDE

Hello World[edit]

Because it runs on mobiles that don't have a console, the Hello world program of MIDletPascal is quite different from a normal Pascal "Hello World".

program HelloWorld;
begin DrawText ('Hello, World!', 0, 0); Repaint; Delay(2000); end.

Issues with anti-virus software[edit]

Current versions of certain anti-virus (Norton, McAfee, ...) see any class file generated by MidletPascal as being a virus, "Trojan. Redbrowser.A", and automatically quarantine the suspected file.

This may be a false positive, because the RedBrowser trojan was written using the MidletPascal tool (see Notes from McAfee).

It seems anti-virus software look for some specific class into the jar package. Using an obfuscator as JShrink the midlet won't match with the AV dictionary.

This problem has been fixed in MIDletPascal 3.0 BETA.

See also[edit]


External links[edit]