Finding project in Run Configuration [message #1091211] |
Wed, 21 August 2013 03:25 |
Eclipse User |
|
|
|
I am trying to run a java class. I have a build.xml. Compilation is working fine with build.xml. However, when I try to run the program, the class file is not found by the runtime. I have set the classpath (windows 7) in env.
In "Run Configuration", when I go to create a new configuration in Java application, the project search window does not display project. SO, the run configuration is incomplete.
Can anyone pls help asap? It's urgent.
Below is the build.xml ->
<?xml version="1.0" ?>
<project name="j2ee_project1" basedir="C:\java_application\j2ee_project1" default="exec">
<path id="compile.classpath">
<!--<fileset dir="src/pojos">
<include name="*.jar" />
</fileset> -->
<pathelement path="${classpath}" />
<!-- <pathelement location/> -->
</path>
<target name="exec" depends="compile" >
<java classpath="C:\java_application\j2ee_project1\src\build\classes" classname="${basedir}/src/build/classes/Class1" failonerror="true"/>
</target>
<target name="compile">
<javac destdir="src/build/classes" debug="true" srcdir="src/pojos">
</javac>
<echo message="Compile completed."/>
</target>
<target name="jar" depends="compile">
<jar destfile="bin/j2ee_project1.jar">
<fileset dir="src" />
<classes dir="src/build/classes" />
</jar>
</target>
</project>
**************************************************************
Error:
|
|
|
Powered by
FUDForum. Page generated in 0.15186 seconds