Hi Jean-Laurent
I did as you proposed and created the object Test. And indeed I got a
more descriptive error message now:
C:\cygwin\home\jv54580\prog\JLine>scala Test
java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no
jansi in java.library.path, C:\WINDOWS\Temp\jansi.d
ll: This application has failed to start because the application
configuration is incorrect. Reinstalling the applicatio
n may fix this problem]
at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:
182)
at org.fusesource.hawtjni.runtime.Library.load(Library.java:
142)
at
org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:40)
at
org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSupport.java:
48)
at Test$delayedInit$body.apply(jline.scala:2)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV
$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:60)
at scala.App$$anonfun$main$1.apply(App.scala:60)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.generic.TraversableForwarder
$class.foreach(TraversableForwarder.scala:30)
at scala.App$class.main(App.scala:60)
at Test$.main(jline.scala:1)
at Test.main(jline.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run
$1.apply(ScalaClassLoader.scala:78)
at scala.tools.nsc.util.ScalaClassLoader
$class.asContext(ScalaClassLoader.scala:24)
at scala.tools.nsc.util.ScalaClassLoader
$URLClassLoader.asContext(ScalaClassLoader.scala:88)
at scala.tools.nsc.util.ScalaClassLoader
$class.run(ScalaClassLoader.scala:78)
at scala.tools.nsc.util.ScalaClassLoader
$URLClassLoader.run(ScalaClassLoader.scala:101)
at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33)
at scala.tools.nsc.ObjectRunner
$.runAndCatch(ObjectRunner.scala:40)
at scala.tools.nsc.MainGenericRunner.runTarget
$1(MainGenericRunner.scala:56)
at
scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)
at scala.tools.nsc.MainGenericRunner
$.main(MainGenericRunner.scala:89)
at
scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
I checked whether C:\WINDOWS\Temp\jansi.dll is present, it is.
(By the way, although the prompt suggests otherwise I am running this
in a cmd.exe shell.)
Thanks for your advice.
Jan
> > > Ouch. Good luck! If I think of anything else, I will post.- Hide quoted text -
>
> - Show quoted text -