File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes ODBC: DSN architecture mismatch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ODBC: DSN architecture mismatch" Watch "ODBC: DSN architecture mismatch" New topic
Author

ODBC: DSN architecture mismatch

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
What does "cannot run it on the command line" mean? What happens if you try?


Ping & DNS - my free Android networking tools app
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
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

Joined: Aug 02, 2012
Posts: 590
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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Possibly a 32bit/64bit issue. I'll move this to the JDBC forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ODBC: DSN architecture mismatch