Craig and Markus,
I am using the project folder as the source and output
folder. That is, my directory/file structure looks like
this...
<workspace>/<project>/.processed/
<workspace>/<project>/.settings/
<workspace>/<project>/com/
<workspace>/<project>/deployed/
<workspace>/<project>/verified/
<workspace>/<project>/.classpath
<workspace>/<project>/.eclipseme
<workspace>/<project>/.project
<workspace>/<project>/1.png
<workspace>/<project>/2.png
...
where the "com" directory contains all my source code.
Apparently, the problem I had was caused by the
".processed" directory being compiled directly (hence the
mismatched package names) during the build process.
I added the ".processed" directory to the list of
exclusions, and now the project builds.
FYI. To exclude the ".processed" directory: Right click on
the project in Package Explorer. Choose Properties.
Choose Java Build Path. Choose the Source tab. Expand the
project in the tree view (if necessary). Highlight
"Excluded" and choose Edit. In the Exclusion Patterns
section at the bottom, choose Add. Enter ".processed/" as
the pattern.
Thanks for your help!
--Joe
--- Craig Setera <[EMAIL PROTECTED]> wrote:
> Markus,
>
> Are you saying you have problems if you use the project
> folder as the
> source folder? I suppose that is quite likely. I'm not
> a big fan of
> that organization and I never set things up that way.
> Therefore, I
> never think to test with that setup.
>
> Joe,
>
> Can you confirm you are trying to use the project as the
> src and output
> folder? Can you try it with src/bin folders?
>
> Thanks,
> Craig
>
> Markus Sinner wrote:
> > I encountert a similar problem when the source files
> where not at the
> > right position. You have to set the Root-Folders for
> sources in the
> > preferences.
> >
> > Craig Setera schrieb:
> >
> >> This may be a silly question, but do you actually have
> preprocessing
> >> enabled on that project?
> >>
> >> Joe Mather wrote:
> >>
> >>
> >>> Hello.
> >>>
> >>> I'm using a fresh install of JDK 1.5, Eclipse 3.2.1
> and
> >>> EclipseME 1.6.5 on WinXP.
> >>>
> >>> When I try to build, I get the following error for
> every
> >>> source file in my project:
> >>>
> >>> The declared package 'X' does not match the
> expected
> >>> package '.processed.X'
> >>>
> >>> where X is the package name (e.g.
> "com.example.MyClass").
> >>>
> >>> I followed the installation instructions, including
> the
> >>> config.ini update (there's no preprocessor warning
> message
> >>> in the error list).
> >>>
> >>> I get the errors whether preprocessing is turned on
> or off
> >>> for my project.
> >>>
> >>> I also tried Eclipse 3.2.2, but get the exact same
> errors.
> >>>
> >>> >From my .log...
> >>>
> >>> !SESSION 2007-02-20 12:58:23.234
> >>> -----------------------------------------------
> >>> eclipse.buildId=M20060921-0945
> >>> java.version=1.5.0_11
> >>> java.vendor=Sun Microsystems Inc.
> >>> BootLoader constants: OS=win32, ARCH=x86, WS=win32,
> >>> NL=en_US
> >>> Command-line arguments: -os win32 -ws win32 -arch
> x86
> >>>
> >>> !ENTRY org.eclipse.osgi 4 0 2007-02-20 12:58:23.855
> >>> !MESSAGE Error installing bundle:
> >>>
> reference:file:plugins/eclipseme.core.hooks_1.6.5.jar/
> >>> !STACK 0
> >>> org.osgi.framework.BundleException: Bundle
> >>> "eclipseme.core.hooks" version "1.6.5" has already
> been
> >>> installed from:
> >>> [EMAIL PROTECTED]/eclipseme.core.hooks_1.6.5.jar
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.Framework.createAndVerifyBundle(Framework.java:557)
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:824)
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:739)
> >>> at
> java.security.AccessController.doPrivileged(Native
> >>> Method)
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:790)
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:734)
> >>> at
> >>>
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:221)
> >>> at
> >>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:1067)
> >>> at
> >>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:649)
> >>> at
> >>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:305)
> >>> at
> >>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
> >>> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>> Method)
> >>> at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> >>> Source)
> >>> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >>> Source)
> >>> at java.lang.reflect.Method.invoke(Unknown Source)
> >>> at
> >>>
>
org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
> >>> at
> org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> >>> at org.eclipse.core.launcher.Main.run(Main.java:977)
> >>> at
> org.eclipse.core.launcher.Main.main(Main.java:952)
> >>>
> >>>
> >>> Note that my project builds correctly in Eclipse
> 3.1.2 with
> >>> EclipseME 1.2.3.
> >>>
> >>> Any help appreciated. Thank you.
> >>>
> >>> --Joe
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
>
____________________________________________________________________________________
> >>> Get your own web address.
> >>> Have a HUGE year through Yahoo! Small Business.
> >>> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
> >>>
> >>>
>
-------------------------------------------------------------------------
> >>> Take Surveys. Earn Cash. Influence the Future of IT
> >>> Join SourceForge.net's Techsay panel and you'll get
> the chance to share your
> >>> opinions on IT & business topics through brief
> surveys-and earn cash
> >>>
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>> _______________________________________________
> >>> Eclipseme-users mailing list
> >>> [email protected]
> >>>
>
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
> >>>
> >>>
> >>>
> >>
>
-------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get
> the chance to share your
> >> opinions on IT & business topics through brief
> surveys-and earn cash
> >>
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Eclipseme-users mailing list
> >> [email protected]
> >>
>
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
> >>
> >>
> >
> >
> >
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief
> surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users