Lets read below.
|
|
Syntax To Connect JAR Library To Java Using Command Prompt
- Syntax to compile & run java program with external library
C:\Users\Techies Net>java -cp jxl.jar;. test
Java the best programming language ever and have more than 7000 applications in various software development is now able to attach or connect external library to its existing jdk
1.7 library. Addition of library is used to connect databases, excel, Apache POI etc. This library can easily be attach using development softwares such as Netbeans or Eclipse. But what about if we want to connect library using command prompt. Don't worry we are giving here its syntax which helps to connect the jar library.
Lets read below.
Syntax To Connect JAR Library To Java Using Command Prompt
C:\Users\Techies Net>javac -cp jxl.jar;. test.java
C:\Users\Techies Net>java -cp jxl.jar;. test
In above commands, you are compiling and executing the test.java program in the presence of jxl.jar external library file. Please make sure to replace the jxl.jar file with your desired library file and it should present in the same directory where you compile the program.
For any queries, please use the comments section to get the solutions soon........
1 Comment
Pritam
18/12/2016 07:15:07 pm
Thanks for your help.
Reply
Leave a Reply. |
Get Updates Via EmailBlog SponsorsCategory
All
Archives
January 2019
|
|
Contact UsEmail: [email protected]
Stay Connected |
Download Our Mobile App |