`
lucane
  • 浏览: 121393 次
  • 性别: Icon_minigender_1
  • 来自: 江湖
社区版块
存档分类
最新评论

Environment Variables for Java

阅读更多
JAVA_HOME
JDK_HOME
PATH
CLASSPATH


javac -d . HelloWorld.java
java com.live.xscript.demo.HelloWorld
java -verbose com.live.xscript.demo.HelloWorld


默认情况下(sun javac)
rt.jar
dt.jar
tools.jar
都不用放在CLASSPATH
系统默认就包含了

但用其他的编译器如jikes
CLASSPATH中就要包含rt.jar
JAVA_HOME=JDK_HOME
D:\Program Files\Java\jdk1.5.0

CLASSPATH
.;%JAVA_HOME%\jre\lib\rt.jar;D:\Program Files\Java\lib

PATH
%JAVA_HOME%\bin;

分享到:
评论

相关推荐

    最新版本 JEnv-for-Windows, java多版本管理

    JEnv-for-Windows 是一个针对Windows系统的Java版本管理工具,类似于Linux上的JEnv工具。它旨在帮助用户在本地系统上方便地切换多个Java Development Kit (JDK) 版本。JEnv-for-Windows的工作原理和特性主要包括: ...

    Java: A Beginners Complete Reference Guide to Learn The Java Programming

    You’ll learn how computers make decisions and how Java keeps track of information through variables and data types. You’ll learn to create conditional statements, functions, and loops to process ...

    Android代码-java-dotenv

    Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment ...

    Java.Crash.Course.1541019245.epub

    This amazing Java Crash Course is the book that you are looking for. Table of Contents Chapter 1: Let's Start From The Beginning Chapter 2: Java Environment Chapter 3: Java Language Structure Chapter...

    was内存溢出分析工具jca401

    You can control it by using environment variables and runtime switches. Javacore contains diagnostic information related to the JVM and a Java application captured at a point during execution. For ...

    安装javaDB

    在Windows系统中,这可以通过编辑`System Properties` -> `Environment Variables`实现;在Unix或Linux系统中,编辑`~/.bashrc`或`~/.bash_profile`文件添加相应行。 4. **更新`PATH`变量**: - 在所有操作系统中...

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    Chapter 2: The Java Programming Environment 15 Installing the Java Development Kit 16 Choosing a Development Environment 21 Using the Command-Line Tools 22 Using an Integrated Development ...

    Introduction to Programming in Java 2nd Robert Sedgewick

    Detailed instructions for installing a Java programming environment Program code and test data suitable for easy download Detailed creative exercises, projects, and other supplementary materials ...

    mastering.java

    Chapter 1: Java Basics – you will learn the basic programming elements of the Java language, including how to set up your programming environment, using a text editor and how to write a program....

    Elasticsearch for Hadoop

    Setting up environment variables Configuring Hadoop Configuring core-site.xml Configuring hdfs-site.xml Configuring yarn-site.xml Configuring mapred-site.xml The format distributed filesystem ...

    Introduction to Programming in Java, 2nd Edition (2017.4出版.EPUB格式)

    Detailed instructions for installing a Java programming environment Program code and test data suitable for easy download Detailed creative exercises, projects, and other supplementary materials ...

    jdk1.8.docx

    5. Configure the environment variables: - Set `JAVA_HOME` to the JDK installation directory. - Add `%JAVA_HOME%\bin` to the `PATH` environment variable. 6. Verify the installation by running `java -...

    java.核心技术.第八版 卷1

    This revised edition of the classic Core Java™, Volume I–Fundamentals, is the definitive guide to Java for serious programmers who want to put Java to work on real projects. Fully updated for the ...

    JAVA基础学习课件,菜鸟篇

    最后,了解如何使用JDK(Java Development Kit)和IDE(Integrated Development Environment)如Eclipse或IntelliJ IDEA进行开发和运行Java程序是必要的。JDK包含了编译器javac和解释器java,而IDE则提供了更高效、便捷...

    java基础英语

    16. **环境变量(Environment Variables)**:如JAVA_HOME,用来指定Java安装目录,便于配置类路径。 17. **变量(Variables)**:存储数据的容器,有不同类型如`byte`、`short`、`int`、`long`、`char`、`String`...

    java专业英语词汇-基础篇

    - **Integrated Development Environment (IDE)**: 集成开发环境,为程序员提供编写、编译、调试和运行程序的集成软件工具。 - **interpreter**: 解释器,是一种运行程序的程序,通常逐行执行源代码。 - **Java ...

    Java Crash Course [2016]

    You will know how to install Java and set up the Java environment You will understand the language structure You will learn what it is a Java variable and how we can use it You will understand how to ...

    jdk1.7_80 window.64

    - 安装JDK 1.7_80 by following the setup wizard, ensuring to choose the appropriate installation directory and configuring the environment variables, such as JAVA_HOME, PATH, and CLASSPATH. - Verify ...

    J2SERuntimeEnvironment5.0开发者版

    为简化遍历集合和数组,Java引入了增强的for循环。它提供了一种简洁的语法,如`for (Type item : collection) { ... }`,减少了循环代码的复杂性。 6. **类型注解(Type Annotations)** 虽然类型注解在J2SE 5.0...

Global site tag (gtag.js) - Google Analytics