I'm able to see the build gradle as text file when creating the Thingworx project not as a symbol to build the java file. Now what should I do to build the java code.
You are following steps similar to what is described in the below article, is the right? And the Java SDK Guide referenced therein?
Let us know if that gets you started off in the right direction.
-- Craig A.