Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ODBC: DSN architecture mismatch

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the following commands to deploy my application

jar cvf patient.jar boksspatientanalysis\*.class
java -cp patient.jar boksspatientanalysis.BokssPatientAnalysis

But there is an ODBC architecture difference between the application and DSN driver.

I use both x86 and x64 JDK and setting the JAVA_HOME to x86 SDK, runtime directory is set automatically?
my windows 7 is x64

I wonder why I can run it thru the netbeans IDE and cannot run it on the command line?
Thanks
Jack
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "cannot run it on the command line" mean? What happens if you try?
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What does "cannot run it on the command line" mean? What happens if you try?


Sorry, I meant command prompt.
I typed java -cp patient.jar boksspatientanalysis.BokssPatientAnalysis
And Avalanche of errors.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what errors were those? (Of course, now that you've removed the code from your previous post it's harder for us to figure out what might be going on. But maybe still possible if we see the error messages.)
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:And what errors were those? (Of course, now that you've removed the code from your previous post it's harder for us to figure out what might be going on. But maybe still possible if we see the error messages.)




I use Office 2007 x86
Java JRE x86
JDK x86
Windows 7 x64
if that matters
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly a 32bit/64bit issue. I'll move this to the JDBC forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic