Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Finding project in Run Configuration(I want to configure Run on eclipse. I am configuring a simple Java application.)
Finding project in Run Configuration [message #1091211] Wed, 21 August 2013 07:25
Saikat Goswami is currently offline Saikat Goswami
Messages: 1
Registered: August 2013
Junior Member
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:
Previous Topic:Insufficient access privileges to apply this update
Next Topic:Home & End buttons not working
Goto Forum:
  


Current Time: Fri Oct 24 07:20:34 GMT 2014

Powered by FUDForum. Page generated in 0.01939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software