File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Visual C++ required??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Visual C++ required???" Watch "Visual C++ required???" New topic
Author

Visual C++ required???

Daurice Jordan
Greenhorn

Joined: Feb 01, 2005
Posts: 7
I am looking to write and application using an SDK from Canon for remote control access of a Canon digital camera. SDK libraries are written in C and requires Visual C++ on XP, as the development environment. However, I would like develop this application in Java using JNI. I don't have any experience in doing any of this. I do know a little bit of core Java. Even though the Canon documentation calls for a VC++ environment to develop is it possible to use Java/JNI?

Thanks!
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

JNI is just a way of calling native code from Java programs. So you would have to write your program in C first and foremorst. After that you could create a Java application which calls these methods using JNI.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Daurice Jordan
Greenhorn

Joined: Feb 01, 2005
Posts: 7
That's what I'm asking. The SDK is writting in C. The functions are that I would be calling C functions. I just don't understand why the documentation "requires" a VC++ development environment.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You'd have to ask Canon that. You usually have to believe the documentation.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

C++ is not standardized like the tightly regulated Java specification, where Sun and Sun alone says what goes into the API. Often what compiles under one compiler, say gcc, will not compile under another compiler, say Microsoft C++, without extensive porting. The Canon SDK may be using features available only to the Microsoft compiler, or they haven't tested it with other compilers and don't want to support anything else.
Even if you want to work with the SDK through JNI, you will need the Microsoft compiler to create the DLL's that JNI will use to interact with native code. Lucky for us, Microsoft has a version of Visual C++ for a "free"
download. I say "free" because you have to have a .NET Passport account (i.e. hotmail account).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Visual C++ required???
 
Similar Threads
Hello C# - Nice knowin' ya, Java
Accessing Visual Basic DLL from JAVA
how to start with jni
Automation in Java
How can i trap telephone ring in java