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

How to run it on PC? #9

Open
ghost opened this issue Feb 22, 2020 · 4 comments
Open

How to run it on PC? #9

ghost opened this issue Feb 22, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 22, 2020

No description provided.

@szatkus
Copy link
Owner

szatkus commented Feb 23, 2020

It used to work just by opening index.html, but seems that's no longer the case. You have to host files by HTTP server and open it in a browser with src parameter pointing to some jar file. For example: http://localhost:8000/?src=jars/asteroids.jar

@ghost
Copy link
Author

ghost commented Oct 2, 2020

It used to work just by opening index.html, but seems that's no longer the case. You have to host files by HTTP server and open it in a browser with src parameter pointing to some jar file. For example: http://localhost:8000/?src=jars/asteroids.jar

Sorry for the late reply, but it won't work on Chrome.

@danimesq
Copy link

danimesq commented Mar 26, 2022

@szatkus

It used to work just by opening index.html, but seems that's no longer the case. You have to host files by HTTP server and open it in a browser with src parameter pointing to some jar file. For example: http://localhost:8000/?src=jars/asteroids.jar

Any new breaking change on browsers that did it?

@sfmemz
An idea is to use js2me as an Electron app. I'll do an PR some day to implement it (same for KaiOS).

@yell0wsuit
Copy link

Sorry for the late reply, but it won't work on Chrome.

Install Python, run python -m http.server. Then visit the mentioned link. It'll work (though for some JARs they can't be run due to unimplemented functions).

Any new breaking change on browsers that did it?

It's a security feature, I think it has been enforced for like over 5 years. You're not allowed to use AJAX for file protocol.

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

3 participants