calling java executable from .fvwm2rc

I’m trying to call a java .class file from .fvwm2rc – but doesn’t seem to work.
my sytax looks like the following:

[code]DestroyFunc FvwmFoo
AddToFunc FvwmFoo

  • I Exec java foo
    [/code]

Doesn’t seem to work…

any suggestions?

thanks in advance,
Skender

Set your $CLASSPATH in your .xinitrc, or .xsession file, before you load fvwm. Or you could use:

[code]DestroyFunc FvwmFoo
AddToFunc FvwmFoo

  • I Exec bash -c ‘CLASSPATH=/foo/ java foo’
    [/code]

– Thomas Adam

Thomas –

that worked great.

Thanks again for the great advice.

Skender

Thomas:
I tried the follow code that you gave me:

+ I Exec bash -c 'CLASSPATH=/my_dir/foo_dir/ java foo

to execute a java class entitled foo.

I cut and pasted the command into the command prompt, and it worked, but when I tried to execute it from insde the WM… nothing.

Is there something else that I have to set inside the WM that allows for java apps to be visible?>

thanks in advance,
Skender

The app might need to run in a containing xterm.

+ I Exec exec `xterm -ls -e 'bash -c "CLASSPATH=/my_dir/foo_dir/ java foo"'`

– Thomas Adam

Thomas –

Thanks for the help. I found that I actually had to change the mod on the files to 777 to make them accessable to the FVWM… I am not sure why, because they were in my home/fvwm directory…

but, like I have said, I am still new to all of this.

Thanks again for all of your help.

  • Skender

777 is not good. “755” is better.

– Thomas Adam