On 9/16/14, 12:58 PM, Nerses Gevorgyan wrote:
> Let me ask this way: Is RULES_JAVA supported? Is there any better
> solution? What is "standard" build mechanism for EPICS Java
> application?
Hi, Nerses.
I don't build any of my EPICS CA Java applications or libraries with the
EPICS Base build framework. But I don't want to rule that out for you
because there may be people using it; I'm just not one of them.
When you say "EPICS Java application," what do you mean? Java libraries
and applications that I write only interface with EPICS via Channel
Access (CA). To do this, they need an EPICS CA library. One such
library is JCA/CAJ [1]. It's confusing, unfortunately, but JCA is a
set of Java classes and interfaces as well as a JNI implementation
for using native EPICS CA libraries from EPICS Base. JCA does not
include the native EPICS CA libraries from EPICS Base; you'd have to
build or obtain them separately. CAJ is a 100% Java implementation of
the interfaces provided in JCA; it does not require native EPICS CA
libraries from EPICS Base. So, for a 100% pure Java EPICS CA library
for the Java libraries and applications I write, I use the Java classes
and interfaces from JCA with the Java implementation from CAJ, and I
refer to this as "JCA/CAJ." This solution requires no native EPICS CA
libraries from EPICS Base.
Given this, I build my EPICS CA Java applications and libraries like
any other Java application or library; I use Ant [2]. The "JCA/CAJ"
library dependency is just two JAR files: jca-[VERSION].jar and
caj-[VERSION].jar. I treat them like I would any other library
dependency. Obviously, another very popular choice for building Java
applications and libraries is Maven [3]; you could use that instead of
Ant if you prefer.
Regards,
Lewis
[1] http://epics-jca.sourceforge.net/
[2] http://ant.apache.org/
[3] http://maven.apache.org/
- References:
- Re: Is RULES_JAVA broken? Nerses Gevorgyan
- Navigate by Date:
- Prev:
Re: Is RULES_JAVA broken? Nerses Gevorgyan
- Next:
Re: Is RULES_JAVA broken? Benjamin Franksen
- 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
- Navigate by Thread:
- Prev:
Re: Is RULES_JAVA broken? Nerses Gevorgyan
- Next:
Re: Is RULES_JAVA broken? Andrew Johnson
- 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
|