Skip to content

Instantly share code, notes, and snippets.

@JoseskVolpe
Created April 2, 2023 22:50
Show Gist options
  • Save JoseskVolpe/24e732e88088058ee7b037636884a9fc to your computer and use it in GitHub Desktop.
Save JoseskVolpe/24e732e88088058ee7b037636884a9fc to your computer and use it in GitHub Desktop.
Old Samsung J2ME SDK instructions
You can't directly run it from your IDE the way you would normally do on Windows, you must make a manual run configuration to be able to run your project on your IDE
It was tested on Eclipse IDE by using EclipseME plugin, your IDE must build a .jar and .jad file every compile. The following tutorial is for Eclipse IDE and may be different to other IDEs such as Netbeans
Wireless Toolkit (the software Samsung SDK was based on) has a set of commands to open any .jad file on a emulator, to open a .jad file directly from terminal, you can use:
env WINEPREFIX=/location/to/Samsung/SDK/Wineprefix wine /location_to_samsung_sdk/bin/emulator.exe -Xdescriptor:"/location/to/JAD/file" -Xdevice:DEVICE
DEVICE may be any device listed by Samsung SDK, you can use this command to get a list of devices
env WINEPREFIX=/location/to/Samsung/SDK/Wineprefix wine "/location/to/Samsung_SDK_12/bin/DefaultDevicew.exe"
Now you can set this command for your IDE configuration. Manual run configurations are made on External Tools Configurations, EclipseME usually build the JAR and JAD files at .mtj.tmp/emulation/ directory. I recommend that you create a shell file to open wine in a wineprefix, locate it into "Location"
#!/bin/bash
env WINEPREFIX="/location/to/your/wineprefix" wine "$@"
On "Arguments", insert the following command. Assuming your Samsung SDK was installed on C:/Program Files (x86)/Samsung_SDK_122 and your JAD file has the same name your project uses. I'll use GT-S5230N as a example, but you can use whatever you would like to.
"c:/Program Files (x86)/Samsung_SDK_122/bin/emulator.exe" -Xdescriptor:"${project_loc}/.mtj.tmp/emulation/${project_name}.jad" -Xdevice:GT-S5230N
@JoseskVolpe
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment