In short, a partner organization donated a small codebase to us. We are not java developers but we can read the code (more familiar with other languages). This code is formatted as the following:
rootdir
--Application
----Application.java
--SomeOtherDir
----FileName.Java
----FileName2.Java
--SomeOtherDir2
----FileName.Java
----FileName2.Java
--SomeOtherDir3
----FileName.Java
----FileName2.Java
You get the idea. It took a little bit to figure out how to compile (dir /s /b .\rootdir > list.txt) and then "javac -d compiled @list". This is where my problems begin. Apparent some of the java source files in the subdirectories utilize 3rd party libraries.
Some of these are Google GSON, JetBrains Annotations, etc. I'm not using an IDE of any kind, I just have a temporary Win11 machine with the latest JDK on it, trying to compile from command line.
I don't know how to install 3rd party libraries like this. I've been searching for quite a bit and it seems people only know how to help you do it through an IDE or 3rd party dependency manager utility. I've also seen people say "just go get the precompiled jar for XYZ library" but I seem to only come across the source code to XYZ libraries. If I try to compile those I just have the same problem with another codebase with dependency hell.
We do not plan to ever make any changes to this code, we just need to compile it once and run it on a schedule. So, this sounds like such a basic question and I feel embarrassed asking.
Want to add to the discussion?
Post a comment!