Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] 'Workspace-Local Code Search' project Compile error

Hi,

not sure why this error is still there. It compiles cleanly on my machine. Try two things:

1. make a "clean workspace build" and let eclipse compile all projects again.

if this doesn't help, then
2. make sure that org.eclipse.ui.workbench or org.eclipse.swt is included in the required-bundle sections of the manifest.mf file.



HTH,
Marcel


-- 
Codetrails.com – The knowledge transfer company




On Feb 26, 2013, at 11:22 AM, Malintha Adikari <malintha.adikari@xxxxxxxxxxx> wrote:

Hi,

I think I have done the set target platform correctly now. In the source code there is one error remaining.

In PreferencePage.java class

Error: import org.eclipse.swt.SWT;

There is an error in importing above package. Can you tel me the cause for this error.

Thank you very much for the support.


Malintha.


From: marcel.bruch@xxxxxxxxxxxxxx
Date: Tue, 26 Feb 2013 09:54:39 +0100
To: recommenders-dev@xxxxxxxxxxx
Subject: Re: [recommenders-dev] 'Workspace-Local Code Search' project Compile error

Hi Malintha,

can you describe your issue with the target platform in more detail? Setting the target platform for your workspace is essential to make the code compile. You may have a look at [1] as starting point.

Best,
Marcel


[1] http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fpreference_pages%2Ftarget_platform.htm
-- 
Codetrails.com – The knowledge transfer company




On Feb 25, 2013, at 9:51 PM, Malintha Adikari <malintha.adikari@xxxxxxxxxxx> wrote:


Hi,

I am now using eclispse juno instead of helios. I have imported the two projects to my workspace

1.org.eclipse.recommenders.codesearch.rcp.index

and

2.org.eclipse.recommenders.tests.codesearch.rcp.index

I am trying to compile 'org.eclipse.recommenders.codesearch.rcp.index' project. 

I added google guava to the manifest file ("com.google.guava")

I tried to run it as a java application. Then there are several main methods I can run.Which is the exact java class to run ?

Am I on the correct path ? Because still the project has some errors.

ex: 

there is an error in src

package org.eclipse.recommenders.codesearch.rcp.index.ui;    package "PreferencePage" class in following import



"import org.eclipse.swt.SWT;"

and there are more import errors. 


Thank you,
Malintha Adikari

> Date: Mon, 25 Feb 2013 18:01:02 +0100
> From: andreas.sewe@xxxxxxxxxxxxxx
> To: recommenders-dev@xxxxxxxxxxx
> Subject: Re: [recommenders-dev] 'Workspace-Local Code Search' project Compile error
> 
> Hi,
> 
> > Thank you very much for your response.
> > 
> > I run the project as 'Maven build'
> > 
> > Then I get these errors
> > 
> > 
> > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> > SLF4J: Defaulting to no-operation (NOP) logger implementation
> > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> > further details.
> > [INFO] Scanning for projects...
> > [ERROR] The build could not read 1 project -> [Help 1]
> > [ERROR] 
> > [ERROR] The project
> > org.eclipse.recommenders.codesearch:org.eclipse.recommenders.codesearch.rcp.index:0.1.0-SNAPSHOT
> > (/home/malintha/eclipse-gsoc/project/org.eclipse.recommenders.codesearch/org.eclipse.recommenders.codesearch.rcp.index/pom.xml)
> > has 1 error
> > [ERROR] Non-resolvable parent POM for
> > org.eclipse.recommenders.codesearch:org.eclipse.recommenders.codesearch.parent:1.0.0-SNAPSHOT:
> > Could not transfer artifact org.eclipse:eclipse-parent:pom:3 from/to
> > eclipse-juno (http://download.eclipse.org/releases/juno): No connector
> > available to access repository eclipse-juno
> > (http://download.eclipse.org/releases/juno) of type p2 using the
> > available factories AsyncRepositoryConnectorFactory,
> > WagonRepositoryConnectorFactory and 'parent.relativePath' points at
> > wrong local POM @
> > org.eclipse.recommenders.codesearch:org.eclipse.recommenders.codesearch.parent:1.0.0-SNAPSHOT,
> > /home/malintha/eclipse-gsoc/project/org.eclipse.recommenders.codesearch/pom.xml,
> > line 5, column 13 -> [Help 2]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> > [ERROR] [Help 2]
> > http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> 
> ah, now that's much more helpful.
> 
> The POM of the org.eclipse.recommenders.codesearch.parent project says
> it inherits from the eclipse-parent project, but that project cannot be
> found in a Maven repository declared in the POM.
> 
> It is available at the Eclipse Nexus repo, however:
> <http://maven.eclipse.org/nexus/index.html#nexus-search;quick~eclipse-parent>.
> Simply at this repository
> <http://maven.eclipse.org/nexus/content/groups/public/> to your
> settings.xml; Maven should then pick up the eclipse-parent from there.
> 
> Hope this helps.
> 
> Andreas
> -- 
> Codetrails.com - the knowledge transfer company
> _______________________________________________
> recommenders-dev mailing list
> recommenders-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/recommenders-dev
_______________________________________________
recommenders-dev mailing list
recommenders-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/recommenders-dev


_______________________________________________ recommenders-dev mailing list recommenders-dev@xxxxxxxxxxxhttp://dev.eclipse.org/mailman/listinfo/recommenders-dev
_______________________________________________
recommenders-dev mailing list
recommenders-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/recommenders-dev


Back to the top