Skip to content
← Back to Community
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.

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
Profile icon
vineetmehtaa
Profile icon
KarmaIsKrazy
Comments
hotnewtop
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"
Profile icon
BD103

I'm not very good at Java programming, but try this