knowitall / openie

Quality information extraction at web scale.
Other
457 stars 108 forks source link

Can't compile/create jar #27

Closed v3nd3774 closed 8 years ago

v3nd3774 commented 8 years ago

Hi,

I'd like to open a new issue.

I am trying to run openie over some data and decided to get started with getting the demo provided here running.

I recently downloaded the .zip of the knowitall/openie github (tonight) on a fresh install of ubuntu.

Here are the steps I took:

  1. Installed sbt from the commands given here
  2. Downloaded & extracted the latest knowitall/openie .zip
  3. cd'd to the extracted .zip
  4. ran sbt clean compile assembly

The following is my terminal output:

josh@josh:~/Desktop/openie-master$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)

josh@josh:~/Desktop/openie-master$ sbt clean compile assembly
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /home/josh/.sbt/boot/scala-2.10.2/lib/scala-library.jar(scala/package.class)
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /home/josh/.sbt/boot/scala-2.10.2/lib/scala-library.jar(scala/runtime/package.class)
[error] scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Not a valid command: clean (similar: last, eval)
[error] clean
[error]      ^

josh@josh:~/Desktop/openie-master$

After trying this, I tried sbt compile, with the following results...

josh@josh:~/Desktop/openie-master$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
josh@josh:~/Desktop/openie-master$ ls
build.sbt  LICENSE  project  README.md  release  src  version.sbt
josh@josh:~/Desktop/openie-master$ sbt compile
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /home/josh/.sbt/boot/scala-2.10.2/lib/scala-library.jar(scala/package.class)
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror', required by /home/josh/.sbt/boot/scala-2.10.2/lib/scala-library.jar(scala/runtime/package.class)
[error] scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
[error] Not a valid command: compile
[error] compile
[error]        ^
josh@josh:~/Desktop/openie-master$ 

Could anyone shed some light on what's going wrong?

Thanks, Josh

v3nd3774 commented 8 years ago

Solved the problem by installing Java via sudo apt-get install oracle-java8-installer.