Skip to main content



      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 03:25
Eclipse UserFriend
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: Sat Jul 05 10:52:03 EDT 2025

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

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

Back to the top