Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-06-2008, 02:03 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
rjuyal is on a distinguished road
no windows no cmd
Quote:
Can anyone tel me this what does this mean?/?

cmd.exe???


cmd.exe is present only in Windows
__________________
i am the future
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 05-06-2008, 02:16 PM
jazz2k8's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 112
jazz2k8 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #23 (permalink)  
Old 05-06-2008, 02:19 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
rjuyal is on a distinguished road
as DonCash said
as DonCash said, if OmniPage.exe can take parameters then yes!!
__________________
i am the future
Bookmark Post in Technorati
Reply With Quote
  #24 (permalink)  
Old 05-06-2008, 02:26 PM
jazz2k8's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 112
jazz2k8 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #25 (permalink)  
Old 05-06-2008, 05:23 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
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.
Bookmark Post in Technorati
Reply With Quote
  #26 (permalink)  
Old 05-07-2008, 08:23 AM
jazz2k8's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 112
jazz2k8 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #27 (permalink)  
Old 05-07-2008, 09:02 AM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
try this,

Code:
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.
Bookmark Post in Technorati
Reply With Quote
  #28 (permalink)  
Old 05-07-2008, 09:32 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
Bookmark Post in Technorati
Reply With Quote
  #29 (permalink)  
Old 05-07-2008, 10:08 AM
jazz2k8's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 112
jazz2k8 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #30 (permalink)  
Old 05-07-2008, 12:41 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
rjuyal is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #31 (permalink)  
Old 05-07-2008, 03:00 PM
jazz2k8's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 112
jazz2k8 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #32 (permalink)  
Old 05-07-2008, 03:14 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 187
rjuyal is on a distinguished road
how about closing the thread as SOLVED
__________________
i am the future
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 04:27 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org