Studio Wikiv0.8.7

Wiki / Build and export

Troubleshoot export, JAD files, and LCD performance

Match common build and device symptoms to the exact tool, metadata, quality, and display checks that resolve them.

Build tool errors

If you see “The build uses the Windows Wireless Toolkit”, run the export on Windows with the Java ME toolchain installed. You can preview a scene in Studio before setting up the toolchain.

If you see “Missing build dependency”, read the filename at the end of the error. The JDK needs bin\javac.exe and bin\jar.exe. The toolkit needs bin\preverify1.1.exe and four JARs in lib — cldcapi11.jar, midpapi20.jar, jsr184.jar, and mmapi.jar. Launch Studio with the tool folders, or pass --jdk and --toolkit to the CLI build command.

If you see “Quality must be w200i or w995”, use w200i or w995 for the CLI quality value. In the Player Inspector those profiles appear as Low · W200i and High · W995.

If export succeeds but Test MIDlet cannot open a window, check the folder passed to Studio’s --emulator option. FreeJ2ME-Plus needs both dist\freej2me_plus.jar and runtime\freej2me_plus_runtime\windows-x64\bin\java.exe. Relaunch Studio with the corrected path, reopen the project, and press Test MIDlet.

JAD and JAR mismatch

When a phone cannot find the JAR or reports a size mismatch, put the matching .jad and .jar back in the same folder. Open the JAD as text. MIDlet-Jar-URL must match the JAR filename and MIDlet-Jar-Size must equal its size in bytes. Rebuilding both files together fixes an outdated JAD.

In PowerShell, open your export folder and substitute your filenames for MyGame.jar and MyGame.jad. The byte count on the first output line should match the JAD’s MIDlet-Jar-Size.

powershell
$jar = Get-Item .\MyGame.jar
$jar.Length
Select-String -Path .\MyGame.jad -Pattern '^MIDlet-Jar-(URL|Size):'

LCD fit and low-end performance

If the game is cropped, set the Scene view’s LCD selector to the phone you are targeting. Try 128 × 160 for a W200i or 240 × 320 for a W995. Check the camera framing and Canvas anchors at both sizes.

If a scene runs slowly on a W200i, try Low · W200i in the Player Inspector and rebuild. This profile skips fog and scales opaque textures so the longest edge is at most 64 pixels. Cutout textures retain their resolution. Compare the rebuilt scene on the intended handset.

If a material texture fails to import, start with a non-interlaced, 8-bit RGB or RGBA PNG in the project. For a 3D texture, each dimension must be a power of two and at most 256 pixels. A 64 × 128 PNG is a valid example. If transparent edges look solid, set Surface to Cutout and adjust Alpha cutoff. See asset formats and limits for the import workflow.