Bat File execution Problem in Win Server 2k3

I have a jar that is calling a .bat file.
It executes the bat file in Windows XP, and Windows 2000
But when I run it in Win Server 2k3 it can't execute.
I get Exit Value 1
Does anyone know any differences between the Operating Systems that could cause this?
Thanks
Paul

I don't know enough about the difference in system or even between your two installation. An exit 1 error could happen for any reason, such the batch file not being found or other reason.
The best thing to do is get a handle to the stderr and stdout of the process and display them. To do this you would write a class that reads from an InputStream (the output of the process is read using an InputStream) and displays to System.out. Follows is some code that illustrates this (done off the top of my head, more or less, so it won't necessarily execute as is):
   void runExternalTask()
      String cmd = new String { "myexecutable.exe" };
      Process proc = Runtime.getRuntime().exec(cmd);
      ProcessOutputHandler procOut = new ProcessOutputHandler(proc.getInputStream(),0);
      ProcessOutputHandler procErr= new ProcessOutputHandler(proc.getErrorStream(),0);
   public static class ProcessOutputHandler implements Runnable {
        InputStream _in;
        //PrintStream _out;
        boolean run = true;
         * Constructor for ProcessOutputHandler.
        public ProcessOutputHandler( InputStream in, int procID ) {
            _in = in;
            (new Thread(this,"output.handler."+procID)).start();
        public void close () {
            run = false;
        public void run() {
            try {
                int i = 0;
                while ( run && (i=_in.read()) != -1 ) {
                    System.out.print((char)i);
            } catch (IOException e) {
              e.printStackTrace(System.err);
    }

Similar Messages

  • Running .bat files as administrator on win 7 and win 2k8 machines

    I have .bat which will be copied onto Win 7 and Win 2k8 machines remotely. The batch file contains scripts to stop and restart Windows services, like,
    net stop "Adobe Acrobat Update Service".
    Now when I run this batch file, I get "System error 5 has occurred. Access is denied."
    I understand that I need to run this batch file as administrator (here by administrator I mean, Windows default administrator.).
    Does anyone have a solution for this?
    P.S: 1) "run as" command inside the .bat file won't work, since you need to run the .bat file itself as administrator (here by administrator I mean, Windows default administrator.).
    2) I can create another batch file (say b.bat) containing the "run as" command and invoking the the original batch file (say a.bat), which has the command net stop "Adobe Acrobat Update Service". But still, this won't solve the issue, since you can run as,
    the user, who has administrator privileges and not run as administrator (here by administrator I mean, Windows default administrator.) itself.

    Suhas,
    Can you explain me why you want to do this?
    Maby there are there some beter ways to achive your goal.
    The reason why this doesn't work is UAC who strips the administrator tokens from your user account.
    So it is not nesseary to use the default windows administrator account. Just a user with administrative priviliges will do you only need to run this command elevated.
    There are several ways to run this command elevated:
    Just right click on the batch file and choose the option run as administator.
    Quite simple but a no go if you wanna have a fully automated solution
    Use PsExec.exe  from the pstools suite (avaible
    here)
    If you use the command like this:
    PSEXEC -u domain\user -p password -h net stop spooler
    PSEXEC -u domain\user -p password -h net start spooler
    Or from a remote machine (pcX = remote management machine, pcY = machine where you want to restart the service.)
    Execute this command on machine pcX:
    PSEXEC \\pcY -u domain\user -p password -h net stop spooler
    PSEXEC \\pcY -u domain\user -p password -h net start spooler
    Create a sheduled task with the "highest privlilges" that executes your batch file.
    etc ...
    Kind Regards
    DFT
    IM me - TWiTTer: @DFTER

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • Successfull .Bat file execution

    Hi,
    I have a .bat file consisting couple of actions /tasks ...
    Rem Task 1: Using ImageX to deploy a image stored on USB .
                        Imagex /apply /U:\install.wim /index:3 D:\
    Rem Task2 : Copy a folder from USB to D drive
                        xCopy U:\Temp D:\Temp2
    Now I want to add some logic into the bat file, for example if a task is interrupted (maybe be source disk is not available or removed, like USB or network resources etc) or there is no folder with name Temp (for example), can  I get a VB message box
    with saying something went wrong, start again _???
    N.A.Malik

    If you write your batch file in a modular fashion then you can check for any criteria as shown below. You will have to write the individual code segments yourself.
    @echo off
    set result=OK
    call :CheckDiskSpace
    if not %result%==OK goto :eof
    call :FileSize
    if not %result%==OK goto :eof
    etc.
    goto :eof
    ==============
    :CheckDiskSpace
    . . . Your code goes here
    if %Free% LSS 100000000 set OK=false
    goto :eof
    ==============
    :FileSize
    . . . Your code goes here
    if %Size% GTR 100000000 set OK=false
    goto :eof
    ==============

  • Customized Crystal Report execution problem in Win 7

    Hi Experts,
    I am getting a screen of Server : Database : Userid : Password while attempt to run a customized crystal report from Win 7 based platform. In the screen database selection option is inactive so it is not possible to select the databse.
    The OS of user PC has been formated recently current OS is Win 7 and before that it was XP running fine. Is it a report problem or any other problem please guide??
    SK

    Hi ,
    are you running report from SAP ? if so , Run SAP as administrator(right click on SAP icon and click run as administrator) and run report - it will work fine .
    if ypu are running report directly from crystal report , run crystal report as administrator.
    or change crystal report connection from SAP business one to OLEDB and update datasource.
    Thanks,
    Neetu

  • File association problems with Win2K server

    Hi,
    I have a client - 5 Macs in a Win2K network. They're designers and store/work on all their jobs on a Win2K volume. About 2 months ago, problems started happening - files lost their application association (mostly all were turned into Unix exec files), causing sever problems with the workflow. Quark can't open a placed image in it's native app for instance, because the association has been lost. The user has to visit each file and re-associate. As you can imagine, this is not an ideal situation to say the least.
    Furthermore, when re-associating the files, the option to "Always open with" is greyed out, so a one-time fix isn't possible.
    I suspected that it was something to do with the windoze volume. I more or les proved it by copying one of the files to a local machine and then re-associating: all works as it should when the files are local. Copying the files locally is not an option though.
    This really is at the limit of my windoze knowledge. Their sysadmin is also not sure what's happening, aside from the fact that there's no windoze app that's accessing the files and writing them back to the disk. The only thing that looks at the files is the daily backup and that's a read and not write operation. We're stumped, but it really needs sorting. I've suggested they move some of the files to another server and see if the same occurs, which may or may not prove the issue is with the server they're using now. Any guidance gratefully received.
    All Macs at 10.4.5 and recent updates, all have QXP 6.5, CS2.

    Probably nothing has changed with your server or your network. Typically, folks realize, "Hey! I can connect via SMB and that's my workaround for the 31 character file name limit!" Or possibly, your Mac folks are browsing the network for your server and selecting it through your Windows domain rather than a Mac zone. Tiger changed the appearance of Windows "WORKGROUPS" so that they now appear as upper/lower case instead of all caps. This use to be a good way to distinguish them from zones.
    To guarantee your users are connecting via AFP, which is what I would recommend for a Mac workgroup, have them specifically use "afp://servername" in the "Connect to Servers" dialog. I don't recommend Apple's SMB because Mac OS X splits each file into separate resource and data fork files before placing them on the server. When Windows folks see this, it's a mess. And I don't recommend continuing to use Microsoft's SFM because its version of the AFP protocol hasn't been updated in years. Either way, look to a third party software solution.
    Don't let the 65+ GB scare you. It's really not that bad if you're on a 100MB network but the server should recognize that all traffic is local and actually handle all the file moves itself without shuffling files across the network. A bit of a pain, but shouldn't take too long.
    Good luck! bill
    1 GHz Powerbook G4   Mac OS X (10.4.5)  

  • File Upload Problem to linux server

    Hi all,
    I have a big problem. I can not get my code to work on a linux web server. The code works fine on my localhost witch is a windows pc. Here is the code i use:
    <-----form.html------>
    <html>
        <head><title>Upload test</title></head>
        <body>
            <form method='POST' enctype='multipart/form-data' action='upload.jsp'>
            File to upload: <input type=file name=upfile><br>
            <br>
            <input type=submit value=Press> to upload the file!
            </form>
        </body>
    </html>and
    <-- upload.jsp -->
    <%@ page import="java.io.*" %>
    <%
    try {
        String contentType = request.getContentType();
        System.out.println("Content type is :: " +contentType);
        if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
            DataInputStream in = new DataInputStream(request.getInputStream());
            int formDataLength = request.getContentLength();
            byte dataBytes[] = new byte[formDataLength];
            int byteRead = 0;
            int totalBytesRead = 0;
            while (totalBytesRead < formDataLength) {
                byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
                totalBytesRead += byteRead;
            String file = new String(dataBytes);
            String saveFile = file.substring(file.indexOf("filename=\"") + 10);
            saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
            saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
            //out.print(dataBytes);
            int lastIndex = contentType.lastIndexOf("=");
            String boundary = contentType.substring(lastIndex + 1,contentType.length());
            //out.println(boundary);
            int pos;
            pos = file.indexOf("filename=\"");
            pos = file.indexOf("\n", pos) + 1;
            pos = file.indexOf("\n", pos) + 1;
            pos = file.indexOf("\n", pos) + 1;
            int boundaryLocation = file.indexOf(boundary, pos) - 4;
            int startPos = ((file.substring(0, pos)).getBytes()).length;
            int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
            //String path = new String("C:/Program Files/Apache Group/Tomcat 4.1/webapps/testUploadScript/");
            String path = new String("//home/httpd/vhosts/defualt/httpdocs/test/");
            FileOutputStream fileOut = new FileOutputStream(path + saveFile);
            out.println(path + saveFile + "</br>");
            //fileOut.write(dataBytes);
            fileOut.write(dataBytes, startPos, (endPos - startPos));
            fileOut.flush();
            fileOut.close();
            out.println("File saved as " +saveFile);
    } catch(FileNotFoundException fnfe) {
        out.println(fnfe.toString());
    } catch(IOException e) {
        out.println(e.toString());
    %>I want to know if it is a codeing problem or what?
    Please help.
    Thanks
    IceMan

    There are a couple nasty things in your code (not that your coding would be wrong).
    Maybe better look into jakarta commons,
    http://jakarta.apache.org/commons/fileupload/
    There are minor issues like \r, content length/chunk mode, //home,
    path names, bytes-to-String without encoding. Also officially "--" is not allowed to occure inside an HTML/XML comment, hence some people use <!-- ======= -->.

  • CE 10 - Slow printing from Report Viewer in Win Server 2K3

    Post Author: JacobK
    CA Forum: General
    I'm not very familiar with Crystal reports, we are having slowness issues when printing from the web through report viewer in Win2K3.  Recently upgraded from Win 2000 to 2K3.  Same crystal version, CE 10.  On the 2000 system this report printed fine.  Now there is a delay in bringing up the report in viewer and then an extreme delay when printing.  This report prints normally when printing directly from Crystal.
    Any ideas?
    Thanks in advance.

    OK so I have updated VS 2010 to SP 1, and installed CR2010. Within my project I have updated the referenced .dlls
    CrystalDecision.CrystalReports.Engine
    CrystalDecision.ReportAppServer.ClientDoc
    CrystalDecision.ReportSource
    CrystalDecision.Shared
    CrystalDecision.Web
    I updated the web.config assembly entries to match the new version # (13.0.2000.0) and the app compiles.
    However, now when I try to run a report I receieve the following error...
    An error of type <System.Web.HttpException> occurred
    Error Details: The 'PageToTreeRatio' property cannot be set declaratively.
    I am sure I need to make some code changes but I cannot find this "PageToTreeRatio" attribute anywhere in my .asp code. Is this something you are familiar with? Is this parameter in the report itself?
    As I mentioned before the reports were built in CR10 Deveoper (not in Studio) is that the source of this problem? Will I have to rebuild all the reports in VS2010?
    Thank you for all the help so far, I am a lot closer than I was yesterday!!
    -C

  • CF 9 Performance Monitor problem on Win Server 2003 R2 x64

    This is a new install of both the operating system and CF 9. I'm unable to get the CF 9 counters to even show up in Performance monitor.
    I get the following error in the Event Viewer when trying to enable them... any ideas on what to try next?
    "The data buffer created for the "ColdFusion 9 Application Server" service in the "C:\WINDOWS\system32\cfpefmon_9.dll" library is not aligned on an 8-byte boundary. This may cause problems for applications that are trying to read the performance data buffer. Contact the manufacturer of this library or service to have this problem corrected or to get a newer version of this library."

    Sorry. I was waiting to see if others had answers.
    Since so far they don't, let me ask this: if you view Perfmon, do you find whether it lists CF 8 as a performance object (in perfmon)?
    If so, add them to the display and see if perhaps those show what you thought should be reported for CF9.
    I just checked my own 2k3 server, and I too had updated it from 8 to 9. Though not 64bit, I see the same error in my event log, but I see that my CF9 server stats are being reported under CF8. To be clear,  don't have CF8 running. But I did update from Enterprise Multiserver 8 to 9 Standard. That may explain why the cf8 dll is still in windows\system32. I suppose mine is a rather rare case, but maybe it's what happened to you. I could try deleting the cf8 dll, but since I do still have the CF8 install there, with the instances stopped (cfusion, admin, and others), I may have need to turn them on some day. Also, it seems I'd need to restart CF or perhaps the server to make that change take effect, and I'd rather not (it's my prod server).
    But let us know if the workaround (viewing under CF8 counters) works, or if you have the same situation and would be willing to delete the CF8 dll and restart.
    /charlie

  • Large file transfer problems over client/server socket

    Hi,
    I wrote a simple chat problem in which I can send files from client to client. The problem is when I send large files over 101 MB the transfer freezes. I do not even get any error mesages in the console. The files I am sending are of any type (Ex mp3, movies, etc...). I am serializing the data into a "byteArray[packetSize]" and sending the file packet by packet until the whole file has been sent, and reconstructed on the other side. The process works perfectly for files smaller than 101MB, but for some reason freezes after that if the file is larger. I have read many forums and there aren't too many solutions out there. I made sure to use the .reset() method to reset my ObjectOutputStream each time I write to it.
    Here's my file sending code:
    byte[] byteArray = new byte[defaultPacketSize];
    numPacketsRequired = Math.ceil(fileSize / defaultPacketSize);
    try {
    int i = 0;
    reader = new FileInputStream(filePath);
    while (reader.available() > 0) {
    if (reader.available() < defaultPacketSize) {
    byte[] lastPacket = new byte[reader.available()];
    reader.read(lastPacket);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(lastPacket);
    output.reset();
    output.writeObject("DONE");
    output.reset();
    output.close();
    socket.close();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    else {
    reader.read(byteArray);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(byteArray);
    output.reset();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    reader.close();
    catch (Exception e) {
    System.out.println("COULD NOT READ PACKET");
    Here's my file receiving code:
    try {
    // The message from the client
    Object streamInput;
    FileOutputStream writer;
    byte[] packet;
    while (true) {
    streamInput = input.readObject();
    if (streamInput instanceof byte[]) {
    packet = (byte[]) streamInput;
    try {
    writer = new FileOutputStream(outputPath, true);
    writer.write(packet); //Storing the bytes on file
    writer.close();
    catch (Exception e) {
    System.out.println("Exception: " + e);
    else if (streamInput.equals("DONE")) {
    socket.close();
    input.close();
    break;
    catch (Exception e) {
    I'm looking for any way I can possibly send large files from client to client without having it freeze. Are there any better file transfer ways other than socket? I don't really want FTP. I think I want to keep it HTTP.
    Any suggestions would be helpful.Thanks!
    Evan

    I've taken a better look a the code you posted, and
    there is one problem with the receiving code. You
    keep repeatedly opening and closing the
    FileOutputStream. This is not going to be efficient
    as the file will keep needing to be positioned to its
    end.Yes sorry I did change that code so that it leaves the file open until completely done writing. Basically I have a progress bar that records how far along in the writing process the client is, and when the progress bar reaches 100%, meaning the file is complete, the file.close() method is invoked. Sorry about that.
    I also ran some memory tests using the "Runtime.getRuntime().totalMemory()", and "Runtime.getRuntime().freeMemory()" methods. I put these methods inside the loop where I read in the file and send it to the client. here's the output:
    Sender's free memory: 704672
    File reader read 51200 bytes of data.
    767548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 702968
    File reader read 51200 bytes of data.
    716348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 701264
    File reader read 51200 bytes of data.
    665148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 699560
    File reader read 51200 bytes of data.
    613948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 697856
    File reader read 51200 bytes of data.
    562748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 696152
    File reader read 51200 bytes of data.
    511548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 694448
    File reader read 51200 bytes of data.
    460348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 692744
    File reader read 51200 bytes of data.
    409148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 691040
    File reader read 51200 bytes of data.
    357948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 689336
    File reader read 51200 bytes of data.
    306748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 687632
    File reader read 51200 bytes of data.
    255548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 685928
    File reader read 51200 bytes of data.
    204348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 684224
    File reader read 51200 bytes of data.
    153148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 682520
    File reader read 51200 bytes of data.
    101948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 680816
    File reader read 51200 bytes of data.
    50748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 679112
    File reader read 50748 bytes of data.
    0 left to read.
    Creating last packet of size: 50748
    Last packet size after setting it equal to byteArray: 50748
    Here's the memory stats from the receiver:
    Receiver's free memory: 639856
    Receiver's total memory: 2842624
    Receiver's free memory: 638920
    Receiver's total memory: 2842624
    Receiver's free memory: 637984
    Receiver's total memory: 2842624
    Receiver's free memory: 637048
    Receiver's total memory: 2842624
    Receiver's free memory: 636112
    Receiver's total memory: 2842624
    Receiver's free memory: 635176
    Receiver's total memory: 2842624
    Receiver's free memory: 634240
    Receiver's total memory: 2842624
    Receiver's free memory: 633304
    Receiver's total memory: 2842624
    Receiver's free memory: 632368
    Receiver's total memory: 2842624
    Receiver's free memory: 631432
    Receiver's total memory: 2842624
    Receiver's free memory: 630496
    Receiver's total memory: 2842624
    Receiver's free memory: 629560
    Receiver's total memory: 2842624
    Receiver's free memory: 628624
    Receiver's total memory: 2842624
    Receiver's free memory: 627688
    Receiver's total memory: 2842624
    Receiver's free memory: 626752
    Receiver's total memory: 2842624
    Receiver's free memory: 625816
    Receiver's total memory: 2842624
    Receiver's free memory: 624880
    Receiver's total memory: 2842624
    Receiver's free memory: 623944
    Receiver's total memory: 2842624
    Receiver's free memory: 623008
    Receiver's total memory: 2842624
    Receiver's free memory: 622072
    Receiver's total memory: 2842624
    Receiver's free memory: 621136
    Receiver's total memory: 2842624
    Receiver's free memory: 620200
    Receiver's total memory: 2842624
    Receiver's free memory: 619264
    Receiver's total memory: 2842624
    Receiver's free memory: 618328
    Receiver's total memory: 2842624
    Receiver's free memory: 617392
    Receiver's total memory: 2842624
    Receiver's free memory: 616456
    Receiver's total memory: 2842624
    Receiver's free memory: 615520
    Receiver's total memory: 2842624
    Receiver's free memory: 614584
    this is just a sample of both receiver and sender's stats. Everything appears to be fine! Hope this message post isn't too long.
    Thanks!

  • Jar file execution problem

    Hello friends,
    I have a project folder in which i have 4 packages
    application
    ui
    controller
    model and
    a folder Datafile containing project related xml and text files
    my main class is in application package
    I am creating a jar file of my whole project folder in Eclipse environment, using the main class as TheApplication in application package. I am able to generate the jar file but unable to execute it.
    When I tried to execute it from command prompt it is giving me an error saying no main,
    Please tell me what I am doing wrong, and suggest me a solution
    Thanks in advance

    ya, You are required to put an entry in Malifest file.
    you need to add Main-Class <your class name with which you need to start ur application
    Wasn't this already shown in reply #7?> Yes it was, But as he said, even though he is getting the same problem.. So. I tried to recall him that, that class should the starting point to the application & it should be public & it should have public method.. And is not mentioned in that reply #7
    I guess you got my point now.

  • Connection Manager doesn't work for 10G R2 in Win Server 2k3 Datacenter 64

    Hi there,
    I installed the CMAN for 10G 10.2.0.3 64bit in Windows Server 2003 Datacenter x64. I can see the services installed. But I can't start the service. The error message is "(LOG_RECORD=(TIMESTAMP=15-MAR-2007 18:46:47)(EVENT=CMAN.ORA not present))", although the CMAN.ORA is in Network directory. Any hint?

    No. But I don't think it's needed anywhere, right?

  • Problem with loganalyz.exe and win server 2003, crashing

    Getting this in my application log: "Faulting application lganalyz.exe, version 0.0.0.0, faulting module msvcrt.dll, version 7.0.3790.4034, fault address 0x000303ba." When I try and generate a report.
    Clean install on win server 2k3. No report is being generated. But if I copy the command line it give, I can run it in a cmd shell.
    this is the cmd line I am using.
    C:/Sun/PROXYS~1/extras/flexanlg/flexanlg -F -n daytona -P -x -i c:/temp/access.log -o c:\temp\report.htm -c hnrfeuok -t s5m5h10u10a10r10x10 -l c+5h5 -p ctl
    anyone have ideas how to fix this?
    Edited by: jenocin on Mar 17, 2008 12:42 PM

    It may be more effective to use .net forum for this question - http://forums.oracle.com/forums/search.jspa?threadID=&q=orageneric10.dll&objID=c44&dateRange=all&userID=&numResults=15&rankBy=10001
    Best regards.

  • Bat File Trace

    Hi
    I use bat files scheduled to execute batch script late night.
    at the end of the execution i have no clue that now many statements in batch process successful and how many statements fail to execute.
    Is there anyway i can make a log of my bat file execution to see success and fail of all statements after execution?
    Wishes

    Redirecting Output to a File in Windows Batch Scripts
    http://blog.crankybit.com/redirecting-output-to-a-file-in-windows-batch-scripts/
    Regards,
    Sabdar Syed.

  • Scheduling job problem and modification in the bat file

    Dears ALL
    i am using the following script in windows 2003 server for oracle database 10 g i have one problem of scheduling the task i scheduled it successfully on windows scheduled task program but its not running at scheduled time and even when i run this bat file manually this give the security warning The publisher could not be varified,Are u sure u want to run this software? when i click on yes then it runs the bat file may be thats the problem in aslo scheduled how to remove this warning
    2ndly i want to do some changes in my script like this that it removes the same file older than 3 days means it jst have the last three dumps and will remove the olders the script is as
    @echo off
    CLS
    REM ********************************
    SET V_USER=riyadh
    SET V_PASSWORD=riyadh
    SET V_DB=vis
    SET V_DMP_PATH=D:\dump\
    REM ********************************
    ECHO.
    SET EXP_PATH=D:\oracle\visdb\9.2.0\bin\
    SET MONTH=%DATE:~4,2%
    SET YEAR=%DATE:~10,4%
    SET DATED=%DATE:~-7,2%
    ECHO ECHO CONNECT AS : %V_USER%/%V_PASSWORD%@%V_DB%
    ECHO Backup on : %DATED%/%MONTH%/%YEAR% (DD/MM/YYYY)
    ECHO SAVE AS : %V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.dmp
    ECHO TITLE BACKUP ...%V_USER%_%DATED%%MONTH%%YEAR%
    echo.
    %EXP_PATH%EXP.exe %V_USER%/%V_PASSWORD%@%V_DB% file=%V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.dmp log=%V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.log
    THANKS A LOT

    Solution:
    Run gpedit.msc
    Go to User Configuration >> Administrative Templates >> Windows Components >> Attachment Manager
    i have followd all the steps as it is but when i open the Inclusion list for moderate risk file types its not configured and the msg below this is Supported on: At least Microsoft Windows XP Professional with SP2
    and i have windows 2003 server so how to add it or enable it etc
    THANKS a lot for ur reply

Maybe you are looking for