which IDE is best for building Java px for Agile PLM?
Hi,
There isn’t the best IDE for developing Agile Java PXs in my opionion.
I am using eclipse since years without any issue to develop Java PXs.
Thanks Antonio and Kaistubh. I am new to Java development. I am facing challenges with building a jar file when log4j2 is used. without the log4j2, the px shows up in the process extension drop down list and get an error “missing resource java.util.MissingResourceException: Can’t find bundle for base name ProcessAudit, locale en_US
IO (No such file or directory)”. With log4j2 code, the px doesn’t even show up in the process extensions list.
I am trying to build the ,jar in netbeans.
application server has JDK1.7. do i need to build the jar file with JDK 1.7 itself or even jar files built with JDK 1.8 also work .
Attached is the build.xml that I am using in netbeans project. I have included both log4j2 core and API jars in the classpath. but new px doesn’t show up in the drop down list. Apreciate if you can help me to find the issue. I am compiling it with JDK 1.7.
java.lang.UnsupportedClassVersionError: com/agile/audit/myvalidator/ProcessAudit : Unsupported major.minor version 52.0. I am seeing this error in the logs. Does this mean that this is compiled using JDK1.8 instead of JDK1.7? how to make sure it is compiled using JDK1.7 using build.xml?
Re; Log4J :
Use the SAME log4j.jar file that is in the Agile PLM. Look under your installation folder/agileDomain/lib
Re:JDK version.
Use the same JDK version (7 or 8) installed on your Agile PLM application server when you setup Eclipse Configure Build Path.
Re; Class not found
Are you using the same AgileAPI.jar / pxapi.jar file in you dependency (i.e. Configure Build Path ). Does this file exist under your integration/sdk/lib folder ?
Re: drop down not showing
1) did you clear the cache ?
2) as a last resort, clear sdk cache, remove existing PX.jar file , stop app server, clear all content of servers fold, restart app server , re-deploy and verify
A suggestion on verifying if the px shows up in the drop down is to build an empty PX class that just return success and deploy with the ONLY dependency on AgileAPI.jar and pxapi.jar. If this class shows up, then you can start adding extra dependencies. and do “hot deployment”.