Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Please help: can't get my project to build
Please help: can't get my project to build [message #225095] Thu, 02 March 2006 22:51 Go to next message
Frank Parrott is currently offline Frank ParrottFriend
Messages: 52
Registered: July 2009
Member
Hi,

I'm lost...

My project runs fine. Then I create a feature project, and from the
feature.xml, right-click->PDE Tools->Create Ant build file. It creates
the build.xml. So I select the build.xml (in the feature project.),
right-click-> RunAs->Ant Build... When the ant dialog comes up, I select
"Targets" tab. My target execution order is "clean, build.update.jar,
refresh. Also on the "JRE" tab, I select "run in the same JRE as the
workspace". Then I hit apply, then run.

What I see are errors like these:

@dot:
[mkdir] Created dir:
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ temp.folder\@dot.bin
[javac] Compiling 26 source files to
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ temp.folder\@dot.bin
[javac] ----------
[javac] 1. WARNING in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\BundleStorage.java
[javac] (at line 15)
[javac] import java.sql.*;
[javac] ^^^^^^^^
[javac] The import java.sql is never used
[javac] ----------
[javac] ----------
[javac] 2. ERROR in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
[javac] (at line 10)
[javac] import org.apache.commons.logging.Log;
[javac] ^^^^^^^^^^
[javac] The import org.apache cannot be resolved
[javac] ----------
[javac] 3. ERROR in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
[javac] (at line 11)
[javac] import org.apache.commons.logging.LogFactory;
[javac] ^^^^^^^^^^
[javac] The import org.apache cannot be resolved
[javac] ----------
[javac] 4. ERROR in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
[javac] (at line 22)
[javac] public static Log log =
LogFactory.getLog(CommonLogger.class);
[javac] ^^^
[javac] Log cannot be resolved to a type
[javac] ----------
[javac] 5. ERROR in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
[javac] (at line 22)
[javac] public static Log log =
LogFactory.getLog(CommonLogger.class);
[javac] ^^^^^^^^^^
[javac] LogFactory cannot be resolved
[javac] ----------
[javac] ----------
[javac] 6. WARNING in
D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\EnvironmentBundler.java
[javac] (at line 101)
[javac] IExtensionPoint[] points = registry.getExtensionPoints();
[javac] ^^^^^^
[javac] The local variable points is never read

I have the classpath to these jar dependencies set up in the project
properties. I've never seen a "@dot" directory show up before. What is
this???


Stangely at the end of the run, it says it was sucessful. I don't get
this... Also it builds my project jar files...

init:

refresh:

update.feature:

all.children:
BUILD SUCCESSFUL
Total time: 12 seconds

Any ideas are greatly appreciated on how can I get clean build.

regards,
Frank
Re: Please help: can't get my project to build [message #225389 is a reply to message #225095] Mon, 06 March 2006 23:16 Go to previous message
Frank Parrott is currently offline Frank ParrottFriend
Messages: 52
Registered: July 2009
Member
Hi,

Does anyone know if this is a bug or what I could be missing?

As stated below, I let Eclipse generate the build.xml files from
feature.xml. I looked back on an old PDE plugin I did back in Eclipse
3.0.2. When it created the build.xml, it includes the .classpath file
definations. In Eclipse3.1.2, it doesn't appear to work the same way. I
found if I edit the build.xml file, for my project, under the @dot task,
the build works. For example, I put this into my build.xml file, then my
plugin builds:

<target name="@dot" depends="init" unless="@dot"
description="Create jar: com.cisco.step.support.bundle @dot.">
<delete dir="${temp.folder}/@dot.bin"/>
<mkdir dir="${temp.folder}/@dot.bin"/>
<!-- compile the source code -->
<javac destdir="${temp.folder}/@dot.bin"
failonerror="${javacFailOnError}" verbose="${javacVerbose}"
debug="${javacDebugInfo}" includeAntRuntime="no"
bootclasspath="${bootclasspath}" source="${javacSource}"
target="${javacTarget}" >
<compilerarg line="${compilerArg}"/>
<classpath>
<pathelement
path=" ..\..\..\stable\3.1\eclipse\plugins\org.eclipse.ui_3.1.2.jar "/>
<pathelement
path=" ..\..\..\stable\3.1\eclipse\plugins\org.eclipse.core.runtime _3.1.2.jar "/>
....
<pathelement
path=" ${build.result.folder}/../com.cisco.step.support.bundle/libs /commons-httpclient-3.0/commons-httpclient-3.0.jar "/>
<pathelement path="libs/commons-codec.jar"/>
<pathelement
path=" ${build.result.folder}/../com.cisco.step.support.bundle/libs /commons-codec-1.3/commons-codec.jar "/>

</classpath>

If I edit the build.xml, and add the last two "pathelements" manually,
then my plugin project will compile.

Must I manually add my dependencies from .classpath into the build.xml
auto generated by Eclipse?

How can I get Eclipse Ant to automatically include .classpath?

Thanks,
frank


Frank Parrott wrote:
> Hi,
>
> I'm lost...
>
> My project runs fine. Then I create a feature project, and from the
> feature.xml, right-click->PDE Tools->Create Ant build file. It creates
> the build.xml. So I select the build.xml (in the feature project.),
> right-click-> RunAs->Ant Build... When the ant dialog comes up, I select
> "Targets" tab. My target execution order is "clean, build.update.jar,
> refresh. Also on the "JRE" tab, I select "run in the same JRE as the
> workspace". Then I hit apply, then run.
>
> What I see are errors like these:
>
> @dot:
> [mkdir] Created dir:
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ temp.folder\@dot.bin
>
> [javac] Compiling 26 source files to
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ temp.folder\@dot.bin
>
> [javac] ----------
> [javac] 1. WARNING in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\BundleStorage.java
>
> [javac] (at line 15)
> [javac] import java.sql.*;
> [javac] ^^^^^^^^
> [javac] The import java.sql is never used
> [javac] ----------
> [javac] ----------
> [javac] 2. ERROR in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
>
> [javac] (at line 10)
> [javac] import org.apache.commons.logging.Log;
> [javac] ^^^^^^^^^^
> [javac] The import org.apache cannot be resolved
> [javac] ----------
> [javac] 3. ERROR in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
>
> [javac] (at line 11)
> [javac] import org.apache.commons.logging.LogFactory;
> [javac] ^^^^^^^^^^
> [javac] The import org.apache cannot be resolved
> [javac] ----------
> [javac] 4. ERROR in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
>
> [javac] (at line 22)
> [javac] public static Log log =
> LogFactory.getLog(CommonLogger.class);
> [javac] ^^^
> [javac] Log cannot be resolved to a type
> [javac] ----------
> [javac] 5. ERROR in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\CommonLogger.java
>
> [javac] (at line 22)
> [javac] public static Log log =
> LogFactory.getLog(CommonLogger.class);
> [javac] ^^^^^^^^^^
> [javac] LogFactory cannot be resolved
> [javac] ----------
> [javac] ----------
> [javac] 6. WARNING in
> D:\eclipse\projects\support-bundle-31\com.cisco.cde.support\ src\com\cisco\cde\support\EnvironmentBundler.java
>
> [javac] (at line 101)
> [javac] IExtensionPoint[] points =
> registry.getExtensionPoints();
> [javac] ^^^^^^
> [javac] The local variable points is never read
>
> I have the classpath to these jar dependencies set up in the project
> properties. I've never seen a "@dot" directory show up before. What is
> this???
>
>
> Stangely at the end of the run, it says it was sucessful. I don't get
> this... Also it builds my project jar files...
>
> init:
>
> refresh:
>
> update.feature:
>
> all.children:
> BUILD SUCCESSFUL
> Total time: 12 seconds
>
> Any ideas are greatly appreciated on how can I get clean build.
>
> regards,
> Frank
Previous Topic:M5 remove {} brackets feature.
Next Topic:2nd ATtempt: Please Help, can't get project to build
Goto Forum:
  


Current Time: Fri Mar 29 00:58:15 GMT 2024

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

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

Back to the top