on 08-20-2015 6:57 AM
Dear All,
I am creating a Adapter Module to read an Excel File. I have created an EJB project and an EAR project for this. The Bean class requires 3 type of jar files.
1. SAP JAR Files
2. EJB JAR Files
3. EXCEL Jar Files.
We do not need the first two category to be included when creating the EAR file. I have included them into the project as Variables. The EXCEL related jar files are included as External Jar Files.
But while generating the EAR files all the jars are getting included making it 15 MB of size.
Please suggest how can I remove the first two category.
Thanks and Regards,
Rana Brata De
Hi Rana
Include the JAR for the two categories in a User Library, and add the library to the build path. This way, those JAR files will not be included in the EAR file.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Eng,
I have made a two variable entry in the Window --> Preferences --> New Variable and pointed them to two folders having the jar files of category 1 and category 2
Next I included them in the Project --> Properties --> Java Build Path --> Libraries via Add Variable.
The jar files for category-3 are included through Add External Jars.
Though the compilation is correct but while creating the EAR all the jar files are getting included.
Any Idea.
Rana
Dear Rana
Don't use Variable to add the JAR files to the project build path. As mentioned above, use User Library.
A user library can be created via Windows -> Preferences -> Java -> Build Path -> User Libraries. Create a new library and add the JAR files to it. Example below.
After that, you can add the User Library to the Project build path.
Rgds
Eng Swee
Which version of NWDS do you have? In version 7.3 you can use the libraries in NWDS. Add Library -> XPI Library -> XPI Adapter Libraries Then the libraries are not added to the EAR.
Libraries for PI 7.1 and PI 7.3 are the same, so I recommend usding the latest NWDS version, unless you work on PI 7.0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.