Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt "file:///" in case of error #209

Open
testman42 opened this issue Dec 27, 2023 · 1 comment
Open

attempt "file:///" in case of error #209

testman42 opened this issue Dec 27, 2023 · 1 comment

Comments

@testman42
Copy link

testman42 commented Dec 27, 2023

when running from command line (in Linux), doing just

> freej2me file.jar

results in error:

no protocol: /path/to/file.jar
java.net.MalformedURLException: no protocol: /path/to/file.jar
	at java.base/java.net.URL.<init>(Unknown Source)
	at java.base/java.net.URL.<init>(Unknown Source)
	at java.base/java.net.URL.<init>(Unknown Source)
	at org.recompile.mobile.MobilePlatform.loadJar(MobilePlatform.java:154)
	at org.recompile.freej2me.FreeJ2ME.<init>(FreeJ2ME.java:186)
	at org.recompile.freej2me.FreeJ2ME.main(FreeJ2ME.java:36)
Couldn't load jar...

after digging a lot, I found out that the way to load .jar is to do the following:

> freej2me "file:///$PWD/file.jar"

at least it works in fish shell
so not only does the protocol have to be defined (as file:///), but also absolute path to the file has to be given

this is something that should be automatically attempted before showing the error to the user

@testman42
Copy link
Author

Ah, apparently I made a duplicate of the currently last post in #169
Which I would have found sooner if that issue was not instantly de-railed into offtopic 🙄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant