By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,175 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,175 IT Pros & Developers. It's quick & easy.

How to execute a non-Java source file in Java application?

Saghar
P: 2
Hi,

Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an image uploaded in JPanel and also a zoom button, now by pressing this button we want to zoom the image using the zoom method of a non-java application such as "Adobe Photoshop", but how to call and execute that method?!

I'd greatly appreciate if someone advises me how to do so.

best regards,
Saghar
Feb 7 '07 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
Hi,



Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an image uploaded in JPanel and also a zoom button, now by pressing this button we want to zoom the image using the zoom method of a non-java application such as \"Adobe Photoshop\", but how to call and execute that method?!



I\'d greatly appreciate if someone advises me how to do so.



best regards,

Saghar




To call and execute non java source files you use jni. To execute .exe files you can use Runtime.exec() method. To manipulate images in Java programs, however, you might need to have a look at a Java image processing tutorial. I do not think you will find a zoom method in Photoshop that you can call in your Java program.
Feb 7 '07 #2

Saghar
P: 2
To call and execute non java source files you use jni. To execute .exe files you can use Runtime.exec() method. To manipulate images in Java programs, however, you might need to have a look at a Java image processing tutorial. I do not think you will find a zoom method in Photoshop that you can call in your Java program.
Dear r035198x,

Thank you so much for the prompt reply. However, I still need to know:

1. Using jni I've to make some changes in the main source file (for example a C++ file), right?
2. I think there should be a method or function in Photoshop through which we can zoom a picture, if not, then how does zooming works in Photoshop?! There should've been some source files for Photoshop in which the functions (or methods) are written, right?
3. That was just as an example if I said Photoshop. What I'm exactly looking for is to execute some functions of 3ds Max (such as rotate, zoom). How can I call 3ds Max source files from my java application so I can zoom or rotate my image (uploaded in JPanel) using those 3ds Max functions?

Best regards,
Saghar
Feb 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.