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: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Tomasz Brys <Tomasz.Brys at ess.eu> |
Date: | Fri, 25 Mar 2022 15:05:19 +0000 |
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
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Tomasz Brys via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, March 25, 2022 9:24 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: ADViewer, EPICS_NTNDA_Viewer.java compilation Hi,
I want to compile EPICS_NTNDA_Viewer.java from the command line. I need it for my script which will automatize all the installation process of the areaDetector. For the EPICS_AD_Viewer.java I simply used this command: javac -cp ~/.imagej/plugins/jca-2.4.5.jar:/usr/share/java/ij.jar ~/.imagej/plugins/EPICS_AD_Viewer.java and plugin appears in imageJ.
I tried to do the same with NTNDA_Viewer by: javac -cp ~/.imagej/plugins/jca-2.4.5.jar:/usr/share/java/ij.jar ~/.imagej/plugins/EPICS_NTNDA_Viewer.java but this doesn’t work. It complains for missing packages: pvaClient, pvdata etc. I tried to put all of them in the command line but I did not succeed. Can somebody help me with compilation of it?
/Tomasz Brys BTW it works when I compile it from imageJ GUI but I want to do it from the command line.
|