At 02:14 PM 4/19/00 -0400, Charles Rich wrote:
>Ahh... Then the correct general thing to do is to have Emacs/JDE pass
>the value of the HOME environment value to bsh via the java command
>line when it starts up.  I.e., in spirit:
>
>     java -Duser.home=(getenv "HOME")
>
>and then your Beanshell code can load an init file from user.home in
>both Windows and Linux.
>
>(Actually, come to think of it, passing the value of HOME to user.home
>like this would be a good thing for the JDE to do _whenever_ it runs java!  
>Current, the default value of user.home in NT is something useless
>like C:\WINNT\Profiles\rich.001 )
>
>Btw, JDE beta23 includes BeanShdell 0.96 beta.
>
>  > Date: Wed, 19 Apr 2000 11:25:07 -0500
>  > From: Pat <[EMAIL PROTECTED]>
>  > 
>  > > Here's documentation from info regarding how emacs finds it's
>  > > init file.  Bsh should use the same procedure.  The actual
>  > > source code is in emacs-20.6/lisp/startup.el, search for "HOME".
>  > > I know this works because I reset HOME in my NT environment
>  > > to be c:\rich.
>  > 
>  > Perhaps Paul could have bsh source a file based on this logic at
startup.  
>  > Java doesn't provide access to environment variables (at least it's 
>deprecated).
>  > 
>  > I'll add it to the list of things to do.
>  > 
>  > BTW, I'm not sure if the versin of bsh distributed with the JDE is up to 
>1.0,
>  > which has the current .rc file logic based on the user.home sytem
property.
>

The JDE does not include the current version of the beanshell because it
breaks, or at least it did the last time I checked, some important JDE
features. 

I will try to requalify the latest beanshell version ASAP.

- Paul

Reply via email to