Skip to content

Commit

Permalink
Replace slashes in midlet class name
Browse files Browse the repository at this point in the history
  • Loading branch information
shinovon committed Sep 6, 2024
1 parent 8aedc3c commit fd384b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/emulator/Emulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ public static void main(final String[] commandLineArguments) {
getEmulator().getLogStream().stdout("Launch MIDlet class: " + Emulator.midletClassName);
Class<?> midletClass;
try {
midletClass = Class.forName(Emulator.midletClassName, true, Emulator.customClassLoader);
midletClass = Class.forName(Emulator.midletClassName = Emulator.midletClassName.replace('/', '.'), true, Emulator.customClassLoader);
} catch (Throwable e) {
e.printStackTrace();
Emulator.emulatorimpl.getEmulatorScreen().showMessage(UILocale.get("FAIL_LAUNCH_MIDLET", "Fail to launch the MIDlet class:") + " " + Emulator.midletClassName);
Expand Down

0 comments on commit fd384b8

Please sign in to comment.