#845795 scala-parser-combinators: no symlink for scala-parser-combinators.jar?

#845795#5
Date:
2016-11-26 18:58:42 UTC
From:
To:
Dear Maintainer,

After installing and using latexdraw package (3.3.4+ds1-1), here is the warning that I got:

patrice@hp-dark:~$ latexdraw
[warning] /usr/bin/latexdraw: No java runtime was found
[warning] /usr/bin/latexdraw: Unable to locate scala-parser-combinators in /usr/share/java
[warning] /usr/bin/latexdraw: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java

but in /usr/share/java the situation is:

scala-parser-combinators_2.11.jar -> scala-parser-combinators_2.11-1.0.3.jar
scala-parser-combinators_2.11-1.0.3.jar

and adding manually a symlink 'scala-parser-combinators.jar' on 'scala-parser-combinators_2.11-1.0.3.jar'
remove the warning.
But may be the trouble is due to a wrong classpath in latexdraw! ;-)

Regards,
Patrice

#845795#10
Date:
2016-11-28 23:21:05 UTC
From:
To:
Hi Patrice,

Scala libraries are built for a specific version of the runtime
(different versions of the runtime aren't fully compatible) Here
scala-parser-combinators was built with Scala 2.11 and the jar installed
in /usr/share/java contains the scala version to make this clear. So you
simply have to modify the find_jar directive of your wrapper script and
look for scala-parser-combinator_2.11 instead of scala-parser-combinator.

Emmanuel Bourg

#845795#15
Date:
2016-11-29 19:13:16 UTC
From:
To:
Hi Emmanuel,

I do not use any wrapper script, I just everything provided by the native Debian
package (latexdraw) and I juste run it after installation using terminal and saw
the warning message (its a chance!).
Also why it is not the case for the scala-library package on which it depends?
I mean its installation generates following symlinks:
scala-actors-2.11.8.jar
scala-actors-2.11.jar -> scala-actors-2.11.8.jar
scala-actors.jar -> scala-actors-2.11.8.jar
scala-library-2.11.8.jar
scala-library-2.11.jar -> scala-library-2.11.8.jar
scala-library.jar -> scala-library-2.11.8.jar
scala-reflect-2.11.8.jar
scala-reflect-2.11.jar -> scala-reflect-2.11.8.jar
scala-reflect.jar -> scala-reflect-2.11.8.jar
So if the default is installing Scala 2.11, why not for the corresponding
library?
But ok, I will see to create a wrapper based on the latexdraw package wrapper
script.

Thanks,
Patrice

Le mardi 29 novembre 2016 à 00:21 +0100, Emmanuel Bourg a écrit :

#845795#20
Date:
2016-11-29 20:07:46 UTC
From:
To:
Le 29/11/2016 à 20:13, Patrice Duroux a écrit :

By wrapper script I meant this:

https://anonscm.debian.org/cgit/pkg-java/latexdraw.git/tree/debian/patches/latexdraw_shell_script.patch?id=b65868d

In this patch scala-parser-combinators has to be replaced by
scala-parser-combinators_2.11.

Because scala-library is built by the scala package and thus is
implicitly tied to the current version of scala.

Emmanuel Bourg

#845795#25
Date:
2025-07-20 09:06:55 UTC
From:
To:
Hi,

just stumbled upon this in Bug of the Day.

Am Tue, Nov 29, 2016 at 09:07:46PM +0100 schrieb Emmanuel Bourg:

Doesn't this mean the bug should be re-assigned to latexdraw?

Kind regards
    Andreas.