Q
Q
Quad_Tree2016-05-07 20:04:57
Java
Quad_Tree, 2016-05-07 20:04:57

How to manually specify .jar libraries when compiling a program?

I ran into this problem on Linux. All libraries are in lib . If you run the command:

javac -d bin -sourcepath src -cp .:lib/* src/core/Core.java

The compilation will succeed, but how do I specify individual .jar libraries? (e.g. lwjgl.jar from lib directory)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2016-05-07
@Quad_Tree

Also, can you point out what the problem is?

javac -d bin -sourcepath src -cp .:lib/jar1.jar:lib/jar2.jar:lib/jar3.jar src/core/Core.java

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question