Sunday, 15 September 2013

java - Jar file not included in Ant Class Path? -



java - Jar file not included in Ant Class Path? -

i need run jar file project , needs include resources jar file in directory. know need set resources jar file class path (it's part of constraints of project), whenever seek add together exception.

here's particular command:

<target name="run"> <java jar="test.jar" classpath="${lib}/resources.jar" fork="true"> <classpath> <pathelement location="${build}" /> <pathelement location="${jdk_lib}/j2me.jar" /> <pathelement location="java.class.path" /> <pathelement location="${lib}/resources.jar" /> </classpath> </java> </target>

i exception indicates resources.jar file not in class path, set in code above.

am doing wrong here?

java ant

No comments:

Post a Comment