Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
281 B
5
Indexable
Never
# Error: java.lang..NoClassDefFoundError: java/sql/Time

String packageName = "java.sql.Time""

Package packageObject = Package.getPackage(packageName)

if (packageObject != null) {
  println "Package $packagename exists."
} else {
  println "Package $packageName doesn't exist."
}
Leave a Comment