Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #8474

Re: Help getting missing classes found by prottest

From Markus Koschany <apo@gambaru.de>
Newsgroups linux.debian.maint.java
Subject Re: Help getting missing classes found by prottest
Date 2015-10-16 23:30 +0200
Message-ID <qkkJA-1Ic-21@gated-at.bofh.it> (permalink)
References <qkjNw-mq-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Am 16.10.2015 um 22:26 schrieb Andreas Tille:
> Hi,
> 
> I try to package prottest[1] but I get errors of kind
> 
> i    [mkdir] Created dir: /build/prottest-3.4+dfsg/build/empty
>     [javac] Compiling 120 source files to /build/prottest-3.4+dfsg/build/classes
>     [javac] /build/prottest-3.4+dfsg/src/main/java/es/uvigo/darwin/prottest/ProtTest.java:23: error: package mpi does not exist
>     [javac] import mpi.MPI;
>     [javac]           ^
>     [javac] /build/prottest-3.4+dfsg/src/main/java/es/uvigo/darwin/prottest/ProtTest.java:55: error: package pal.misc does not exist
>     [javac] import pal.misc.Identifier;
>     [javac]                ^
>     [javac] /build/prottest-3.4+dfsg/src/main/java/es/uvigo/darwin/prottest/ProtTest.java:56: error: package pal.tree does not exist
>     [javac] import pal.tree.Tree;
>     [javac]                ^
>     [javac] /build/prottest-3.4+dfsg/src/main/java/es/uvigo/darwin/prottest/util/factory/ProtTestFactory.java:30: error: package pal.alignment does not exist
>     [javac] import pal.alignment.Alignment;
>     [javac]                     ^
> ...
> 
> 
> I have no idea why neither mpi nor pal classes are found since I tried
> to add mpj and pal but obviously failed.
> 
> Any help is welcome
> 
>       Andreas.


Hey,

since this project uses Ant as build system, you have normally two options:

1. Patch build.xml and change the path to the prottest.lib directory
from lib to /usr/share/java

2. Symlink Debian's system jar files during the dh_auto_build override
step from /usr/share/java to the lib directory.

Unfortunately there is no simple way to automate this step, since the
name of the lib property can be different from project to project.

However in this case the upstream developer apparently uses the Netbeans
IDE for development and he or she includes another build xml file with

<import file="buildconf/build-impl.xml"/>

which in turn imports the project.properties file.

In this file you can find a lot of file.reference lines which actually
point the Ant build system to the required libraries to build this package:

If you patch project.properties with the attached patch, the build will
be successful. After that you just have to modify the debian/install
file because the prottest.jar can actually be found in the dist
directory as prottest-3.4.jar.

P.S.: Please note that the swing-worker.jar is still imported from the
libs directory. I don't know if this one is already packaged for Debian.

Cheers,

Markus

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Help getting missing classes found by prottest Andreas Tille <andreas@an3as.eu> - 2015-10-16 22:30 +0200
  Re: Help getting missing classes found by prottest Markus Koschany <apo@gambaru.de> - 2015-10-16 23:30 +0200
    Re: Help getting missing classes found by prottest Emmanuel Bourg <ebourg@apache.org> - 2015-10-16 23:40 +0200
      Re: Help getting missing classes found by prottest Andreas Tille <andreas@an3as.eu> - 2015-10-17 00:30 +0200
        Re: Help getting missing classes found by prottest Andreas Tille <andreas@an3as.eu> - 2015-10-17 09:00 +0200
          Re: Help getting missing classes found by prottest Markus Koschany <apo@gambaru.de> - 2015-10-17 16:20 +0200
  Re: [Debian-med-packaging] Help getting missing classes found by prottest Sascha Steinbiss <satta@tetrinetsucht.de> - 2015-10-16 23:40 +0200

csiph-web