Ask coding questions

← Back to all posts
Import custom jar as java package
PixlPerfect02 (0)

Is there possibly a way to import a custom jar file as a package into repl? (sorry if this has been asked before, i couldn't find answers)
PS: I am not looking to import a jar from the packages list, as it does not have the jar that I need.

Comments
hotnewtop
cello91 (0)

Same problem here!
I want to use sas.5.7.jar which is a grafics bibliography we use at the school where I teach.

http://www.dingemann.de/sas/

Is there a way to get it in the projects?

Best Marcel

Coder100 (17018)

yeah, just upload it on to the repl, and then add this .replit file:

run="[insert java run commands, like javac]"
PixlPerfect02 (0)

@Coder100 with this method i don't believe that autocomplete works, is there a method that does work with that, or would you need the source files?

19wintersp (1121)

@PixlPerfect02 A JAR file is an archive with metadata containing Java ".class" files. A JAR file is an output format, so there is no autocomplete for it. Could you clarify what you mean? Actual Java code goes in ".java" source files.