Skip to content

Commit

Permalink
Anbu+AWT: getFormattedLocation should return an URI string.
Browse files Browse the repository at this point in the history
This was already the case when loading jars through AWTGUI's
file picker. But through the command line, FreeJ2ME was sending
the file's absolute path directly into MobilePlatform and
MIDletLoader withough converting to a valid URI first.

This should fix issues when loading jars/jads from the commandline
  • Loading branch information
AShiningRay committed Dec 4, 2024
1 parent bc95acb commit 21015c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/recompile/freej2me/Anbu.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private static String getFormattedLocation(String loc)
System.exit(0);
}

return "file://" + file.getAbsolutePath();
return file.toURI().toString();
}

private class SDL
Expand Down
2 changes: 1 addition & 1 deletion src/org/recompile/freej2me/FreeJ2ME.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private static String getFormattedLocation(String loc)
System.exit(0);
}

return "file://" + file.getAbsolutePath();
return file.toURI().toString();
}

private void settingsChanged()
Expand Down

0 comments on commit 21015c6

Please sign in to comment.