Fast Object Database for Java - with JPA/JDO support

Starting Explorer programmatically

#1

Hi wondering if it's possible to start Explorer from code.

Reason:

In cases where Gradle is used to manage the ObjectDb jar version, it would be useful to start the explorer from a Groovy script (or java program), to guarantee that it's using the same Gradle-managed objectdb jar version.

 

 

#2

The Explorer is a Java program, so you can simply call its main method from your program:

    com.objectdb.Explorer.main(new String[0]);
ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Thanks though not working for me.

Do I have to add the Explorer jar file to Gradle separately?

Here are the relevant parts of my Gradle file:

 

 

repositories {
  jcenter ()
  maven {
    url 'http://m2.objectdb.com'
  }
}

 

dependencies {

  // OBJECTDB:
  compile 'com.objectdb:objectdb:2.7.5'
  compile 'org.eclipse.persistence:javax.persistence:2.2.0'
  compile 'javax.transaction:jta:1.1'

}

 

 

 

#4

this didn't work:
 

  compile 'com.objectdb:explorer:2.7.5'

 

is that jar at:  http://m2.objectdb.com ?

#5

Yes, you need the Explorer JAR file and it is not available on ObjectDB Maven repository.

You can find it in the bin directory of ObjectDB zip file distribution.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#6

Would you please add it so that we don't have to manually sync the versions.

 

Thanks

 

#7

This requires changes to our automatic Maven repository, so it was added to plans but will not be available immediately.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply