Notifications
Clear all

[Solved] package com.onenetwork.platform.data.model does not exist

1 Posts
1 Users
0 Reactions
1,243 Views
0
Topic starter

A developer is trying to run the Build target after adding Java code in the Writing Workflows section of the Bookstore Tutorials.

He gets the following error message:

   [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSBookConstants.java:5: error: package com.onenetwork.platform.data.model does not exist

    [javac] import com.onenetwork.platform.data.model.DefaultModelActions;

    [javac]                                          ^

    [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSBookConstants.java:16: error: cannot find symbol

    [javac]   public class Actions extends DefaultModelActions {

    [javac]                                ^

    [javac]   symbol:   class DefaultModelActions

    [javac]   location: class ZBKSBookConstants

    [javac] C:\OneSDK_NEO3.2\studio-workspace\Bookstore2\build\gen-src\com\mybooks\mpt\ZBKSConstants.java:5: error: package com.onenetwork.platform.data.model does not exist

    [javac] import com.onenetwork.platform.data.model.DefaultModelActions;

What causes this and how do we resolve it?

1 Answer
0
Topic starter

This happened because the developer had run Project -> Clean from the main menu of Studio.

Instead, the developer should use the Ant target "clean" in order to clean the project. That target can be found in the Ant window after importing the build.xml file for the module.

"ant build" worked successfully after first running the "ant clean" target.