Professional Documents
Culture Documents
Create Your Own Package: 1 - Add Statement "Package APC - Lab1 " As First Line of Your Code
Create Your Own Package: 1 - Add Statement "Package APC - Lab1 " As First Line of Your Code
// bold text is the path where your class file exists; gives that path in above command
6 – Add this jar file in the lib folder of classpath and change the class path
(CLASSPATH= C:\Program Files \ Java \ jdk1.5.0 \ lib \ myapi . jar; ;)
7 –Your API is added in the classpath and now you are able to make your program calling your own api
from the lib folder.
Java Application
System.exit(1);
Any nonzero value indicates unsuccessful termination.
For Compilation:
1- Goto your working directory.
2- Compile your application by command javac filename.java
3- Execute your application by command java filename
Java Applet
https://docs.oracle.com/javase/tutorial/deployment/jar/build.html
https://www.thoughtco.com/building-your-first-java-applet-2034332