Click here to Skip to main content
15,888,133 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to include a new package in java
com.plumtree.openfoundation.security

i am unable to include this particular package.

reference link:
http://docs.oracle.com/cd/E23010_01/doc.1034/.../package-summary.html[^]

How to include this package in my project file
Posted
Updated 4-Jan-12 7:49am
v3

1 solution

Firstly you don not include the package, but classes from a package. You can use the wildcard, so for example something like this will work:

Java
import com.plumtree.openfoundation.security.IXPCrypto; // import the single class
import com.plumtree.openfoundation.security.*; // import the entire package


You also need to have the jar file in your library path.

Richard is clever, it's import not include; a sad case of Monday Morning Madness.
 
Share this answer
 
v3
Comments
Richard MacCutchan 9-Jan-12 7:19am    
Not clever at all, I just had a sudden nightmare thought that all my Java source files were wrong. I did actually change one source and try compiling it before I modded your answer.
mohanrajkiller 9-Jan-12 12:37pm    
where could i search the jar file i searched all over the net

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900