Ask coding questions

← Back to all posts
Is it possible to download a .jar?
KarmaIsKrazy (19)

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

Answered by RYANTADIPARTHI (6025) [earned 5 cycles]
View Answer

Yes it is try this:

javac -classpath .:./jars/ -d .
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 .; java Main"
BD103 (139)

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