On 07/28/2011 05:51 AM, Sailaja Bitra wrote:
> Eclipse generated me whole bunch of build errors due to missing
> JSONConstants.java, TokenManager, also expects JSON. java but found JSON.jj.
>
> When i tried to build ofbiz in Eclipse using ant ...I am getting build failed.
Those are generated files, they will never be checked in. They will
reside in $componentRoot/build/gen-src/....
You should not have sent me a private email. Maybe to ofbiz-user or
ofbiz-dev.
>
> Please advise.
>
> c16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("]",
> JSONConstants.ARRAY_END);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:262:
> cannot find symbol
> [javac16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("true:",
> JSONConstants.KEY_SEP);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:264:
> cannot find symbol
> [javac16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("false:",
> JSONConstants.KEY_SEP);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:266:
> cannot find symbol
> [javac16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("null:",
> JSONConstants.KEY_SEP);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:268:
> cannot find symbol
> [javac16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("{:", JSONConstants.KEY_SEP);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:270:
> cannot find symbol
> [javac16] symbol : variable JSONConstants
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] doParseExceptionTest("}",
> JSONConstants.OBJECT_END);
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:280:
> cannot find symbol
> [javac16] symbol : class JSON
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] new JSON(new StringReader(s)).JSONValue();
> [javac16] ^
> [javac16]
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\src\org\ofbiz\base\json\test\JSONTests.java:296:
> cannot find symbol
> [javac16] symbol : class JSON
> [javac16] location: class org.ofbiz.base.json.test.JSONTests
> [javac16] new JSON(new StringReader(s)).JSONValue();
> [javac16] ^
> [javac16] 13 errors
>
> BUILD FAILED
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\build.xml:204:
> The following error occurred while executing this line:
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\build.xml:148:
> The following error occurred while executing this line:
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\macros.xml:39:
> The following error occurred while executing this line:
> C:\Users\bitra\eclipaseWorkspaces\apacheOffbizLatest\ofbiz\framework\base\build.xml:90:
> Compile failed; see the compiler error output for details.
>
> Total time: 3 seconds
>
> --
> Thanks,
> Sai