Studio Wikiv0.8.7

Wiki / Getting started

Install the supported tools

Set up Studio's Windows phone toolchain and find the verified downloads.

Install the editor

Run the Windows x64 installer and approve the Windows prompt. Setup installs Studio in C:\Program Files\J2ME Studio by default. Leave Create a desktop shortcut checked to launch it from your desktop, or open J2ME Studio from Start. Windows Settings → Apps lists the uninstaller.

Moving from the 0.8.2 per-user installer? The Program Files edition installs alongside the old copy. Once you’ve opened the new version, close the old one and remove version 0.8.2 in Settings → Apps. Your projects and examples stay in their own folders.

If you’re using Studio 0.8.3 or earlier, install the current release from Downloads once. Studio 0.8.4 and later check on launch and every six hours. To get the latest release now, choose File → Check for updates…. When the download is ready, save your edits and click Install update in the toolbar.

Windows may show “Unknown publisher” when you open the installer. For a manual download, run the PowerShell command below in your Downloads folder and compare the result with the SHA-256 on the download page. For in-app updates, Studio checks the release signature and the installer hash for you.

powershell
Get-FileHash .\J2ME-Studio-*-win-x64-Setup.exe -Algorithm SHA256

Set up the phone tools in First steps

Open Studio from your desktop or Start. On the first launch, First steps checks the tools on your computer. You can start editing the cube straight away and return to File → First steps… when you want to build or test a phone game.

Install Azul Zulu JDK 7 x86 from First steps for the Java compiler. Install FreeJ2ME-Plus 1.53 for Test MIDlet, including its Windows runtime. Studio verifies both downloads and places them in its tool folders for your Windows account. If you already have a tool, use its folder chooser.

For Sun Java Wireless Toolkit, click Download and run verified installer…. Studio checks the download from Rose-Hulman’s course mirror and opens the vendor wizard. Keep its default destination, usually C:\WTK2.5.2_01. If it asks for Java, use the JDK folder shown in First steps. Once the wizard finishes, Studio 0.8.5 or later shows Ready automatically. If you chose a custom destination, use Choose installed folder….

Zulu JDK 7 x86 archive (verified build)

Oracle Wireless Toolkit 2.5.2_01 download page

Rose-Hulman Wireless Toolkit installer mirror

Node.js download (needed for CLI commands)

FreeJ2ME-Plus 1.53 release

Point Studio at a custom toolkit

For a custom installation, you can choose the toolkit folder once in First steps. To override it for a single launch from PowerShell, replace the example path below with your toolkit folder.

powershell
$install = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\J2MEStudio' 'InstallLocation'
$exe = Join-Path $install 'J2ME Studio.exe'
& $exe --toolkit 'D:\PhoneTools\WTK2.5.2_01'

Use the installed CLI

The installer includes the CLI under resources\app\cli. If Node.js is installed, you can run it from any working folder. The example creates a starter project in Documents, validates it, and builds it. It does not write into the installation directory. Studio and the CLI automatically find a complete Wireless Toolkit installation in its vendor default location. If you installed it elsewhere, pass --toolkit PATH with the folder containing lib\cldcapi11.jar, lib\midpapi20.jar, lib\jsr184.jar, and bin\preverify1.1.exe.

powershell
$studio = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\J2MEStudio' 'InstallLocation'
$cli = Join-Path $studio 'resources\app\cli\j2me.mjs'
$tools = Join-Path $env:LOCALAPPDATA 'J2ME-Unity-Tools'
$jdk = Join-Path $tools 'jdk\zulu7.56.0.11-ca-jdk7.0.352-win_i686'
$project = Join-Path $env:USERPROFILE 'Documents\J2ME\First Game'
node $cli new $project
node $cli validate $project
node $cli build $project --jdk $jdk