Applet Printing thru DOS command

I've a local applet which exec DOS command to print text file to a dot matrix printer.
However, I need to amend the local policy file with
grant {
java.io.FilePermission <<ALL FILE>> "read,execute"
It's quite impossible to do this as my company is a finanical institute and this action must be challenged by Internal Audit.
I have tried to grant the above privilege to my applet only and use signed applet but both methods doesn't work too.
It seems that there are no way to do it.
Could anyone let me know if I can archieve the result with minimal privilege grant in the policy file?

I've a local applet which exec DOS command to print text file to a dot matrix printer.
However, I need to amend the local policy file with
grant {
java.io.FilePermission <<ALL FILE>> "read,execute"
It's quite impossible to do this as my company is a finanical institute and this action must be challenged by Internal Audit.
I have tried to grant the above privilege to my applet only and use signed applet but both methods doesn't work too.
It seems that there are no way to do it.
Could anyone let me know if I can archieve the result with minimal privilege grant in the policy file?

Similar Messages

  • How can i make the results of dos command print to text area in a gui????

    I need to get the results from a command line application to print in a text area located in a gui... i have the following code written, which should run the command... if run from a dos window, the command prints the list of what's in a jar file to the screen.... i want that info that is printed to go in a text area which i have named textBox which is global to the program.. i know textBox.appends() is what i should use but how do i retrieve the info from the dos window to put in the appends method?
    The code is below for the method..
    Thanks,
    DH
         /*     Runs the DOS Command for listing a JAR File     */
         public void jarList ( ) // Needs To Be Fixed!!
              listFieldText = listField.getText();
              String command;      
              command = "jar tf " + listFieldText;
              System.out.println(command);
              Runtime rt = Runtime.getRuntime();
              try
                   Process child = rt.exec(command);
                   child.waitFor();
                   System.out.println("Process exit code is: " + child.exitValue());
              catch(IOException e)
                   System.err.println("IOException starting process!");
              catch(InterruptedException e)
                   System.err.println("Interrupted waiting for process!");
    }

    Replace child.waitFor()with:          BufferedReader br=new BufferedReader(new InputStreamReader(child.getInputStream()));
              String s="";
                    while((s=br.readLine())!=null) {
                        textbox.append(s);
                    }Mark

  • I Need to print a portion of a pdf file using a dos command. Can i ?

    Hello,
    I Need to print a portion of each page of a pdf file using a dos command without opening it.
    Can i do it ? if yes how ?
    Thanks in Advance for your help.

    hello,
    Thanks for your reply. If i use another printing software like ghostscript
    or foxit reader will i be able to do it ?
    Regards
    Le 14 déc. 2014 18:49, "Bernd Alheit" <[email protected]> a écrit :
        I Need to print a portion of a pdf file using a dos command. Can i ?
    created by Bernd Alheit <https://forums.adobe.com/people/Bernd+Alheit> in *Printing
    & Prepress* - View the full discussion
    <https://forums.adobe.com/message/7013717#7013717>

  • Abobe 9: Printing a PDF file using a DOS command

    I have Adobe 9.4.0 on a server and would like to print PDF files using a DOS command. The DOS command we are using is:
    start Acrord32.exe /T/S/h/O "C:\BO_Archival_Code_Deployment\Print\TINF018_C.pdf" "Lexmark T644 PS3 - 10.192.36.126"
    With this, we are able to print only page 1 of the PDF file. The other pages remain unprinted. This means there is no issue related to printer configuration, firewalls, etc.
    Other observations:
    1) When we print the file manually after opening it in Adobe 9.4.0, all pages are printed.
    2) We found that the above command provides different results with Adobe 8.2.6 i.e. with the DOS command, all pages are printed while using Adobe 8.
    We are trying to automate some tasks for which we require the PDF files to be printed automatically through a DOS command. We are being advised to use Adobe 9 as technical support for Adobe 8 is likely to be withdrawn soon.
    Please can you help.

    Sorry. This is a forum for Adobe Connect issues not PDF issues. Please locate the correct forum so your question can be addressed properly there.

  • DOS command from java applet

    Hi, I need to perform a DOS command from Java (using WFC if needed)...
    I have no idea, so please help!
    Thank you.

    OH OH OH WAIT! It is an Applet! i think there will be some security issues here! Sure enough you can't execute commands on the system from an applet unless you make some changes on the java.policy files on the client machine (that means, if your applet is in a web page, every machine which view your page).

  • Execute DOS command in current window!

    All:
    Here is my code :
    import java.io.*;
    public class BuildScript {
    public static void main ( String[] args ) {
    String[] command = {"C:\\winnt\\system32\\cmd.exe", "cls"};
    try {
    Process process = Runtime.getRuntime().exec ( command );
    process.waitFor();
    } catch ( InterruptedException e ) {
    e.printStackTrace();
    System.exit(-1);
    } catch ( IOException e ) {
    e.printStackTrace();
    System.exit(-1);
    System.out.println ( "DONE!" );
    I just want to exeute some simple DOS command from Java application. And then I run this code, it hangs there for ever. I comments out "process.waitFor()", then it print out the "DONE" however it seems that it just open another console and clear that one and exit. For the main console I start my code, nothing happened.
    Can anyone help me out how to execute the dos command in current console window.
    Thanks

    Can anyone help me out how to execute the dos command in current console window.Sorry to say but there is no way to do that.
    The best way to clear the screen is to print a few hundred newlines.
    Trust me, this is a frequently asked question.

  • Does MAC OS have a "route add" command similar to a DOS command?

    Does MAC OS have a "route add" command similar to a DOS command?
    I know that with DOS, you can type "route add 192.168.x.x MASK 255.255.x.x 192.168.x.x" to add a route on your PC,but does MAS OS X(10.4.9) have something similar to it? I have a network printer that my winXP can access but my MAC cannot. I was unable to ping it from both wINXP and MAC. But after I added the route to my winXP I was able to ping and print to it. I do not know if I can do the same to my MAC. Does anyone know what the command is?
    Thank you in advance.

    Yes, and Welcome! ...
    http://www.osxfaq.com/man/8/route.ws
    And to make it permanent...
    http://www.osxfaq.com/tips/kluskens/index.ws

  • How to run stored procedure in DOS command line????

    Hi,
    I want to run a stored procedure in DOS command line?
    (My_Stored_Procedure is the stored procedure that I want to run )
    This is what I did in DOS prompt
    C:\>sqlplus scott/tiger exec lMy_Stored_Procedure <Return>
    Obviously it is NOT working. Please send me the correct way to fix this.
    Thanks so much in advance for helping.
    Cuong

    Billy  Verreynne  wrote:
    BluShadow wrote:
    True Billy, but even Windows hasn't completely got away from using the "DOS" word...Yeah - the command line/shell environment is based on that of the old DOS command interpreter. But Microsoft does not make the mistake of call it DOS.
    In fact, with earlier versions of Windows NT, a 16bit DOS real-mode virtual machine was supported. This was very kewl.
    Running a large BBS with multiple nodes back then required a DOS machine per node, an IPX network, and a Novell file server.Novell Netwars. ;)
    Ahhhh! good old DOS... so many good programs written at that low level, outside the Windoze environment.Yeah.. cut my teeth on writing code for DOS. Still have all my old BIOS and assembler manuals for it. Wrote my own screen s/w (write to a buffer and then move it into the video buffer, instead of writing char wise to the video buffer via interrupts), mucking about with my own concurrent threading model (using very simplistic cooperative multitasking) and so on. Heck, wrote tons of s/w on DOS... :-)Yeah I've still got a copy of my old machine code programs for writing to buffers and screen memory switching for smooth animation. Run them nowadays and they run like sh!t off a shovel. And all my old coursework including writing an interpreted language and multi-window (dos based windows) editor, parser and the code to execute the language and display the output. Oooo, and so much other stuff.
    Awesome back then as you got really intimate with the o/s and hardware. This is sorely lacking today in environments like Java. And I think the reason why so much code written today is less than optimal - to put it kindly.Exactly. Started for me on the Sinclair zx81 (writing Basic), then the Sinclair Spectrum (Basic and Assembly), then Sinclair QL (yes I really had one!) and then the BBC Master 128K (where I got to writing my own rom filing system and creating my own eproms, to integrate with the word processor for additional printing features etc. as well as storing games on rom for speedy loading - and I still have it and it still works!)
    It's that level of working with the underlying memory and assembly language that gives you the understanding of how values are passed between code using the stack and registers, and how memory allocation and referencing is done etc. As you say... it's missed in a lot of todays teaching, which just seems too high level and misses the basic concepts of things such as datatypes and why they are different. I bet half the modern programmers wouldn't have a clue how to do multiplication or division of binary numbers using the carry flag.

  • Execute a dos command

    I am trying to execute a dos command thru sap and specific the delete command.
    i tried in 2 ways (i read it to the forum) but i can't do it.
    a)            DATA : FILE(100),
                   PARAM(50),
                   COMM(30).
                   COMM = 'DEL.COM'.
                   CONCATENATE 'C:\' 'A.TXT' INTO FILE.
                   CALL FUNCTION 'GUI_RUN'
                   EXPORTING
                   COMMAND   = COMM
                   PARAMETER = FILE.
    b)  CALL METHOD cl_gui_frontend_services=>execute
      EXPORTING
       DOCUMENT               = 'C:\A.TXT'
        application            = 'YDEL'
        parameter              = 'C:\A.TXT'
       DEFAULT_DIRECTORY      =
        MAXIMIZED              =  'X'
       MINIMIZED              =
       SYNCHRONOUS            =
        OPERATION              = 'OPEN'
      EXCEPTIONS
        cntl_error             = 1
        error_no_gui           = 2
        bad_parameter          = 3
        file_not_found         = 4
        path_not_found         = 5
        file_extension_unknown = 6
        error_execute_failed   = 7
        synchronous_failed     = 8
        not_supported_by_gui   = 9
        OTHERS                 = 10.
    Please help me ...

    Hi dimath,
    1. sorry, now this will work.
       (this will not even open the dos window)
      (it will get opened only for a fraction of seconds, and then get closed automatically)
      the file will get deleted.
    2.
    command = CMD
    parameter = /C DEL D:\AA.TXT
    (note /C is important)
    regards,
    amit m.

  • Java Applet - Printing Pdf Files

    Hi
    Can anyone suggest me some libraries to print pdfs using Java Applets. I have tried using the SmartJPrint library but its giving me error when I try printing pdfs using applets.
    Thanks
    nikhil

    SmartJPrint web applets have changed recently and works to be fine every time. You might try these links for printing of existing pdf, pdf viewing, pdf print, pdf silent printing from a command line or silently printing a pdf from a browser page.
    http://www.activetree.com
    Demo that print a PDF from a browser page silently.
    [This demo printing control parameters as part of the PDF url. Interestingly this pdf print demo from browser works for a remote PDF URL that dynamically generate a PDF and then prints to the printer. In this demo you have the option to enter your URL that is either a PDF or a PDF generating URL that eventually generates a PDF and then prints.]
    http://www.activetree.com/silent_print_from_browser1/start.jsp
    [PDF print silently or using user choice dialog from the applet. PDF printing parameters such as printer name, auto page size detection, paper size selection, fit to page etc. are made as choice. This demo too print a PDF or more than one PDF as a batch pdf print. You have chice to submit the pdf print job as a separate print job or as one pdf print job.]
    http://www.activetree.com/silent_print_from_browser2/start.jsp
    These two links are opening their PDF viewer applet for viewing your local or remote PDF files.
    http://www.activetree.com/demo/pdfapplet/pdfviewer.jsp [Open the PDF viewer inside the browser frame itself. When browser resize the applet resize too.]
    http://www.activetree.com/demo/pdfapplet/pdf_viewer_no_frame.jsp [Opens the PDF viewer in a new Java frame window]
    Edited by: jatima123 on Nov 20, 2007 10:19 AM

  • Disable Security prompt or message in dos command line

    Dear all,
    I am working on :
    - Windows 2003 server
    - Office 2007
    - Adobe Acrobat 9 standard
    When I run a dos command :
    C:\WWI>"C:\Program Files\Adobe\Acrobat 9.0\Acrobat\acrodist.exe" /n /q /o "C:\WWI\PS2PDF\Document1.PDF"  C:\WWI\PS2PDF\Document1.PS"
    I always have a confirmation message : "Confirm Security" with 3 options : Edit, Clear and Retain.
    My concern is to not display this prompt because the job is in a batch mode.
    So, could you please help me ?
    Anybody know if exist a command switch or a registry key in order to force Acrobat distiller to apply the defaults security parameters with a unique password ?
    I have contacted the Adobe support but nobody can help me.
    See below how I set parameters up in Adobe PDF printer and security settings
    Thank you for your help and assistance

    Distiller Server is discontinued, so I don't think Adobe intend Distiller to be run unattended any more.

  • Is it possible to call ms-dos command in abap program?

    Hi,
    is it possible to call ms-dos command in abap program?
    Thanks.

    Hi Cemil,
    You probably have your answer here:
    [Re: DOS/Windows command in app server;
    You create your external command with SM69 (you can test it with SM49).
    Then you call this command with function module "SXPG_COMMAND_EXECUTE".
    (See function group SXPT for all the calls to external commands).
    Regards,
    Thomas

  • How to run multiple DOS commands from a single Webutil Client_Host session?

    Hello all,
    I have a requirement where I need to create an interface with SVN from Forms for basic checkin-checkout of files.
    So, I've been trying to use webutil client_host to open a command line session and issue svn commands.
    For svn, sometimes I need to give multiple commands like change to a particular directory and then run an svn command.
    But client_host takes in only one command at a time and I'm unable to issue a series of DOS commands to perform
    a particular task.
    Is there a way to do this?
    Pls suggest.
    Regards,
    Sam

    First your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
    mkdir c:\abc & cd abc & dir*
    Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
    Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
    So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine.

  • Is there a way to run dos commands on onther system?

    Hi I have connected to a port of another system where windows is the operating system. So can I run dos commands on the other system through that network connection from my computer?

    I'm not sure what you mean by "connected to a port of another system" . Which port using what software to which server?

  • Is there a way to change the VNC password thru unix command in ARD2?

    In a local network, I get access denied errors from macs that have the vnc password different than the Administrative login user password. I needed to change the Admistrator password which I did thru the Unix command in ARD2.
    Now.
    Is there a way to change the VNC password thru unix command in ARD2?
    Example:
    remote computer setup
    Panther 10.3.9
    vnc password - gopher
    user ID - testARD with admin rights
    user password - backdoor
    ARD2 Computer setup
    10.4.10
    login ID - testARD
    password - backdoor
    I get the blue icon but get an 'access denied' error.
    I change the password from backdoor to gopher.
    I get the red with dash icon but, can get access to the computer.
    What is going on? Is ARD2 using the VNC resource instead of ARDs resources?

    A quick search of Google finds this <http://www.macgeekery.com/tips/cli/settingremote_desktops_vnc_password_interminal>. I have not tested this myself.
    bill

Maybe you are looking for

  • JAva ME SDK 3.0 Fatal Error : 123

    Hi, i have a very strange error when running my midlet inside the emulator of SDK 3.0 This midlet runs fine under SDK 2.5, and under Nokia emulator but in SDK 3.0 I have an almost silent crash of the emulator. The only message the console is giving m

  • Recording to DVD Error

    I get the following error when I try to burn to a DVD. "this disc could not be verified and might be unreadable. Try again using a new, blank disc. (error code 0x80020063)" This happens at the end of the process. Looking at the disc after it appears

  • I can't view videos and photos in Adobe Reader

    I have Adobe Reader but cannot get certain videos or photos etc from friends.  I have trouble updating.  I own an IMac desk top computer. I have recently installed XOS system which is not helping either.

  • Can't submit reviews in App Store.

    Can't submit reviews in App Store. Press submit, it goes away, but app asks me to rate it.  I go back and click rate app and my review comes back. Can someone help please?

  • Message no. F5A047

    Hai! I have created a new tax code for sales and purchase. got it transported while sumilating all the accounts and rates are showing properly but getting an error message as Error exists and see error log. The message number is Message no. F5A047 pl