Can't execute scriptgen commnad
Hi All,
Please advise me. I just download java card kit version 2.2.2 and try to generate script file by using scriptgen command, below is response:
C:\Program' is not recognized as an internal or external command, operable program or batch file.
The response like java can't see scriptgen.bat. I use j2se 5.0 (j2re = 1.5) and I got the same response when try to use other (apdutool, verifycap, etc. )bat file.
Thank you.
A had the same problem. It means, that not only your JC_HOME environment variable, but also JAVA_HOME environment variable can contain space character (usually because of "Program Files" in your path).
You can fix that problem by replacing %JAVA_HOME% with quoted "%JAVA_HOME%" in the scriptgen, apdutool and other .bat files of /bin directory in Java Card SDK (one of the last lines of those .bat files).
Eveline
Similar Messages
-
How to execute "scriptgen"???
I can't execute scriptgen.
The exception occured as following message
"Cap constructor exception: java.util.zip.Zipexception: Access denied"
I've already made CAP file.
The command I made is like this.
scriptgen -o out.scr -package <package_name>My platform is Windows XP.
How do I solve this problem?
Thanks in advance for your timeI read README and "cJDK_Users_Guide.pdf" carefully.
And I found why I had not be able to generate .scr.
There is an example to execute scriptgen with Demo
in the Latter document CHAPTER 3 page 13.
Finally, I can generate .scr!!
Thank you for your guidance!!! -
How can I execute a Procedure with OUT variable is %ROWTYPE on SQL Prompt
Hi,
I have a procedure with OUT variable is %ROWTYPE
How can I execute the following procedure on SQL prompt.
(without creating anonymous block)
CREATE OR REPLACE PROCEDURE zz_sp_EMP(VEMPNO IN EMP.EMPNO%TYPE,
V_REC IN OUT EMP%ROWTYPE)
AS
BEGIN
SELECT * INTO V_REC FROM EMP WHERE EMPNO = VEMPNO;
END;
Thanks & Regards,
Nareshas previous posters said: it's not possible to do this without declaring a variable in the anonymous block.
With anonymous block it would look like this (had to change it a bit, since i'm using hr-schema on oracle XE):
declare
l_rec EMPLOYEES%ROWTYPE;
begin
zz_sp_EMP(VEMPNO => 100, V_REC => l_rec);
DBMS_OUTPUT.PUT_LINE ( 'first_name = ' || l_rec.first_name );
DBMS_OUTPUT.PUT_LINE ( 'last_name = ' || l_rec.last_name );
end;
first_name = Steven
last_name = King -
How can i execute vb scripts in java program
hi
how can i execute any batch files or any other exe files (vb scripts) from java programs
thanksHi,
You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
/Kaj -
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
Hi
I have a stored procedure. It can be executed like this
exec test @p = 1;
exec test @p = 2
exec test @p = n;
n can be hundred.
I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time.
If I know the number in advance, say 3, I can create 3 different Execution SQL Tasks. They can be run in parallel.
However, the n is not static. It is coming from a table.
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
I think about using script task. In the script, I get the value of n, and the list of p, from the table, then running a loop with. In the loop, I create a threat and in the threat, I execute the sp like : exec test @p = p. So the exec test may
be run parallel. But I am not sure if it works.
Any idea is really appreciated.Hi nam_man,
According to your description, you want to call stored procedures in parallel, right?
In SSIS, we can create separate jobs with different stored procedures, then set the same schedule to kick the jobs off at the same time. In this way, we should be careful to monitor blocking and deadlocking depending on what the jobs are doing.
We can also put all stored procedures in SSIS Sequence container, then they will be run in parallel.
For more information about SSIS job and Sequence container, please refer to the following documents:
http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
https://msdn.microsoft.com/en-us/library/ms139855(v=sql.110).aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
How can I execute program after using F4_Filename function?
Hi all,
I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
This is simple program for example:
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
f_name = p_file.
write:/ f_name.
This program works correctly. There is a field for parameter. I can change the default name for a file.
After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
Now I added a function F4_Filename
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
write:/ f_name.
I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
What do I do wrong?
Could anyone suggest me a solution? How can I executed the code after using this function?
Thanks in advance.
Regards,
Arek.Hi arkadiusz,
1. simple
2.
<b>start-of-selection.</b>
f_name = p_file.
write:/ f_name.
regards,
amit m. -
How can I execute external application?
Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
Thanks
Mehmet
P.S. I have been writing this message with details may be somebody can give me a simple way for thisWell, I can suggest you following steps. May be it works for you .
-Create an external OS command in SM69
-Test OS command in SM49 ( <u><i>about OS command if you search in SDN youll get lot of material</i></u> )
-Create a Script at your OS level, Im assuming you might have some UNIX flavor or Sun solarias.
-Create a Shell script , which execute the printer job from OS .
-Shell script will have parameters . ( e.g. printer name, destination etc )
-set the path of shell script directory in SM69 ( the command you just created )
-Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
In the ABAP program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
FYI
For UNIX script, if you search in www.google.com ( UNIX forums) . youll get shell script .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How can I execute an .app remotely in a server via internet?
Hi,
Using PHP, or something like it, how can I execute a MAC OSX app but have it run remotely in the server?
I know this may sound like a simple question but I have almost no experience with Web apps.
Thanks,
Juan DentAll you need is a trigger that starts the execution. A simple HTML link to the file will do.
-
How can I execute a query using RSCRMBW_REPORT?
Hi everybody,
I have read the document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ba5e590-0201-0010-59b1-cab51fd245b7
and found it is very intersting for my requirement.
I copied the report,and modified it regarding our case.But during the second call,I get runtime error.
I debugged the code, and found the error results from method GET_CUBETYPE() of class CL_RSCRMBW_BAPI.In this method,it tries to create a object which is TYPE REF TO cl_rsd_dta.
CREATE OBJECT lr_dta
EXPORTING
i_infoprov = g_s_status-infocube
But g_s_status-infcube is null.
I am not able to find where this 'infocube' component in this g_s_status struction is filled,even I found,I don't know how I can give this infocube parameter from report which 2 FM are called.
My code is following:
parameters: p_repuid TYPE RSCRMSTATUS-REPORTUID
DEFAULT 'Z_IC_01/Z_COMP_Q003'.
parameters: p_split type BAPI6110DIM-DIM_NAM.
data:name_query TYPE CHAR50,
result_table LIKE RSCRMSTATUS-TABNAME,
it_return LIKE BAPIRET2 OCCURS 2 WITH HEADER LINE,
infocube TYPE CHAR30,
compid TYPE CHAR30.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_repuid.
CALL FUNCTION 'RSZ_COMPONENT_TREE_GET'
EXPORTING
i_title = 'Query auswählen'(031)
IMPORTING
E_INFOCUBE = infocube
E_COMPID = compid
EXCEPTIONS
OTHERS = 1.
IF sy-subrc GT 0.
ENDIF.
concatenate infocube '/' compid into p_repuid.
START-OF-SELECTION.
CALL FUNCTION 'RSCRMBW_REPORT'
EXPORTING
i_mode = 'OPEN'
i_reportuid = p_repuid
I_PACKSIZE = 10000
I_EXECMODE = 'TABLE'
I_EXTRACT = 'ZBWTEST'
I_SPLIT = p_split
I_CLEAREXTRACT = 'X'
TABLES
E_T_RETURN = it_return.
CALL FUNCTION 'RSCRMBW_REPORT'
EXPORTING
i_mode = 'START'
i_reportuid = p_repuid
I_PACKSIZE = 10000
I_EXECMODE = 'TABLE'
I_CLEAREXTRACT = 'X'
TABLES
E_T_RETURN = it_return.
So far this creation of report is only the 2nd step.But I am not sure how step 3 to step 6 should be done so that the report can be execute exactly.
What should I do? Pleas help me!
Thanks in advance
Regards,
Liying
Message was edited by: Liying Wang
Message was edited by: Liying Wang
Message was edited by: Liying WangLiying
Were you able to get a solution to this problem? I am facing the same issue too. The g_s_status-infocube is showing blank.
Regards
Dilip -
Can I execute a function module in my Webdynpro App ?
Hi,
Can I execute a function module in my Webdynpro App ? I mean, it's not a BAPI.
Is it possible ? which is the procedure to follow ? (comparing to a bapi procedure).
Thanks for your help !
Regards from Mexico. =)
DiegoHi Diego,
the warning icon indicates that you're using a function module that has not been externally released. If the corresponding function module has been defined by SAP, its interface might be changed in an incompatible way within one of the next releases, e.g. removing / renaming a parameter or structure field. Stability is only guaranteed for BAPIs or external released function modules.
From the point of view of the model import it does not make any difference. If import does not work, there seems to be some other problem. Maybe the function module has not been activated in the R/3 system. Or check the log file or the import log page which will be the last page of the import wizard.
You might want to import some other none external released function module in order to verify that model import of these kind of function module works.
Kind regards,
Lothar Bender -
Is there a tool available that can be executed by another process to scale the actual size of the printed PDF file by X%? We are attaching PDF files to printed output using the Oracle DocuMaker product, and are running into margin issues with the attached PDF. We need to keep a 3/4 inch margin on our pages for sorting/finishing equipment, and the attached PDFs do not all conform to our margin requirements.
What email program are you using? And what do you mean by "Safari mail"?
-
How can I execute a statement before a VO is running
JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
I use ADF BC
how can I execute a statement before a VO is runningthanks for the answer
i use a logon function before I run a VO
after a certain time will be disconnected
and I have to call the function again
sorry for my English
public String logon(String username, String password){
CallableStatement st = null;
this.username = username;
this.password = password;
try {
st = getDBTransaction().createCallableStatement("begin ep_security.LogOn(?,?); end;",0);
st.setObject(1, username);
st.setObject(2, password);
st.executeUpdate();
this.getDBTransaction().commit();
} catch (SQLException e) {
System.out.println("ERROR "+e.getMessage());
this.addWarning(new JboWarning("Quote retrieved successfully"));
System.out.println("...RETURN ERROR");
return "error";
} finally {
if (st != null) {
try {
// 7. Close the statement
st.close();
} catch (SQLException e) {
e.printStackTrace();
} -
How can I execute a batch file from my java program
Hi,
Can someone help me or direct me to a link,
How can I execute a DOS batch file from my java program?
ThanksYou will need to grab a handle to the process's
outputstream so u can see its output.The OP didn't mention any output from any batch file;
nor any input for that
matter,so lets not complicate matters here for now
ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
I'm sure it wasn't intentional that your post appeared to be bristling with attitude. -
How can I execute a bash script by double clicking in finder
Hello!
How can I execute a bash script using finder? Or better: How can I create an alias, which executes my bash script?
Thanks JohannAdd the suffix command in your script name. E.g. Script.command.
-
How can I execute a method on a specified time?
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?
BilgeTonyukuk99 wrote:
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?As a simple example, take a look at http://www.javapractices.com/topic/TopicAction.do?Id=54.
As an alternative (and looks like better approach), you could use the ScheduledThreadPoolExecutor.
Maybe you are looking for
-
Schedule job with JOB_CLOSE until a certain time
Hello all, I'd like to schedule a background job with JOB_CLOSE until a certain time, i.e. first start time at 10 a.m., repitition period 15 min., last start time 1 p.m. I tried this using parameter LASTSTRTTM, e.g.: i_startdate = sy-datum. i_startti
-
How to use Swing in a Web applicatrion
Can you suggest me some good PDF or some good site for reading about using SWING in a Web Application. In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like col
-
nterval Since Last Panic Report: 7854 sec Panics Since Last Report: 3 Anonymous UUID: 9ECF6F3D-32CF-4469-9ED0-D8C0B393DF03 Mon Feb 24 12:51:45 2014 panic(cpu 1 caller 0x2abf6a): Kernel trap at 0x0023184c, type 14=page fau
-
Lenovo Enhanced USB Port Replicator SILENT INSTALLATION (distribution)
Hi! I have problem with silent installation of the "USB Port Replicator". I have an CD with autorun (usbportrep.exe starts), nd i need to install in silently on client computer. usbportrep.exe hasn't any switches like \s or \hidden or \quiet. I trie
-
Problem while installing windows xp on 3000 n100..
hi there, i'm new in this and i was wondering.. is anyone can help me with my problem? i have lep-top, lenovo 3000 n100, type: 0768 - FSG... i corently run on vista ultimate and i want to downgrade it to xp.. when the autorun starts it shows me that