Installation of LIFT 2.6 on Windows Missing a JAVA component

21 views
Skip to first unread message

CTechie

unread,
Nov 16, 2017, 9:42:38 AM11/16/17
to Lift
I have JAVA installed as well as the SDK 8 but while installing LIFT I still get these errors running the bat file:

I also installed SCALA directly from the site and that didn't help. What's missing?
Java 8 update 151/152
Java 9.0.1
Java SDK 8
Java SDK 9


running bat file displays this:

C:\code_apps\lift_26\scala_211\lift_basic>set SCRIPT_DIR=C:\code_apps\lift_26\sc
ala_211\lift_basic\

C:\code_apps\lift_26\scala_211\lift_basic>java -XX:+CMSClassUnloadingEnabled -XX
:MaxPermSize=256m -Xmx1024M -Xss2M -jar "C:\code_apps\lift_26\scala_211\lift_bas
ic\\sbt-launch-0.13.8.jar"
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support
was removed in 8.0
error: error while loading package, Missing dependency 'object java.lang.Object
in compiler mirror', required by C:\Users\Cheryl\.sbt\boot\scala-2.10.4\lib\scal
a-library.jar(scala/package.class)
error: error while loading package, Missing dependency 'object java.lang.Object
in compiler mirror', required by C:\Users\Cheryl\.sbt\boot\scala-2.10.4\lib\scal
a-library.jar(scala/runtime/package.class)
scala.reflect.internal.MissingRequirementError: object java.lang.Object in compi
ler mirror not found.
        at scala.reflect.internal.MissingRequirementError$.signal(MissingRequire
mentError.scala:16)
        at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequi
rementError.scala:17)
        at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.sca
la:48)
        at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.sca
la:40)
        at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.sca
la:40)
        at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.sca
la:61)
        at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala
:99)
        at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.sca
la:102)
        at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzyco
mpute(Definitions.scala:264)
        at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Defin
itions.scala:264)
        at scala.reflect.internal.Definitions$DefinitionsClass.AnyRefClass$lzyco
mpute(Definitions.scala:263)
        at scala.reflect.internal.Definitions$DefinitionsClass.AnyRefClass(Defin
itions.scala:263)
        at scala.reflect.internal.Definitions$DefinitionsClass.specialPolyClass(
Definitions.scala:1120)
        at scala.reflect.internal.Definitions$DefinitionsClass.RepeatedParamClas
s$lzycompute(Definitions.scala:407)
        at scala.reflect.internal.Definitions$DefinitionsClass.RepeatedParamClas
s(Definitions.scala:407)
        at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClas
ses$lzycompute(Definitions.scala:1154)
        at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClas
ses(Definitions.scala:1152)
        at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresent
InBytecode$lzycompute(Definitions.scala:1196)
        at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresent
InBytecode(Definitions.scala:1196)
        at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.
scala:1261)
        at scala.tools.nsc.Global$Run.<init>(Global.scala:1290)
        at sbt.compiler.Eval$$anon$1.<init>(Eval.scala:141)
        at sbt.compiler.Eval.run$lzycompute$1(Eval.scala:141)
        at sbt.compiler.Eval.run$1(Eval.scala:141)
        at sbt.compiler.Eval.unlinkAll$1(Eval.scala:144)
        at sbt.compiler.Eval.evalCommon(Eval.scala:153)
        at sbt.compiler.Eval.eval(Eval.scala:96)
        at sbt.EvaluateConfigurations$.evaluateDslEntry(EvaluateConfigurations.s
cala:178)
        at sbt.EvaluateConfigurations$$anonfun$9.apply(EvaluateConfigurations.sc
ala:118)
        at sbt.EvaluateConfigurations$$anonfun$9.apply(EvaluateConfigurations.sc
ala:116)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike
.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike
.scala:244)
        at scala.collection.immutable.List.foreach(List.scala:318)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at sbt.EvaluateConfigurations$.evaluateSbtFile(EvaluateConfigurations.sc
ala:116)
        at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:710)
        at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala
:715)
        at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala
:714)
        at scala.Option.getOrElse(Option.scala:120)
        at sbt.Load$.sbt$Load$$memoLoadSettingsFile$1(Load.scala:714)
        at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:721)
        at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:721)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike
.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike
.scala:244)
        at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.
scala:59)
        at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at sbt.Load$.loadFiles$1(Load.scala:721)
        at sbt.Load$.discoverProjects(Load.scala:732)
        at sbt.Load$.discover$1(Load.scala:545)
        at sbt.Load$.loadTransitive(Load.scala:574)
        at sbt.Load$.loadProjects$1(Load.scala:442)
        at sbt.Load$.loadUnit(Load.scala:446)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$
apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$
apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
        at sbt.BuildLoader.apply(BuildLoader.scala:140)
        at sbt.Load$.loadAll(Load.scala:334)
        at sbt.Load$.loadURI(Load.scala:289)
        at sbt.Load$.load(Load.scala:285)
        at sbt.Load$.load(Load.scala:276)
        at sbt.Load$.apply(Load.scala:130)
        at sbt.Load$.buildPluginDefinition(Load.scala:819)
        at sbt.Load$.buildPlugins(Load.scala:785)
        at sbt.Load$.plugins(Load.scala:773)
        at sbt.Load$.loadUnit(Load.scala:431)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$
apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$
apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
        at sbt.BuildLoader.apply(BuildLoader.scala:140)
        at sbt.Load$.loadAll(Load.scala:334)
        at sbt.Load$.loadURI(Load.scala:289)
        at sbt.Load$.load(Load.scala:285)
        at sbt.Load$.load(Load.scala:276)
        at sbt.Load$.apply(Load.scala:130)
        at sbt.Load$.defaultLoad(Load.scala:36)
        at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
        at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
        at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
        at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.sca
la:58)
        at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.sca
la:58)
        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.sca
la:60)
        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.sca
la:60)
        at sbt.Command$.process(Command.scala:92)
        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
        at sbt.State$$anon$1.process(State.scala:184)
        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.MainLoop$.next(MainLoop.scala:98)
        at sbt.MainLoop$.run(MainLoop.scala:91)
        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
        at sbt.Using.apply(Using.scala:24)
        at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
        at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
        at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
        at sbt.MainLoop$.runLogged(MainLoop.scala:24)
        at sbt.StandardMain$.runManaged(Main.scala:53)
        at sbt.xMain.run(Main.scala:28)
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
        at xsbt.boot.Launch$.run(Launch.scala:109)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:18)
        at xsbt.boot.Boot$.runImpl(Boot.scala:41)
        at xsbt.boot.Boot$.main(Boot.scala:17)
        at xsbt.boot.Boot.main(Boot.scala)
[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?

Matt Farmer

unread,
Nov 16, 2017, 10:36:40 AM11/16/17
to lif...@googlegroups.com
You'll probably have to uninstall JDK and Java 9 or somehow change which "active" version of Java you're using. Lift itself should run fine in Java 9, but sbt (the build tool) does not. 

You can confirm what version of Java you have active by running the following command

java -version

Thanks,
Matt

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Petersson

unread,
Nov 16, 2017, 1:27:19 PM11/16/17
to lif...@googlegroups.com
Matt are you sure? 
The question was to run Lift 2.6. 
As far as I know 2.6 runs best on Java v6. 
Are there any specially reason you can't run on a Lift 3.x version,  that version will run perfectly with Java 8. 

Mvh Peter 

Antonio Salazar Cardozo

unread,
Nov 29, 2017, 9:45:57 AM11/29/17
to Lift
I think Matt was saying *sbt* has some issues in Java 9, not Lift.
Thanks,
Antonio
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages