开发者

Running JSLinux in Rhino

For the fun of it, I tried running JSLinux in Rhino using envjs and it doesn't seem to throw any errors, nor does it seem to work.

As mentioned here: How do I locally host the webbrowser Virtual Machine here: http://bellard.org/jslinux/, I first downloaded all the files and ensured that it opens up fine in a browser. Then I got to trying it out in rhino.

Here is the interaction:

$ rhino
Rhino 1.7 release 2 2010 01 20
js> lo开发者_如何学Pythonad('env.js')
[  Envjs/1.6 (Rhino; U; Linux i386 2.6.32-31-generic-pae; en-US; rv:1.7.0.rc2)   Resig/20070309 PilotFish/1.2.13  ]
js> window.location = 'emul.html';

There is some high CPU usage and then it seems to be doing nothing.

Is there some way to get it to work?


I think Rhino does not support Typed Arrays, which is required for jslinux to run.


"I first downloaded all the files and ensured that it opens up fine in a browser. "

Did it work? I did this too, but Chrome said :

Cross origin requests are only supported for HTTP.

then I copy the files to my Apache www folder, and view it with localhost, it finally works.
So I think that you may have to modify the JS file with the Ajax part(it use Ajax to load 3 files like vmlinux26.bin etc)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜