Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ For example:
You can now serve this web page on a simple HTTP server, such as the http-server utility.

```shell
npm install http-server
http-server -p 8080
npx http-server -p 8080
```

> In case your users have a native Java plugin installed, you can replace the original HTML tag with a `cheerpj-` prefixed version. `<cheerpj-applet>`, `<cheerpj-object>`, and `<cheerpj-embed>` are all supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ You can now go to the project directory and serve this web page on a simple HTTP

```sh
cd directory_name
npm install http-server
http-server -p 8080
npx http-server -p 8080
```

## The end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ npx vite

Visit the URL shown in the terminal and you should see a blank page. Leave Vite running in the background for the remainder of this tutorial.

Alternatively you can also use the http-server utility.

```sh
npx http-server -p 8080
```

Open a browser tab pointing to your localhost such as `http://127.0.0.1:8080/`.

## 2. Add CheerpJ to the document

Let's add CheerpJ to the page by adding this script tag to the `<head>`:
Expand Down
5 changes: 3 additions & 2 deletions sites/cheerpj/src/content/docs/13-tutorials/01-applet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ To view the example, we need to host the files on a web server. [Vite](https://v
npx vite
```

Visit the URL shown in the terminal and you should see a blank page. Leave Vite running in the background for the remainder of this tutorial.

Alternatively you can also use the http-server utility.

```sh
npm install http-server
http-server -p 8080
npx http-server -p 8080
```

Open a browser tab pointing to your localhost such as `http://127.0.0.1:8080/`.
Expand Down
5 changes: 2 additions & 3 deletions sites/cheerpj/src/content/docs/13-tutorials/02-jnlp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ npx vite
Alternatively you can also use the http-server utility:

```sh
npm install http-server
http-server -p 8080
npx http-server -p 8080
```

Visit the address indicated by your http-server in the browser. For example, `http://localhost:8080`.
Open a browser tab pointing to your localhost such as `http://127.0.0.1:8080/`.

### The result

Expand Down