Java classpath - Linux

后端 未结 4 1227
猫巷女王i
猫巷女王i 2020-12-31 10:58

I am trying to understand how classpath really works. After searching around the web this is where I have reached so far:

I have added

export CLASSP         


        
4条回答
  •  生来不讨喜
    2020-12-31 11:46

    The /etc/environment file is not a normal shell script; it is not executed as a shell script when you boot or login into your system. So running it with source /etc/environment does not the same as when you normally boot your system.

    See: Ubuntu environment variables

    /etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.

提交回复
热议问题