Skip to main content

Difficulty Compiling after Pulling Down Latest Files from Repository

4 replies [Last post]
mmckenna
Offline
Joined: 2008-07-31

This is strange. I hadn't updated my HDCookbook file system in a long time. Today I used Eclipse/Subversion to update my files. Sadly, I haven't been able to compile since using HDCookbook/build.xml.

Has anyone else had this issue? I'll paste my error log below.

Thanks!

compile-me-library:
[xlets.javac] Compiling 4 source files to C:\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build\grin_library
[xlets.javac] C:\HDCookbookEclipseWorkspace\HDCookbook\AuthoringTools\grin\library\src\com\hdcookbook\grin\util\JsonIO.java:181: cannot find symbol
[xlets.javac] symbol : class Entry
[xlets.javac] location: interface java.util.Map
[xlets.javac] Map.Entry ent = (Map.Entry) it.next();
[xlets.javac] ^
[xlets.javac] C:\HDCookbookEclipseWorkspace\HDCookbook\AuthoringTools\grin\library\src\com\hdcookbook\grin\util\JsonIO.java:181: cannot find symbol
[xlets.javac] symbol : class Entry
[xlets.javac] location: interface java.util.Map
[xlets.javac] Map.Entry ent = (Map.Entry) it.next();
[xlets.javac] ^
[xlets.javac] 2 errors

BUILD FAILED
C:\HDCookbookEclipseWorkspace\HDCookbook\build.xml:11: The following error occurred while executing this line:
C:\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build.xml:117: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Bill Foote

You need to update your BD-J stubs. The ancient
"disclaimerized" stubs I made a few years ago didn't
handle inner classes quite right, and java.util.Map.Entry is
an inner class of java.util.Map.

See http://wiki.java.net/bin/view/Mobileandembedded/BDJPlatformDefinition
for details on how to do it right. If you want to get up and
going immediately, just replace java.util.Map*.class in the stubs
JAR file with corrected versions (you could snag the version from
desktop JDK in a pinch, but you might as well at least
download the PBP 1.0 stubs source as directed in the wiki, and
compile java.util.Map with javac).

Cheers,

Bill

bd-j-dev@mobileandembedded.org wrote:
> This is strange. I hadn't updated my HDCookbook file system in a long time. Today I used Eclipse/Subversion to update my files. Sadly, I haven't been able to compile since using HDCookbook/build.xml.
>
> Has anyone else had this issue? I'll paste my error log below.
>
> Thanks!
>
>
> compile-me-library:
> [xlets.javac] Compiling 4 source files to C:\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build\grin_library
> [xlets.javac] C:\HDCookbookEclipseWorkspace\HDCookbook\AuthoringTools\grin\library\src\com\hdcookbook\grin\util\JsonIO.java:181: cannot find symbol
> [xlets.javac] symbol : class Entry
> [xlets.javac] location: interface java.util.Map
> [xlets.javac] Map.Entry ent = (Map.Entry) it.next();
> [xlets.javac] ^
> [xlets.javac] C:\HDCookbookEclipseWorkspace\HDCookbook\AuthoringTools\grin\library\src\com\hdcookbook\grin\util\JsonIO.java:181: cannot find symbol
> [xlets.javac] symbol : class Entry
> [xlets.javac] location: interface java.util.Map
> [xlets.javac] Map.Entry ent = (Map.Entry) it.next();
> [xlets.javac] ^
> [xlets.javac] 2 errors
>
> BUILD FAILED
> C:\HDCookbookEclipseWorkspace\HDCookbook\build.xml:11: The following error occurred while executing this line:
> C:\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build.xml:117: Compile failed; see the compiler error output for details.
>
> Total time: 2 seconds
> [Message sent by forum member 'mmckenna' (mmckenna)]
>
> http://forums.java.net/jive/thread.jspa?messageID=336212
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

jaya_h
Offline
Joined: 2005-07-11

Hi,

java.util.Map.Entry interface is in JDK since JDK1.2. Please check the JDK that Eclipse is using for compiling the project. And when compiling for the target BD-J Platform JDK 1.3 is used.

Thanks,
Jaya

billf
Offline
Joined: 2004-02-13

(re-posting; sorry for any duplicates)

You need to update your BD-J stubs. The ancient
"disclaimerized" stubs I made a few years ago didn't
handle inner classes quite right, and java.util.Map.Entry is
an inner class of java.util.Map.

See http://wiki.java.net/bin/view/Mobileandembedded/BDJPlatformDefinition
for details on how to do it right. If you want to get up and
going immediately, just replace java.util.Map*.class in the stubs
JAR file with corrected versions (you could snag the version from
desktop JDK in a pinch, but you might as well at least
download the PBP 1.0 stubs source as directed in the wiki, and
compile java.util.Map with javac).

Cheers,

Bill

mmckenna
Offline
Joined: 2008-07-31

Perfect.

I ended up using java.util.Map from the FP 1.0 stubs. I am now compiling to my heart's content.

Thank you!

Matt