Yes, I confirm
It works from inside ~/.imagej/plugins.
In my script I can simply change the path and compile from there.
Thanks a lot!
/Tomasz
From: Mark Rivers <rivers at cars.uchicago.edu>
Date: Friday, 25 March 2022 w:12 at 16:41
To: "J. Lewis Muir" <jlmuir at imca-cat.org>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Tomasz Brys <Tomasz.Brys at ess.eu>
Subject: Re: ADViewer, EPICS_NTNDA_Viewer.java compilation
Thanks, that worked. I used the relative path to ij.jar and it compiled with no problem from inside the ImageJ/plugins/EPICS_areaDetector directory.
javac -cp ".:jna-5.1.0.jar:epics-ntypes-0.3.5.jar:epics-pvaccess-5.1.5.jar:epics-pvaclient-4.3.2.jar:epics-pvdata-6.1.5.jar:../../ij.jar" ByteBufferUtil.java NTNDCodec.java EPICS_NTNDA_Viewer.java
From: J. Lewis Muir <jlmuir at imca-cat.org>
Sent: Friday, March 25, 2022 10:11 AM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Tomasz Brys <Tomasz.Brys at ess.eu>
Subject: Re: ADViewer, EPICS_NTNDA_Viewer.java compilation
On 03/25, Mark Rivers via Tech-talk wrote:
> Hi Tomasz,
>
> I am a Java novice, but I got the compilation to almost work by running in the ImageJplugins/EPICS_areaDetector directory:
>
> corvette:ImageJ/plugins/EPICS_areaDetector>java -cp jca-2.4.5.jar:epics-ntypes-0.3.5.jar:epics-pvaccess-5.1.5.jar:epics-pvdata-6.1.5.jar:epics-pvaclient-4.3.2.jar:epics-util-1.0.3.jar:../../ij.jar EPICS_NTNDA_Viewer.java
> EPICS_NTNDA_Viewer.java:112: error: cannot find symbol
> private NTNDCodec ntndCodec = null;
> ^
> symbol: class NTNDCodec
> location: class EPICS_NTNDA_Viewer
> EPICS_NTNDA_Viewer.java:408: error: cannot find symbol
> ntndCodec = new NTNDCodec();
> ^
> symbol: class NTNDCodec
> location: class EPICS_NTNDA_Viewer
> 2 errors
> error: compilation failed
>
> It is only complaining that it can't find NTNDCodec. That is also provide as source code, NTNDCodec.java. When I try to compile that I get this error:
>
> corvette:ImageJ/plugins/EPICS_areaDetector>java -cp jca-2.4.5.jar:epics-ntypes-0.3.5.jar:epics-pvaccess-5.1.5.jar:epics-pvdata-6.1.5.jar:epics-pvaclient-4.3.2.jar:epics-util-1.0.3.jar:../../ij.jar NTNDCodec.java
> NTNDCodec.java:29: error: package com.sun.jna does not exist
> import com.sun.jna.NativeLong;
>
> I don't remember how to fix that, but it is probably straightforward.
>
> Mark
Hi, Mark and Tomasz!
With ij.jar at /usr/share/java/ij.jar and the master branch of
ADViewers, this should work:
----
$ cd ADViewers/ImageJ/EPICS_areaDetector
$ ij_jar=/usr/share/java/ij.jar
$ javac -cp ".:jna-5.1.0.jar:epics-ntypes-0.3.5.jar:epics-pvaccess-5.1.5.jar:epics-pvaclient-4.3.2.jar:epics-pvdata-6.1.5.jar:$ij_jar" ByteBufferUtil.java NTNDCodec.java EPICS_NTNDA_Viewer.java
----
Lewis