Content-Type: text/plain; charset=ISO-8859-1; format=flowed
*N.B. *This thread has been transferred from the [RexxLA] mailing list=20
to the BSF4ooRexx list at the suggestion of RGF. It resumes:
On 22-Feb-14 07:50, Rony G. Flatscher wrote:
> great that you are putting your toes into new waters and trackle new=20
Inspired in large part by your excellent book, Rony. (Yes, I skipped=20
ahead to the "Reaching Out With ooRexx" chapter....)
> * Is that a plain vanilla Windows system with the default
> setup/shell that you are using (your $-prompt looks somewhat
> Unix-like) ?
My Windows is plain vanilla Windows 8.1 64-bit, but I am using JP=20
Software's Take Command 16.0
N.B. This thread has been transferred from the [RexxLA] mailing list to the BSF4ooRexx list at the suggestion of RGF. It resumes:
On 22-Feb-14 07:50, Rony G. Flatscher wrote:
great that you are putting your toes into new waters and trackle new frontiers!
Inspired in large part by your excellent book, Rony. (Yes, I skipped ahead to the “Reaching Out With ooRexx” chapter….)
- Is that a plain vanilla Windows system with the default setup/shell that you are using (your $-prompt looks somewhat Unix-like) ?
My Windows is plain vanilla Windows 8.1 64-bit, but I am using JP Software’s Take Command 16.0 (TCC), a replacement command prompt — which supports native Rexx scripting, and which I’ve mentioned before on this list. I have tweaked my prompt to emulate the Oh-My-Zsh “bira” prompt, but I do that with true vanilla CMD.EXE also, like so:
REM Tidy up the prompt a bit (requires ANSI colors) prompt $e[1;32m$u@venus$s$e[1;35m$p$_$e[1;32m$$$s$e[m
- Could you give the Windows version (and bitness) as well as the Rexx version (and bitness)? Also, could you give the Java version (and bitness)?
$ rexx -v Open Object Rexx Version 4.1.1 Build date: May 16 2012 Addressing Mode: 64 $ java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
- Usually, after BSF4ooRexx got installed, you need to open a new (command) shell in order to reflect the environment changes (PATH and CLASSPATH).
That one bit me the last time I tried this, but believe me: I’ve even rebooted once or twice since I installed BSF4ooRexx (not because of the installation, just part of my normal day-to-day operating procedure). Each command line screen capture you see here is from a fresh command prompt, and often from a clean boot as well.
- [Please note, that PATH on Windows is also used by Java to search for dll files. Your error indicates, that Java was not able to locate the proper dll.]
I had hoped that my
screen captures would, er, “capture” that I was in the
BSF4ooRexx root directory, and a
DIR /S *.dll
found only two DLL files, both of which I tried —
using René’s suggestions (
-Djava.library.path= with the complete path to the
- What surprises me is that your CLASSPATH got set by the installation, wheras your PATH has not.
installation changed neither my
It looks now like it always does. Both are set as they are in
support of NetRexx.
- the batch file "rexxj2.cmd" which usually can only be found, if PATH points to the BSF4ooRexx installation
Ah, but you see, I was in the BSF4ooRexx root directory the whole time. My customized prompt string may have misled you:
Tom@venus c:\program files\bsf4oorexx $
Which is (line 1)
user/host and current directory
- there should be no need to start Rexx scripts on Windows with the batch file rexxj2.cmd at all, but if you want to do that, then I would advise to use the generic "rexxj.cmd"
Ah, but you see there
anywhere in the BSF4ooRexx directory tree:
alias is just a short form for
- If you run the Rexx scripts via rexx.exe, then the BSF4ooRexx support will dynamically load Java behind the scenes, such that the Rexx program can interact with Java.
Well, of course I tried that as well:
$ rexx samples\HelloWorld.rxj 450 *-* ::requires "BSF4ooRexx" library 89 *-* ::REQUIRES BSF.CLS -- get the Java support Error 98 running C:\Program Files\BSF4ooRexx\BSF.CLS line 450: Execution error Error 98.903: Unable to load library "BSF4ooRexx"
Again, all these commands are issued in the BSF4ooRexx root directory.
to make a long story short, we need to look into your configuration...there is a logfile created in your home directory named "BSFooRexx.log"
It is attached — please note that I ran the installation several times, and the log file is appended to rather than overwritten. You’ll see all the gory details.
From now on, I would suggest to move the discussion/analysis of your particular problem off this list and move it to the BSF4ooRexx support mailing list
Naturally, I would have
started this chat there, had I been aware of its existence. I
admit that the sad state of the BSF4ooRexx documentation
ultimately led me to abandon my earlier attempt(s). If I only
Once we get BSF4ooRexx up and running on your system
I’m pretty sure I was running Windows 7 when last I tried this. And that configuration was even more pure vanilla than this one. I learned long ago it is better that I adapt to the system’s quirks than to force the system to adapt to mine. In general, that policy has worked out well over the years.
The only “topping” on my Windows 8.1 vanilla is the addition of Take Command … and that primarily because it supports batch files written in Rexx (oo/Regina, or Perl, Python, Tcl/Tk, and Lua). However, I could easily drop into Windows PowerShell v4.0 instead (or even as a last resort CMD.EXE).