Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
set classpath
set
String cp = System.getProperty("classpath");
set
c:\java
--> source
package com.toolkit;
class Example {
public static void main(String[] args) {
System.out.println("Hello");
}
}
c:\java
--> classes
javac -d c:\java\classes Example.java
c:\java
--> classes
--> com
--> toolkit
--> Example.class
java -cp c:\java\classes com.toolkit.Example
javac -d c:\java\classes Example.java
Main-Class: com.toolkit.Example
jar cvmf main.txt example.jar com
java -cp c:\java\classes\example.jar com.toolkit.Example
OR
java -jar example.jar
cd C:\JavaPrograms
javac job\myCompany\myCompanyProgram.java
java job\myCompany\myCompanyProgram
java job.myCompany.myCompanyProgram
CLASSPATH=.;C:\JavaPrograms
java job.myCompany.myCompanyProgram
C:\Games
C:\JavaPrograms
myCompany
java -classpath .;C:\JavaPrograms job.myCompany.myCompanyProgram
set CLASSPATH=.;C:\dir1;C:\dir2;C:\dir3
export CLASSPATH=.:/dir1:/dir2:/dir3
set CLASSPATH .:/dir1:/dir2:/dir3
c:\AUTOEXEC.BAT
/etc/.profile
echo %CLASSPATH%
set
echo $CLASSPATH
export
set
C:\JavaPrograms
jar xvf job.jar job
jar -h
java -classpath C:\deployDirectory\job.jar job.myCompany.myCompanyProgram