Is it possible to include jar files in project classpath directory? Have a class project I would like to import along with classes contained in jar files.
Let me know thanks.
Jar files can be uploaded to your project the same as other files. I put my jar files into a "jars" folder that I create in my repl.
From that point, you can compile and run your code from the command line:
javac -classpath .:./jars/ -d . Main.java
java -classpath .:./jars/ Main
If you want to configure the "Run" action, you can define a .replit file in your project and add the following line.
run = "export CLASSPATH=\".:./jars/*\"; javac -d . Main.java; java Main"
Configure these commands to match your environment, class names, etc.