This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLJ in Visual Age for Java

 
Gary Marten
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
When I try to run my java application in VA Java it fails in execution of the SQLJ (I am not getting any data from DB2, it fails in the first statement of the following group:
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, MdApplicationDataAccessDeptDiv_SJProfileKeys.getKey(0), 0);
try
{
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
aMdDepartmentDivisionCursor = new MdDepartmentDivisionInfo_Cursor(__sJT_result);
}
finally
{
__sJT_execCtx.releaseStatement();
}
}
When I export the project as jar file (classes and resources) and run it using JRE it is working fine.
I was thinking that it was related to Workspace classpath in VA Java, but I have the following in my Windows-Options-Resources:
C:\Program Files\SQLLIB\;
C:\Program Files\SQLLIB\bin\;
C:\Program Files\SQLLIB\java\db2java.zip;
C:\Program Files\SQLLIB\java\runtime.zip;
C:\Program Files\SQLLIB\java\sqlj.zip;
Thank you very much in advance for any ideas.
Garry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic