Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Java Perl
branch: master
Failed to load latest commit information.
bin initial import
docs initial import
lib initial import
samples initial import
README.md Added readme
back.gif initial import
index.html initial import
orto.jp.url initial import
yattemasu.gif initial import

README.md

Orto JavaScript-based JVM

Orto is an implementation of the Java Virtual Machine implemented in JavaScript.

I'm not the original author of Orto, I just noticed that it had disappeared from the web, and had a local copy. The license file is gibberish but the HTML page mentions that Orto is "free," so I'm assuming that means it's okay to share and learn from, but without the actual license file it's unclear if you're allowed to use this in your own projects. (If anyone has a non-gibberish copy of the license file, please send a pull request.)

More about Orto: http://ejohn.org/blog/running-java-in-javascript/

Summary

(Translated by Google)

Orto is

  • Class file
  • VM (Virtual Machine)
  • Resource file. Class.getResourceAsStream (String) used in the.

    Combine to produce a single HTML file.

How to use

java -jar orto.jar [options] pathNames...

Add the following recursive folder you specify a folder name pathName.

Option

Argument

Description

- The main class name

[Mandatory] Specifies the class to be run first.

MainHTML HTML file-name

Specifies the HTML file to load at startup in advance. 

This file is an HTML file that specifies the main design. 

For actual use, please read the tutorial.

-Compress

Generate a compressed HTML. Two times slower start. 

Orto is built on the assumption that the Web server in conjunction with gzip compression. 

Please use as a last resort if you absolutely can not enable gzip compression. 

is equal to 1 / 4 compression that gzip, is about 1 / 3 and applying compression Ortoar.

Language-language

Please specify the language. Japanese is ja, English is en.

-Encoding encoding name

Please specify the encoding, such as Shift_JIS.

-ScriptEmbedded

Combine embed the JavaScript and HTML JavaScript.

OutputHTML file-name

Create an HTML file with the specified file name. 

- Determine if you have not specified a file name generated from the class name in the main.

OutputScript file-name

Create an external JavaScript file specified by filename. 

- Determine if you have not specified a file name generated from the class name in the main.

-Version

Displays the version of the Orto.

For deployment to a server

Simply upload the HTML file generated by the Web server Orto, Orto application is available, we strongly recommend that you enable gzip compression for the Web server. Orto is built on the assumption that compression is enabled gzip. If you include the Apache, include the mod_gzip, please make the necessary settings. For Microsoft IIS, you have the option to enable compression gzip.

ISP (provider) services such as home advantage, really, if you can not enable gzip compression to compress option with Orto-please. Starting to generate a compressed HTML will be slower.

Example

If the class runs MonkeyTiger.class. Generate a MonkeyTiger.html.

java -jar ortoar.jar-main MonkeyTiger MonkeyTiger.class
Something went wrong with that request. Please try again.