Skip to content
Is it possible to download a .jar?
Profile icon
KarmaIsKrazy

If I downloaded the .class and java files could I also download these as .jar files from repl.

You are viewing a single comment. View All
Profile icon
RYANTADIPARTHI

Yes it is try this:

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"