|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

05-06-2008, 02:03 PM
|
 |
Senior Member
|
|
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
|
|
|
no windows no cmd
Can anyone tel me this what does this mean?/?
cmd.exe???
cmd.exe is present only in Windows 
__________________
i am the future
|
|

05-06-2008, 02:16 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
|
|
|
thats ok...How to implement it with my omnipage.exe...
with cmd.exe can we run it in silent mode?(background?)
__________________
visit : To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-06-2008, 02:19 PM
|
 |
Senior Member
|
|
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
|
|
|
as DonCash said
as DonCash said, if OmniPage.exe can take parameters then yes!! 
__________________
i am the future
|
|

05-06-2008, 02:26 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
|
|
|
yeah ..i have seen in my previous company that it will take params...if i try here it is opening in GUI mode...:-(
__________________
visit : To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-06-2008, 05:23 PM
|
 |
Senior Member
|
|
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
|
|
|
What parameters should be added in order to run that omnipage.exe?
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 08:23 AM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
|
|
|
it is taking parameters of .tiff images..like
C:\\omnipage\\omnipage.exe,"1.tif,2.tif"
__________________
visit : To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 09:02 AM
|
 |
Senior Member
|
|
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
|
|
try this,
Runtime.getRuntime().exec("cmd /C start C:\\omnipage\\omnipage.exe 1.tif, 2.tif");
Update us,
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 09:32 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
I'm confusing what he is talking about GUI or something. May be he want to do this through a GUI. But it's not difficult. Or may be he is looking to deal with the original application GUI??
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 10:08 AM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
|
|
|
The following error i am getting:
java.io.IOException: Cannot run program "cmd /C start C:\Program Files\ScanSoft\OmniPage15.0\omnipage.exe": CreateProcess error=2, The system cannot find the file specified
Exception in thread "main" java.lang.NullPointerException
at ProBuild.main(ProBuild.java:29)
Here comes my code:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class ProBuild {
public static void main(String args[]) throws IOException{
Process process = null;
try{
process = new ProcessBuilder("cmd /C start C:\\Program Files\\ScanSoft\\OmniPage15.0\\omnipage.exe","D:\\ Invoice\\fa1.tif").start();
}
catch(Exception e)
{System.out.println(e);}
InputStream is = process.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
}
}
if i pass parameters like :
process = new ProcessBuilder("C:\\Program Files\\ScanSoft\\OmniPage15.0\\omnipage.exe","D:\\ bharath\\fa1.tif").start();
It is opening in GUI mode....where as i want to run it in the background...
Is there any thing in java like pop-up=false
__________________
visit : To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 12:41 PM
|
 |
Senior Member
|
|
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
|
|
You must be having some doc of omnipage software, in which all the command line parameters will be there. Certainly there must some argument which make the omnipage to run in backgroud.
Also, it is quite possible that omnipage is having there own libraries.
i googled for omnipage, one of the result was omnipage sdk . may be you know what it is 
__________________
i am the future
|
|

05-07-2008, 03:00 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
|
|
thnx Rakesh...actually i am trying the same tooo....  omnipage sdk..it will works i think...thnx for ur time nd support
__________________
visit : To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

05-07-2008, 03:14 PM
|
 |
Senior Member
|
|
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
|
|
how about closing the thread as SOLVED 
__________________
i am the future
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|