Java environment variables setting on Linux

1 export JAVA_HOME=<Java home path>
2 export PATH=$JAVA_HOME/bin:$PATH
3 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar 
时间: 2024-10-20 15:22:25

Java environment variables setting on Linux的相关文章

Java environment variables and their functionality

1. PATH env variable It is used to search the command directory when we use the console type commands. We only can use the javac and java command anywhere after the jdk\bin and jdk\jre\bin directory have been added in to the PATH env variable. E.g. "

[Shell&amp;Mac&amp;Environment variables]自己常用的Mac(或者说Linux)Shell命令小结,含Mac使用zsh shell的环境变量的有关配置方法

今天在使用tomcat的配置的时候,我用的mac,要是用到一些命令去配置tomcat. 问题来了: 我每次要去启动tomcat服务特别麻烦,因为我要先进入tomcat所在的文件目录,或者不进入使用~/,但是因为我把tomcat放到了一个比较“深“的文件夹里,所以命令显得又丑又长. 问题解决方案: 1.使用环境变量(修改.bashrc的方法) a.先查看自己的Mac目前正在用的是什么shell echo $SHELL 返回结果类似如下图 这里我是zsh,,也许你是bash,不过没关系,配置环境变量

Java Environment Setting

As a non-Java developer, I am quit stuck in Java environment setting because I am not familiar with Java. I write it down as following, I think it is the best way to write it in /etc/profile: export JAVA_HOME=/usr/local/jdk1.8.0_111 export PATH=$JAVA

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2]

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2] 2015-07   北京海淀区  张俊浩 2. Setting Up EDKII Development Environment(EDKII开发环境的搭建) ->2.1The General Procedure Of Setting Up EDKII Development Environment(搭建EDKII项目的通用流程)

Linux environment variables (环境变量)

Environment variables are often used to store a list of paths of where to search for executables, libraries, and so on. 环境变量通常存放一堆路径,这些路径用来搜索可执行文件.动态链接库,等等. Examples are $PATH, $LD_LIBRARY_PATH, 可以通过 echo 命令来查看: [[email protected] ~]# echo $PATH /usr

将java打jar包成linux后台服务service

将java打jar包成linux后台服务service 第一步:将java程序打成jar包 build.gradle配置文件中加spring-boot-gradle-plugin插件,具体配置如下(配置完成后刷新gradle项目) plugins {   id 'org.springframework.boot' version '1.5.4.RELEASE' } springBoot {   executable = true } 打包,在build.gradle所在的目录下,运行如下命令 g

Java(JDK)企业级Linux安装—阿里云服务器ECS64位

上一篇博文介绍了JDK在Windows10系统上面的安装过程,本文将介绍JDK在Linux系统安装过程. 环境说明: 操作系统 centos-release-7-3.1611.el7.centos.x86_64  JDK版本 jdk-8u11-linux-x64.tar.gz 查看Linux系统内核版本,通过远程终端连接Linux服务器,输入命令:rpm -q centos-release,如下图所示: 为了便于远程操作Linux服务器,这里介绍两个工具:Xshell和Xftp.这两个工具的安装

[Now] Configure secrets and environment variables with Zeit’s Now

Often your project will require some secret keys or tokens - for instance, API keys or database authentication information. Learn how to safely and easily deploy secrets to now, and how to expose them as environment variables that your applications c

How to keep Environment Variables when Using SUDO

The trick is to add environment variables to sudoers file via sudo visudo command and add these lines: Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy" from: http://stackoverflow.com/questions/8633461/how-to-keep-environment-vari