How to connect to the project jar package for its class without any IDE, using only the command line? I'm going to connect the JNA to use external methods.
Asked
Active
Viewed 29 times
0
-
Sorry, but I don't understand your question. Please add more infos to the question – André Schild Jul 23 '15 at 15:56
-
@AndréSchild I have jar file, which is a library of classes. Namely, that is JNA. How to use it? I don't work with any IDE, I work with command line. – Destructor Jul 23 '15 at 16:25
-
Just add the jar's to your classpath...? – André Schild Jul 23 '15 at 16:29
-
@AndréSchild How to do this? I don't know. Write it as answer, please. – Destructor Jul 23 '15 at 16:50
-
http://stackoverflow.com/questions/219585/setting-multiple-jars-in-java-classpath – André Schild Jul 23 '15 at 16:52
1 Answers
0
javac -cp lib\*; Sample.java
java -cp lib\*; Sample
Where folder "lib" contains jar library, "Sample" is main class

Destructor
- 11
- 2