Instead of using gtk I used  unix's console  and entered `nano test2.ijs`
as shown next. What is not shown is that I merely copied your text for
`test2.ijs` directly into nano.

server:~ brian$ cd /Users/brian/j64-701-user
server:j64-701-user brian$ nano test2.ijs

What seemed to fail, was the following line, but it was not a failure, just
a misplaced command.

http://127.0.0.1:65001/test2

Instead of being entered in the unix console, the command needed to be
entered in the browser as a URL, and only after entering the following in
the browser as a URL.

http://127.0.0.1:65001/jijs?mid=open&path=~User/test2.ijs#

An alternative to entering the above line in the URL field of the browser
is to select `jfile` from the leftmost menu of the jijx window of JHS and
then (double-?) clicking on the file `test2.ijs` on that page.

But the key step then is to `run` the selected file using the `action` menu
or as a keystroke shortcut entering Esc-r.

Then, opening a new tab in the browser and entering the link below (and
above), produces the Hello World web page, with the tab titled `hello` . My
browser even produces the blue J.

http://127.0.0.1:65001/test2

Yes! Thank you Bjorn.

Next I will attempt to produce a canvas rendered rectangle.

On Fri, Sep 13, 2013 at 6:00 PM, Brian Schott <[email protected]>wrote:

> That page is very helpful. I am using a Mac with OSX version 10.7.5.
>
> On my Mac, your minimalist console initialization using the Mac "terminal"
> is as follows.
>
> *****terminal session below******
>
> server:~ brian$ cd /Users/brian/j64-701/bin
> server:bin brian$ "/Users/brian/j64-701/bin/jconsole"
> ~addons/ide/jhs/core.ijs -js "init_jhs_'' "
>
> J HTTP Server - init OK
>
> Requires a modern browser (later than 2005) with Javascript.
>
> A : separates ip address from port. Numeric form ip can be faster than
> name.
>
> Start a web browser on this machine and enter URL:
>    http://127.0.0.1:65001/jijx
>
> *****terminal session above******
>
> After that I just triple-command-click on the text `
> http://127.0.0.1:65001/jijx` <http://127.0.0.1:65001/jijx> and a new
> window opens in my default browser, Safari.
>
> That's all for now. I am trying to get a simple Hello, World app like
> yours to work and having difficulty, but I have family visitors for the
> weekend and must put it aside. The file loads but does not produce the
> Hello, World result.
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to