Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Help on BSF4rexx pls
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th March 03:26
mettemusens
External User
 
Posts: 1
Default Help on BSF4rexx, pls



Hi

I have installed the ooREXX and the BSF on my machine a year ago, and
it worked perfectly. Now I change machine - and it does not ... sigh
..... :-)

This is the message from testversion-oo.rex
--------------------------------------------------------------

C:\Program Files\ooRexx\bsf4rexx\bin>testversion-oo.rex
rgfAttachCurrentThread(): Exception occurred!
Exception in thread "main" java.lang.NoSuchMethodError:
java.lang.ClassLoader: method
getResources(Ljava/lang/StringLjava/util/Enumeration
; not found
at
at
JNI panic: native code passed a null object to a non-static method

C:\Program Files\ooRexx\bsf4rexx\bin>

--------------

My path is =

Path=h:\rexx;C:\Program Files\ooRexx;c:\Program
Files\ooRexx\bsf4rexx\bin;c:\Program
Files\ooRexx\bsf4rexx\org;C:\Program Files\CA\pec\bin;C
:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT\;C:\Program
Files\Microsoft Visual Studio\Common\Tools\;C:\Program Files\Microsof
t Visual Studio\VC98\Bin\;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin\;C:\WINDOWS\system32;C:\ WINDOWS;C:\WINDOWS\System32\Wb
em;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program
Files\cvsnt;C:\Program
Files\CA\CCC_Harvest;C:\oracle\ora92\bin;C:\Progra
m Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;.

My classpath is =

CLASSPATH=E:\java\jfreechart-1.0.0-rc1\lib\jcommon-1.0.0-rc1.jar;E:\Java\jfreechart-1.0.0-rc1\lib\jfreechart-1.0.0-rc1.jar;C:\Program
Files\
ooRexx\bsf4rexx\bin;C:\Program Files\ooRexx\bsf4rexx\org;C:\Program
Files\ooRexx\bsf4rexx;.

I have copied the working versions of ooRexx/Bsf4rexx from my old
machine (which is also a WinXP SP2).

-----------------

Do you have an idea where to look ?

regards
Mette
  Reply With Quote


  sponsored links


2 7th March 03:26
rony
External User
 
Posts: 1
Default Help on BSF4rexx, pls



Hi Mette,


Please point your browser to:
<http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current>

which will always contain the latest version of BSF4Rexx. The newer versions have a (Rexx) setup
script which will create the installation (and uninstallation) scripts tailored to your system
(Linux and Windows). Please read the *.txt-files and proceed accordingly. (It *should* be rather
easy to install BSF4Rexx with them.)

Also, there will be probably an update after the International Rexx Symposium that takes please this
coming week in Austin, Texas (cf. <http://www.RexxLA.org>). If you look at the agenda you will see
quite a few talks using/about BSF4Rexx.

HTH,

---rony
  Reply With Quote
3 7th March 03:26
mettemusens
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Hi again

I was just puzzled what went wrong when transferring from one machine
to the orther - since I tried to have all things the same:

java version
oorexx version
XP version
path
classpath

etc.

But I will try the new one then .... should I delete the old dir where
I unzipped bsf4rexx into?

regards
Mette
  Reply With Quote
4 7th March 03:26
mettemusens
External User
 
Posts: 1
Default Help on BSF4rexx, pls


I have now deleted the old version, and installed the new version.

I have run the 3 scripts and this is the result, when I run my testjob:

H:\Rexx>simple3DPie.rex
BsfLoadJava(): could not find the Java dynamic link library, aborting!
BSF.CLS: SIGL=319 = line # with exception, line: [ call
BsfLoadJava -- load JVM]
exception: SYNTAX
traceback:
319 *-* call BsfLoadJava -- load JVM
BsfLoadJava(): could not find the Java dynamic link library, aborting!
319 *-* call BsfLoadJava -- load JVM
178 *-* call registerBSFFunctions -- register BSF-functions,
load JVM
50 *-* ::requires BSF.CLS -- all bsf4rexx scripts need this line
Error 40 running C:\Program Files\ooRexx\BSF.CLS line 319: Incorrect
call to routine
Error 40.1: External routine "BSFLOADJAVA" failed

H:\Rexx>

Regards
Mette

PS I know I dont know "anything" on java :-)
  Reply With Quote
5 7th March 03:26
salvador parra camacho
External User
 
Posts: 1
Default Help on BSF4rexx, pls


When you execute your script, REXX (the Object REXX BSF class using
BSF4Rexx.dll) tries to load the JVM (Java Virtual Machine) using the
jvm.dll dynamic-link library. When this DLL is not in the PATH, REXX
(BSF4Rexx.dll) can't load the JVM and fails.
The jvm.dll file is located in the "bin\client" subdirectory of your
Java Runtime Environment directory. In my system this is
"C:\ARCHIV~1\Java\jre1.5.0_02\bin\client" (ARCHIV~1 is the short name
of "Archivos de programa", the spanish equivalent of "Program Files"),
in your system it is probably "C:\Progra
m Files\Oracle\jre\1.3.1\bin\client".
Try to execute your script using Java ("rexxj simple3DPie.rex")
before. This must work.
OpenOffice.org integration (external scripts and internal macros)
requires some additional steps.
(Is this correct, Rony?)

Best regards:

Salvador Parra Camacho
  Reply With Quote
6 7th March 03:26
lee peedin
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Maybe Rony will be back shortly, but one thing I noticed. Mette
appears to have version 1.3 of Java. I may be wrong, but I think the
current version of BSF4Rexx requires 1.4 or higher.

Lee


On 4 Apr 2006 11:06:29 -0700, "Salvador Parra Camacho"
  Reply With Quote
7 7th March 03:26
salvador parra camacho
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Yes, Lee, the do***entation (version 2.56, 2006-02-03) says: "If
[...] the Java version is smaller than 1.4, then get a new Java from
the Internet".
Anyway I think that BSF4Rexx requires also a modified PATH
environment variable to let REXX load the JVM (see
setEnvironment4BSF4Rexx.cmd).

Salvador
  Reply With Quote
8 7th March 03:26
rony
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Hi there,


BSF4Rexx requires 1.3 or higher (due to the underlying BSF needing 1.3).

The OpenOffice.org (OOo) 2.x interface needs 1.4 or higher, because OOo seems to use 1.4 features at occasional places.


Actually, if you run "setupBSF4Rexx.rex" then the generated *cmd scripts tell you where it found
your particular Java installation.

If you run "setEnvironment4BSF4Rexx.cmd" then your PATH environment variable gets the path to the
directory added which contains your "jvm.dll".

There are three ways to start a BSF4Rexx script:

- rexxj.cmd your_rexx_program [your_arguments

example:

rexxj myRexxScript.rex

... this starts Java and then has Java load the Rexx interpreter to execute your supplied script;
this should always work, if you have access to your Java installation from the command line (e.g.
"java -version" should work; if not, then it is missing from the einvironment variable PATH)


- bsf4rexx.cmd your_rexx_program [your_arguments]

example:

rexxj myRexxScript.rex

... this will set the environment local to the script, such that after execution no traces of
BSF4Rexx can be found in the process' environment


- rexx your_rexx_program [your_arguments]

... this will cause the Rexx interpreter to load and run your Rexx program, which then needs to
be able to find the Java dll in order to load Java (see Salvador's great explanations above)

Rony?)

Yes, for the OOo support you need to run the generated install script "installOOo.cmd". Before
running the OOo examples you need to run the generated file "setEnvironment4OOo.cmd", which sets the
Java CLASSPATH environment variable which allows accessing OOo via its Java interfaces (therefore
BSF4Rexx is needed).

Also, if you wish to use ooRexx as a macro language from within OOo you need to install the OOo
ooRexx engine (in the package "ScriptProviderForooRexx.jar"), e.g. from the OOo bin-directory:

unopkg add -shared ScriptProviderForooRexx.jar

That will install the ooRexx macro support for all users of OOo.

---

Please re-read the txt-file "readmeBSF4Rexx.txt"
(<http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/readmeBSF4Rexx.txt>).

---

More on this year's International Rexx Symposium starting this Sunday in Austin, Texas (cf.
<http://www.RexxLA.org>).


Regards,

---rony
  Reply With Quote
9 7th March 03:26
lee peedin
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Salvador,
Just curious, are you using BSF4Rexx now? I just started a couple of
months ago and am really impressed with what can be done. Rony put a
lot of work into this and it will surely payoff for me.

I've done right much in creating cross-platform GUIs and messed a
little with the Swing & SWT print APIs. Plan to spend a lot more time
on the printing after the Symposium. Also installed the FreeTTS
speech synthesizer <http://freetts.sourceforge.net/docs/index.php> and
done a little playing around with it.

Lots of stuff in the Java world that is now fully available to the
Rexx programmer.

Lee

On 4 Apr 2006 13:17:43 -0700, "Salvador Parra Camacho"
  Reply With Quote
10 9th March 03:22
mettemusens
External User
 
Posts: 1
Default Help on BSF4rexx, pls


Hi Salvador.

Thanx a lot ...

I thought it was okay, since I got java 1.5.06 when I did a: java
-version in the command prompt.

But when I added the Java....\bin\client to the front of my Path ... it
works perfectly.

I also tested it with the rexxj command - and this also works fine.

Thanks a lot for you help everyone.

Best regards
Mette

PS I'm still amazed by all the help one can get from these forums from
nice people from all over the world :-)
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666