mirror of
https://github.com/leaningtech/cheerpj-meta.git
synced 2025-03-15 01:54:48 +01:00
docs: Adapt link style
This commit is contained in:
parent
cbcc5906e8
commit
cd6f28bf20
@ -67,4 +67,4 @@ jar cvf domexample.jar DomExample.class
|
||||
$CHEERPJ_INSTALL_PATH/cheerpjfy.py --deps $CHEERPJ_INSTALL_PATH/cheerpj-dom.jar domexample.jar
|
||||
```
|
||||
|
||||
See the [[Getting Started]] page to see how to run the compiled Java code in an HTML page.
|
||||
See the [Getting Started](Getting-Started) page to see how to run the compiled Java code in an HTML page.
|
||||
|
@ -51,7 +51,7 @@ Copy the following HTML code into ```~/cheerpj_tutorial/cheerpj_tutorial.html```
|
||||
Let's break down what is going on:
|
||||
|
||||
* We first include the CheerpJ loader from our cloud runtime. (https://cjrtnc.leaningtech.com/2.2/loader.js). This file is the only script that needs to be loaded to use CheerpJ. CheerpJ will _automatically_ load all other files, including the ```TextDemo.jar.js``` we generated above.
|
||||
* We initialize CheerpJ using the ```cheerpjInit()``` API. See [[Runtime API]] for more information.
|
||||
* We initialize CheerpJ using the ```cheerpjInit()``` API. See [Runtime API](Runtime-API) for more information.
|
||||
* We want to run a graphical application (i.e. a Swing or AWT application), so we need to initialize a _virtual display_ in the page. CheerpJ will render all Java windows into this display.
|
||||
* We can now start the JAR file. CheerpJ will _automatically_ download the ```TextDemo.jar.js``` file as soon as the first application class is loaded
|
||||
|
||||
@ -87,4 +87,4 @@ Now open your favourite browser and enter the following URL ```http://127.0.0.1:
|
||||
|
||||
# The end!
|
||||
|
||||
Congratulations, you have successfully compiled and run your first Java application using CheerpJ. For more information, please read our in-depth [[Getting Started]] page.
|
||||
Congratulations, you have successfully compiled and run your first Java application using CheerpJ. For more information, please read our in-depth [Getting Started](Getting-Started) page.
|
||||
|
@ -6,7 +6,7 @@ CheerpJ supports running Java code in the background using WebWorkers. To use th
|
||||
|
||||
All code in a Worker runs in parallel and asynchronously with the main thread. All the methods below return standard JavaScript ```Promise```s, and you can use ```.then(...)```, ```.catch(...)``` and ```async/await``` with them.
|
||||
|
||||
We recommend reading the [[Runtime API]] documentation before proceeding on this page.
|
||||
We recommend reading the [Runtime API](Runtime-API) documentation before proceeding on this page.
|
||||
|
||||
## Creating and initializing a CheerpJ worker
|
||||
|
||||
@ -17,7 +17,7 @@ var w = new CheerpJWorker();
|
||||
w.cheerpjInit().then(function(e) { console.log("CheerpJWorker is ready"); });
|
||||
```
|
||||
|
||||
This starts the WebWorker and initializes CheerpJ in that context. All workers need to be initialized in this way. As a general rule the ```CheerpJWorker``` exposes the same API as CheerpJ in the main thread. You can read details about the main thread API in the [[Runtime API]] page.
|
||||
This starts the WebWorker and initializes CheerpJ in that context. All workers need to be initialized in this way. As a general rule the ```CheerpJWorker``` exposes the same API as CheerpJ in the main thread. You can read details about the main thread API in the [Runtime API](Runtime-API) page.
|
||||
|
||||
## Parameters and return values
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user