This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
IDEs, Version Control and other tools
Author
add classpath to eclips
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
Feb 03, 2010 00:27:23
0
i am using eclips
here is my build file
<?xml version="1.0"?> <project name="build.xml" default="build"> <property name="src.java.dir" location="src/java"/> <property name="build.classes.dir" location="build/classes"/> <path id="project.classpath"> <pathelement location="${build.classes.dir}"/> </path> <target name="init" > <mkdir dir="${build.classes.dir}"/> </target> <target name="compile" depends="init" > <javac srcdir="${src.java.dir}" destdir="${build.classes.dir}"> <include name="**/EventCalendar.java" /> </javac> </target> <target name="build" depends="compile" > <java classname="com.manning.hq.ch02.EventCalendar" failonerror="true"> <classpath refid="project.classpath"/> </java> <echo>If you see this, it works!!!</echo> </target> </project>
here is a error i got
Buildfile: D:\PROJECT\Gwt-eclips\work\build.xml init: [mkdir] Created dir: D:\PROJECT\Gwt-eclips\work\build\classes compile: [javac] Compiling 1 source file to D:\PROJECT\Gwt-eclips\work\build\classes build: BUILD FAILED D:\PROJECT\Gwt-eclips\work\build.xml:18: Could not find com.manning.hq.ch02.EventCalendar. Make sure you have it in your classpath Total time: 1 second
here is my project screenshot
http://1.bp.blogspot.com/_bpkZ2BsqXug/S2klKnmn4tI/AAAAAAAAACs/HCnSpxiK7Ww/s1600-h/build.GIF
Mahendra Wadekar
Greenhorn
Joined: Jul 31, 2007
Posts: 1
posted
Feb 03, 2010 01:10:46
0
From your build.gif, i can see that your package declared is java.com.manning.hq.ch02 and in biuld file you are using com.manning.hq.ch02.
--wadi
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5536
I like...
posted
Feb 03, 2010 09:28:38
0
Samanthi, is there a question here somewhere?
JBoss In Action
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: add classpath to eclips
Similar Threads
Where is documentation for ant task schemaexport
Ant error: Make sure you have it in you classpath
Hibernate SchemaExportTask Problem
Problem in schema export - Hibernate
Ant+JUnit
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter