Cannot find "gen" folder... it's right there!

by DulcetTone » Tue, 20 Jul 2010 00:28:43 GMT


Sponsored Links
  have Eclipse build issues.
I am running ADT 0.9.7 from 1157 May 7th 2010 and a freshly-updated
copy of Eclipse 3.5 IDE for Java

I have an Android project which depends on an underlying "Core"
Android project, and it claims not to find its "gen" folder, though it
is exactly where it has ever been (though the project dependency is a
new wrinkle). The project properties shows that it knows where it
lives.

Any ideas?

Tony


Here is how the .log file reports the issue:


!ENTRY org.eclipse.jdt.ui 4 10001 2010-07-19 11:25:23.592
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [gen [in CD1] does not exist]
at
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:
502)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
246)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
515)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
238)
at
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:
477)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
645)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:
791)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:
734)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:
124)
at org.eclipse.jdt.internal.core.DeltaProcessor
$3.run(DeltaProcessor.java:1557)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:
1547)
at
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:
1381)
at
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:
1357)
at
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:
1958)
at
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:
470)
at org.eclipse.core.internal.events.NotificationManager
$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:
285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:
149)
at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:
313)
at
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:
1022)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
45)
at or



Other Threads

1. Where does the emulator look for the SD Card Image File ?

Hi

I want to have Eclipse launch the emulator and set the -sdcard
mysdcard.img
option within  a Run Configuration. This is configured by Eclipse->Run-
and then setting -sdcard mysdcard.img within the Additional Emulator
Command Line
Options  text input box on the Target Tab.

The http://code.google.com/android/reference/emulator.html#sdcard
entry says
that

"To load FAT32 disk image in the emulator, start the emulator with the
-sdcard flag and specify the name and path of your image (relative to
the current working directory):

emulator -sdcard <filepath>"

My question is :  When the emulator is launched via a Run Dialog in
Eclipse, what
is the current working directory used by the emulator ? Problem: Where
do I place
the sdcard image file and/ what relative path to current working
directory do I need
to use in the -sdcard option ?

Can anyone clarify this please ?

Thanks for any help
Graeme


--~--~---------~--~----~------------~-------~--~----~

2. Succeeded porting Xerces DOM parser

Today I managed to port apache's Xerces java XML DOM parser.  I
unfortunately had to give it completely new package names since SDK
1.0 R1 is lagging with respect to org.w3c.dom and probably in other
ways as well.

Anyway, the performence seems quite reasonable on the emulator, so I
urge Google to (gradually) deprecate the pull-parser for Xerces.

MSFT's .NET CF has full schema validation and XML security as well.

Anders
--~--~---------~--~----~------------~-------~--~----~

3. Drawing on MapView

4. startService() fails

5. Soap request

6. Saop request

7. SharedPreferences: editor.commit() always false even though it commits