Advertisement

07.22.2008 at 01:52AM PDT, ID: 23584436 | Points: 500
[x]
Attachment Details

using java language in as/400

Asked by Gayathriadithya in Development Software, Java Programming Language

Question 1:
i am trying to open cash drawer using java code with the help of batch file Serial2.bat.

Serial2.bat
MODE COM1 96,N,8,1
ECHO ^G>COM1

Java program in As/400
PUBLIC CLASS TEST {                                          
  PUBLIC STATIC VOID MAIN(STRING[] ARGS) THROWS EXCEPTION {  
    PROCESS P = RUNTIME.GETRUNTIME().EXEC(                  
         "C:\WINDOWS\Serial2.bat");                              
    P.WAITFOR();                                            
  }                                                          
}          

while running this java program it is giving error java.io.IOException: the path is not found.
Is there any way to access the batch file in the C: drive using java program in AS/400.

Question2:
I have tried through CL language using STRPCCMD with the help of batch file serial2.bat it is opening the cash drawer but Dos prompt is displaying in AS/400 screen.  But i don't want to display the dos prompt.  

the aim is to open cash drawer without displaying the Dos prompt in AS/400 screen.
                                       


Start Free Trial
 
Loading Advertisement...
 
[+][-]07.22.2008 at 05:09PM PDT, ID: 22064881

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 05:02AM PDT, ID: 22078105

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.26.2008 at 03:47AM PDT, ID: 22094522

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 02:09AM PDT, ID: 22179090

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628