Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help need in Adding External jar files.

853853Jul 1 2011 — edited Jul 4 2011
Hi all,

Iam developing ADF application using JDEV 11.1.1.3.0.
I need to move files from one directory to another so i have used external jar "commons-io-1.4.jar" file.
i did this by going to the project properties -->Libraries and Classpath -->Add Library
added the jat file.
In java class i have used the function

File.copyFileToDirectory(reQueueFile, TargetLocation,false);

it was working fine when i tried in IntegratedWeblogic server but when i deploy in Standalone Weblogic server its not getting the jar file.
Its throwing me the exception
javax.el.ELException: java.lang.NoSuchMethodError: org/apache/commons/io/FileUtils.moveFileToDirectory(Ljava/io/File;Ljava/io/File;Z)V
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)

Please let me know is there a way of adding the lib to the project.

Regards,
Suresh kumar.k
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2011
Added on Jul 1 2011
2 comments
663 views