This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 8, 2011, 12:45 PM
6 Posts

How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib?

  • Category: Custom JSF code (Eclipse IDE)
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: jars WEB-INF java
  • Replies: 6
 Completely daft question here.
 
I am trying to import some jars into a notes database for use with some code I am writing that is going to leverage the Extensibility API. But I can not get Designer to acknowledge that the jars are there. The package explorer shows that the packages are there, but I can't access any of the classes. I put them in a WebContent/WEB-INF/lib folder I created and I can verify that it is on the build path.
 
What am I missing? The Designer documentation is no help here.  
 
Thanks. 
 
Brandt 
Apr 8, 2011, 1:58 PM
23 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
That is the correct place.
 
Are you using the importPackage function or are you directly declaring the objects with their packages?
Apr 8, 2011, 2:09 PM
6 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
 I'm not sure what the "importPackage" function is. I used the import function in Designer/Eclipse and placed the jars directly into WebContent/WEB-INF/lib.
 
Or are you talking about the import statement at the beginning of the class declaration? When I add an import statement, the IDE complains that it can not resolve the class reference. 
 
Did I do something wrong? 
 
Brandt 
Apr 8, 2011, 3:39 PM
23 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
 
Here is an importPackage example: importPackage(java.io);
It works like the Java import statement;
 
 Once you have the jar files on your buildpath (which it sounds like you do) then you can also reference the objects specifically.
This code works in my server side JavaScript library too: var xl=new org.apache.poi.hssf.usermodel.HSSFWorkbook();
 
Apr 8, 2011, 3:38 PM
6 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
 So it sounds like you are saying that they are there.
 
So why doesn't the IDE resolve them? I'd like to be able to use type ahead... Actually, the IDE DOES resolve the packages...just not the classes contained therein...
Apr 8, 2011, 3:56 PM
23 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
 
 :-)  No answer for that one.  Sorry.
Apr 11, 2011, 8:16 AM
14 Posts
Re: How do I get a Notes Database to acknowledge the jars I have in WebContent/WEB-INF/lib...
Check Build path. Easiest way to include JARS into build path is to right click on them in package explorer and use "Build Path/Add to build Path" option.
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal