1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: ADViewer, EPICS_NTNDA_Viewer.java compilation |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "J. Lewis Muir" <jlmuir at imca-cat.org> |
Cc: | Tomasz Brys <Tomasz.Brys at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 25 Mar 2022 15:41:43 +0000 |
Hi Lewis,
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
Mark
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 |