On 03/04/13 08:31, Ariel Constenla-Haile wrote:
[snip]
> About debugging Java stuff, if you are planning to use BeansShell,
> you should think about using an IDE to write your code, the "editor"
> that shows up when you press "Edit" in the Script Organizer is
> rather suboptimal. There seems to be a plug-in for Netbeans:
> http://netbeans.dzone.com/beanshell-scripting-netbeans

> Long time ago I wrote this tutorial:
> http://wiki.openoffice.org/wiki/Scripting_in_Java_with_NetBeans_IDE
> It has some information that might apply to scripting and debugging
> with BeanShell.

Hi Ariel,

I went through most of the steps in the tutorial, and now I'm at the
place with:

  in Linux
        /home/user_name/.openoffice.org/3/user/Scripts/java/HelloWorld
       
I happen to have other scripts in:

        /home/user_name/.openoffice.org/3/user/Scripts
       
In particular, I have:

  /home/evansl/.openoffice.org/3/user/Scripts/beanshell/LibraryTest:
  total used in directory 32 available 54238344
  drwxr-xr-x 3 evansl evansl 4096 Jun 11  2012 .
  drwxr-xr-x 3 evansl evansl 4096 Jun 11  2012 ..
  -rw-r--r-- 1 evansl evansl 1998 Jun 11  2012 MemUsage.bsh
  -rw-r--r-- 1 evansl evansl  688 Jun 11  2012 parcel-descriptor.xml
       
With this, I would have expected to be able to run the MemUsage.bsh
script; however, when I tried, no LibraryTest was shown.

Then, I looked in the download directory and found:

 
/home/evansl/download/OpenOffice/r1372282/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US/openoffice.org3/.openoffice.org/3/user/Scripts
 
Then, I copied the beanshell scripts from my:
  ~/.openoffice.org/3/user/Scripts
to the one in the download directory, and now MemUsage.bsh is
available for execution in a document.

Is this the expected behaviour?  IOW, are the */user/Scripts expected
to be stored in the "application" directory:

 
/home/evansl/download/OpenOffice/r1372282/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US/
 
-regards,
Larry


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@openoffice.apache.org
For additional commands, e-mail: users-h...@openoffice.apache.org

Reply via email to