Sabih Ismail
Sabih Ismail

Reputation: 21

Kotlin load external class?

I know using URLClassLoader it is possible to load external Java files that are not contained in the project src folder.

I was wondering if there was an equivalent method using Kotlin?

Thanks.

Upvotes: 0

Views: 564

Answers (1)

guenhter
guenhter

Reputation: 12167

The URLClassLoader doesn't load java files but class files. So you can just use it with Kotlin.

Upvotes: 3

Related Questions