Just in case... when you use su -
(with the dash) you get a login shell; i.e., the content of /etc/profile
, entries in /etc/profile.d
and root's .profile
are read (su
without the dash does not do that, you get no environment settings other than a bare minimum). You can tell if you open a terminal window and type "su -" and you should see root's profile settings.
Another idea -- is there a directory in /etc
with scala configuration? Or is there an etc/profile.d
directory (with something like "scala.sh" in it? Or a "conf" file for scala? Any of those should be read at boot, login or application start up.
As a last resort, try adding your CLASSPATH at the end of /etc/profile
or, if you have /etc/profile.d
with a file jdk.sh
in it (which looks like)
you might try adding your CLASSPATH there -- in any case, these may not work if you don't invoke a login shell. You can always take a look at the settings for terminal emulator and click the box for a login shell (depending on your window manger it may be in system settings). In Xfce4 you click the preferences in the terminal window and click the box there).
Last resort: put a little executable in /root
Save that as whatever and
then simply execute it before you start the application.
Best I can do.
Hope this helps some.