Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
5

How to import packages in java

I want to import com.google.gson.GsonBuilder into a java file of mine, however, rep.it does have that file. Is there a way to make that package, then import it into my own code

4 years ago

Voters

PratikBhowmik1
PratikBhowmik1
piperchester
piperchester
richkezia
richkezia
programom
programom
jurgenvinju
jurgenvinju

Comments

TopNew
6
TheDrone7
TheDrone7

For that you would need to use build tools such as maven or Gradle. Unfortunately, repl.it doesn't support any of them yet. Hopefully, they might add them in the near future. But till then you won't be able to do it.

4 years ago
1
SPQR
SPQR

@TheDrone7
He might be able to do it using polygott

4 years ago
1
TheDrone7
TheDrone7

@SPQR
no polygott doesn't have them either.

4 years ago
1
sayyidyofa
sayyidyofa

Repl.it supports adding libaries from maven/gradle now. Awesome!

3 years ago
Load more