- Package:
- scala-parser-combinators
- Source:
- scala-parser-combinators
- Submitter:
- Patrice Duroux
- Date:
- 2025-07-20 09:09:02 UTC
- Severity:
- normal
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
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
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 :
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
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.