What you are doing wrong is that you are using a .bat file to compile in 2018. Go download an IDE where it's easy to add all your libs (and helpful in so many other ways).
I suggest: Eclipse, Netbeans, or IntelIj
|
Hi
I actually cant figure out how to add libraries to the classpath,
I thought i could just do this:
But when i do, i get a bunch of "package does not exist" and "cannot find symbol" exceptions from the libraries in the deps folder (so, the deps weren't added to the classpath for some reason).Code:javac -d bin -cp ./deps/*.jar @srcs.txt
Does anyone know what im doing wrong?
( my jdk version is 1.8.0, if that means anything )
What you are doing wrong is that you are using a .bat file to compile in 2018. Go download an IDE where it's easy to add all your libs (and helpful in so many other ways).
I suggest: Eclipse, Netbeans, or IntelIj
Well thats because i dont usually use the CLI to build my code ( which is why im asking what im doing wrong )
And i do use an IDE when i develop on my own PC.
Reason i need this is because i want a script on the server that automatically fetches updated files from my git repo and then recompiles the code.
EDIT:
So after much intense googling i figured it out:
Apparently you can't use wildcards in the classpath the way i was doing it.
It's a lot easier to build using Maven or Gradle if you want to build from CLI.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |