IOException--CreateProcess--Win32Process!!!!

Hi every body.
Does someone know the meaning of this error?
java.io.IOException: CreateProcess: prueba error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:63)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)
at org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
p.java:185)....................................
It's the result of this code:
cmd="prueba.bat";
exec(cmd);
and the prueba.bat is really simple:
@echo off
lejos HelloWorld
'lejos' is an exe file.
If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
Thanks!!

I'm getting a simular problem... did you get it resolved. My coworkers are not having this problem, we are using the same JDK, Weblogic Server version, and same code base. Only difference is I just got a laptop which has windows 2000 Pro Service Pack 3 they are on service pack 2...
Here is the message.
[java] java.io.IOException: CreateProcess: javac -g -nowarn -classpath C:\f
mac\dev\res\modeling\shl\ejbcgen;C:\jdk1.3.1_02\jre\lib\rt.jar;C:\jdk1.3.1_02\jr
e\lib\i18n.jar;C:\jdk1.3.1_02\jre\lib\sunrsasign.jar;C:\jdk1.3.1_02\jre\classes;
C:\fmac\dev\res\modeling\shl;C:\fmac\dev\res\common\lib\dom.jar;C:\fmac\dev\res\
common\lib\F1J7Swing.jar;C:\fmac\dev\res\common\lib\jakarta-poi-1.5.1-final-2002
0615.jar;C:\fmac\dev\res\common\lib\jax-qname.jar;C:\fmac\dev\res\common\lib\jax
b-api.jar;C:\fmac\dev\res\common\lib\jaxb-libs.jar;C:\fmac\dev\res\common\lib\ja
xb-ri.jar;C:\fmac\dev\res\common\lib\jaxb-xjc.jar;C:\fmac\dev\res\common\lib\jax
p-api.jar;C:\fmac\dev\res\common\lib\jconn2.jar;C:\fmac\dev\res\common\lib\junit
.jar;C:\fmac\dev\res\common\lib\log4j-1.2.3.jar;C:\fmac\dev\res\common\lib\log4j
-1.2rc1.jar;C:\fmac\dev\res\common\lib\logkit.jar;C:\fmac\dev\res\common\lib\nam
espace.jar;C:\fmac\dev\res\common\lib\sax.jar;C:\fmac\dev\res\common\lib\struts.
jar;C:\fmac\dev\res\common\lib\xalan.jar;C:\fmac\dev\res\common\lib\xercesImpl.j
ar;C:\fmac\dev\reD
[java] at java.lang.Win32Process.create(Native Method)
[java] at java.lang.Win32Process.<init>(Win32Process.java:66)
[java] at java.lang.Runtime.execInternal(Native Method)
[java] at java.lang.Runtime.exec(Runtime.java:551)
[java] at java.lang.Runtime.exec(Runtime.java:477)
[java] at java.lang.Runtime.exec(Runtime.java:443)
[java] at weblogic.utils.Executable.exec(Executable.java:200)
[java] at weblogic.utils.Executable.exec(Executable.java:125)
[java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:545)
[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:372)
[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:363)
[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:2
45)
[java] at weblogic.ejbc20.runBody(ejbc20.java:360)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.ejbc.main(ejbc.java:21)
[java] Exec failed .. exiting

Similar Messages

  • HELP !...getting ERROR: java.io.IOException: CreateProcess: ... error=3

    I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03 from
    BEA site ). I use its xmlbean.jar and it works fine. I did not use its "scomp"
    utility until today ( I used BEA's on-line compiler and it worked just great ).
    When I tried to use the stand alone "scomp" , I've got into trouble. Here is the
    trace of the error I receive for all schemas including the example schema ( I
    have followed the instructions described in the attached README file for the environment
    configuration) :
    C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar C:\XMLBeanToolkit\xkit\schemas\easypo
    Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
    Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
    Time to build schema type system: 1.297 seconds
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    null
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:67)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
    at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
    at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
    BUILD FAILED
    Please, help me to find what is wrong here !!!
    Thank you,
    - Michael P.
    [README.txt]

    Sorry, folks, the answer was quite simple: the default scomp script has pointed
    to "wrong" location for java.exe. In particular, the scrip has specified compilation
    command like this:
    java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
    while it had to specify path to the java.exe based on JAVA_HOME env. variable
    ( I am saying "had" because README instructions state that the JAVA_HOME has to
    be properly configured ). So, the solution looks like:
    %JAVA_HOME%\bin\java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
    - Michael P.
    "Michael P." <[email protected]> wrote:
    >
    >
    >
    I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03
    from
    BEA site ). I use its xmlbean.jar and it works fine. I did not use its
    "scomp"
    utility until today ( I used BEA's on-line compiler and it worked just
    great ).
    When I tried to use the stand alone "scomp" , I've got into trouble.
    Here is the
    trace of the error I receive for all schemas including the example schema
    ( I
    have followed the instructions described in the attached README file
    for the environment
    configuration) :
    C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar
    C:\XMLBeanToolkit\xkit\schemas\easypo
    Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
    Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
    Time to build schema type system: 1.297 seconds
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    null
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:67)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
    at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
    at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
    BUILD FAILED
    Please, help me to find what is wrong here !!!
    Thank you,
    - Michael P.

  • IOException--CreateProcess!!!!

    Hi every body.
    Does someone know the meaning of this error?
    java.io.IOException: CreateProcess: prueba error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
    p.java:185)....................................
    It's the result of this code:
    cmd="prueba.bat";
    exec(cmd);
    and the prueba.bat is really simple:
    @echo off
    lejos HelloWorld
    'lejos' is an exe file.
    If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
    Thanks!!

    Hi!
    Hi Stevejluke.
    The file 'prueba.bat' is in the current working directory and in the PATH environmental variable and 'prueba.bat' runs from the command line.
    I'm afraid is something wrong with the Runtime.exec method. In fact in this link:
    http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Process.html
    i've found this:
    "The Runtime.exec methods may not work well for special processes on certain native platforms, such as native windowing processes, daemon processes, Win16/DOS processes on Win32, or shell scripts."
    But i'm using j2sdk1.4.1_01, not 1.2. i don't understand very well this information so i don't know how to resolve the problem.
    Thanks very much!!

  • IOException--CreateProcess HELP!!!

    Hi every body.
    Does someone know the meaning of this error?
    java.io.IOException: CreateProcess: prueba error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
    p.java:185)....................................
    It's the result of this code:
    cmd="prueba.bat";
    exec(cmd);
    and the prueba.bat is really simple:
    @echo off
    lejos HelloWorld
    'lejos' is an exe file.
    If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
    Thanks!!

    Hi,
    I'm facing the same problem. The only diference is that I need to execute only 1 command but because I have to execute it in a Network folder (that comes from a database, so it is configurable). I tried to enable the UNC support from the Command Shell of Windows XP but without success.
    Now I'm trying to use the pushd popd commands so that I can execute my command remotely.
    Here is the commands I'm trying to execute (that works with the command):
    pushd \\brserver\transaction && try.bat && popd
    When I execute that in the CMD, it works but with the Runtime.exec, it gives me the IOException error.
    Here is my code:
    String command = "pushd \\brserver\transaction && try.bat && popd";
    Process process - Runtime.getRuntime().exec(command);
    I've also tried that:
    String[] commands = new String[]{"pushd \\brserver\transaction", "try.bat", "popd"};
    Process process - Runtime.getRuntime().exec(commands);
    But without success. If I could only make the UNC works, it would probably resolve my problem.
    Is somebody can help me please?
    Thanks,
    M. Jalbert

  • Java.io.IOException: CreateProcess............

    Hello,
    I got this exception when I ran my build file on Eclipse. If I ran it outside
    Eclipse,
    everything works fine.
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
    The error comes from the following place:
    [xmlbean]      at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    It seems the above method is not getting the correct "java.home", it should get
    jdk/bin/javac.
    Can anyone give a pointer on this?
    thanks,

    Hello,
    I got this exception when I ran my build file on Eclipse. If I ran it outside
    Eclipse,
    everything works fine.
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
    The error comes from the following place:
    [xmlbean]      at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    It seems the above method is not getting the correct "java.home", it should get
    jdk/bin/javac.
    Can anyone give a pointer on this?
    thanks,

  • IOException: CreateProcess: dir error=2

    Hi
    I want to run a simple shell command "dir" on cygwin thru java class. My code is as follows :-
    public class CygJava {
    public static void main (String args[]){
    File workDir = new File("c:/cygwin/bin");
    try {
    Runtime systemShell = Runtime.getRuntime();
    Process shellOutput = systemShell.exec("dir", null, workDir);
    InputStreamReader isr = new InputStreamReader(shellOutput.getInputStream());
    BufferedReader br = new BufferedReader (isr);
    String line = null;
    System.out.println("<OUTPUT>");
    while((line = br.readLine()) != null ) {
    System.out.println(line);
    System.out.println("</OUTPUT>");
    int exitVal = shellOutput.waitFor();
    System.out.println("Process Exit Value : "+exitVal);
    }catch (IOException ioe) {
    System.err.println(ioe);
    } catch (Throwable t) {
    t.printStackTrace();
    On running this program , i get the error as :-
    java.io.IOException: CreateProcess: dir error=2
    Could anyone tell me as to why is this error occuring ?
    Thanks

    I think this might be useful:
    http://forum.java.sun.com/thread.jspa?threadID=416069&tstart=120
    If not I would suggest searching the forum for others

  • Build Failed: java.io.IOException: CreateProcess

    Hi,
    Would someone help me on my problem. I had encountered a "java.io.IOException: CreateProcess" when the ant script was about to execute the lines below:
    <java classname="AllTests" fork="true" failonerror="yes">
         <classpath>
              <path refid="all.classpath" />
              <path refid="emma.coverage.classes" />
              <pathelement location="${emma.instr}" />
              <pathelement location="${classes.temp}" />
         </classpath>
         <jvmarg
              value="-Demma.coverage.out.file=${emma.coverage}/coverage.emma" />
         <jvmarg value="-Demma.coverage.out.merge=true" />
    </java>
    The result and the message was stated below.
    BUILD FAILED
    C:\RAD901\build\emma-build.xml:89: java.io.IOException: CreateProcess: "C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\java\
    jre\bin\java.exe" -Demma.coverage.out.file=C:\RAD901\build/temp/emma/coverage/coverage.emma -Demma.coverage.out.merge=true -classpat
    h "C:\RAD901\build\libs\XmlWriter.jar;C:\RAD901\build\libs\cactus1-6\aspectjrt-1.1.1.jar;C:\RAD901\build\libs\cactus1-6\cactus-1.6.1
    .jar;C:\RAD901\build\libs\cactus1-6\cactus-ant-1.6.1.modified.jar;C:\RAD901\build\libs\cactus1-6\commons-codec-1.3.jar;C:\RAD901\bui
    ld\libs\cactus1-6\commons-httpclient-3.0.1.jar;C:\RAD901\build\libs\cactus1-6\commons-logging-1.0.3.jar;C:\RAD901\build\libs\cactus1
    -6\httpunit-1.5.4.jar;C:\RAD901\build\libs\cactus1-6\nekohtml-0.7.4.jar;C:\RAD901\build\libs\catalina.jar;C:\RAD901\build\libs\com-d
    arwinsys-util.jar;C:\RAD901\build\libs\commons-pool-1.4.jar;C:\RAD901\build\libs\db2jcc.jar;C:\RAD901\build\libs\db2jcc_license_cu.j
    ar;C:\RAD901\build\libs\emma.jar;C:\RAD901\build\libs\hapi-0.5.1.jar;C:\RAD901\build\libs\jboss-common.jar;C:\RAD901\build\libs\jstl
    -1.0.jar;C:\RAD901\buil
    The result was incomplete. I don't know why, but I would like to know the cause of my exception. I hope somebody could help me.
    Thank you so much in advance.

    Hello all,
    I'm having almost the same issue related to error message when I hit a button on my manufacturing software.
    *"ScriptException: Error in exec: java.io.IOException: CreateProcess*
    *exec(C:\\progra~1\\intern~1\\iexplore.exe http://cbweb4:81/barcode/CMbombyorder.asp\u003FR2=P&T2=12875424-P")*
    This is when I hit a button that works for us to show this webpage I wrote previously. Last week we didnt have this issue, this just started this morning and I dont know what do to, it shows something about JAVA, that's why I'm asking to you guys, I dont know if you could please enlight me a little bit.
    Thanks in advance.

  • Runtime exec createProcess error

    Seeveral monts ago I get this piece of code on ee
    It gets hard disk numer via cmd.exe
    that works fine on xp but on 98 dont because there is no cmd.exe :)
    My coworker make little exe fajl (hdid.exe) which return id number and it works fine too on xp but on 98 that piece of code throws io exception
    Here is the function I use for it
    (lines under comments are lines that I have used before new hdid.exe )
    public String getKey(){
    try {
    System.out.println("check gk 0 ");
    String[] args = new String[] { KlijentPutanje.getRoot()+"/hdid.exe" };
    //String[] args = new String[] { "cmd.exe",  "/c",  "dir", "|",  "find", "/i",  "Serial Number is" };
    Process pro = Runtime.getRuntime().exec(args);
    InputStream error = pro.getErrorStream();
    InputStream output = pro.getInputStream();
    collector = new StringBuffer();
    ProcessStreamReader collectingReader = new ProcessStreamReader(output);
    Thread out = new Thread(collectingReader);
    out.start();
    out.join();
    String volumeNumber = collector.toString();
    //volumeNumber = volumeNumber.substring(volumeNumber.lastIndexOf(' '));
    volumeNumber = volumeNumber.trim();
    return volumeNumber;
    catch (Exception e){
    System.out.println("greska prilikom provere registracije - code 169");
    e.printStackTrace();
    return null;
    Here is the exception that this line throws
    greska prilikom provere registracije - code 169
    java.io.IOException: CreateProcess:
    /Grom/dev/pilot/1.0-radna/Ekspert/EkspertData/hdid.exe error=0
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at com.propisi.util.Reg.getKey(Reg.java:280)
    at com.propisi.util.Reg.execute(Reg.java:73)
    at com.propisi.SearchEngine.getSearchEngine(SearchEngine.java:130)
    at com.propisi.forme.AppletPretraga.loadReg(AppletPretraga.java:574)
    at com.propisi.forme.AppletPretraga.jbInit(AppletPretraga.java:235)
    at com.propisi.forme.AppletPretraga.init(AppletPretraga.java:167)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Can you help me 2 get hard disk number on windows98 too (with this hdid.exe pr maybe some other way)
    tia cubrovic

    That does look like a problem with you coworker's native code, not like a Java problem.

  • IOException error=87

    Hey you all,
    I got this strange error, when running a binary out of my java program (via the Process class), my Program crashes and I get:
    java.io.IOEXception: CreateProcess: ....exe error: 87
    java.io.IOException: CreateProcess: ....exe error: 87
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    The ....exe 's are the path to the executable plus two command line parameters. I don't seem to find a list of those error codes. I think, 2 was file not found, but 87 ????
    Any help would be appreciated.
    B.

    I didn't know either, so I went to Google and gave it the keywords "Dos error 87", and it had several places that told me it means "Invalid parameter".

  • IOException because of getRuntime().exec

    I am trying:
    line 29: String[] execArg = new String[] {"D:\\", "dir"};
    line 30: Process p = Runtime.getRuntime().exec(execArg);
    and getting:
    java.io.IOException: CreateProcess: D:\ dir error=3
         at java.lang.Win32Process.create(Native Method)
         at java.lang.Win32Process.<init>(Win32Process.java:67)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Runtime.java:566)
         at java.lang.Runtime.exec(Runtime.java:428)
         at java.lang.Runtime.exec(Runtime.java:364)
         at java.lang.Runtime.exec(Runtime.java:326)
         at PurseMain.main(PurseMain.java:30)
    Have no idea why.

    ok, i tried
    Runtime.getRuntime().exec("cmd");
    and this works. but really, i want to open up a cmd window from java and execute some commands from that. how can this be achieved?

  • Help:  java.io.IOException

              I am running WL 6.1 SP1 with JDK 1.3.1. I get an IOException
              each time I try to run a basic login jsp. The jsp worked fine,
              then stopped working. Not sure if something was changed in the
              weblogic or environmental conditions to cause this. Other jsp's
              work fine. I've stopped, started, rebooted a number of times,
              with no luck.
              Anyone provide some insight? I am thinking something is screwed upwith my CLASSPATH
              somewhere.
              (I am new to this stuff, so take it easy on me if the problem is obvious!)
              I have checked:
              JAVA_HOME =C:\weblogic\jdk131
              WL_HOME =C:\weblogic
              PATH =%WL_HOME%\bin;%JAVA_HOME%\bin;%PATH%
              CLASSPATH =%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%CLASSPATH%
              Compilation f 'C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java'
              failed:
              C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java
              error=2
              Full compiler error(s):
              java.io.IOException: CreateProcess: javac -classpath
              C:\weblogic\config\mydomain\applications\DefaultWebApp;C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp;C:\weblogic\jdk131\jre\lib\rt.jar;C:\weblogic\jdk131\jre\lib\i18n.jar;C:\weblogic\jdk131\jre\lib\sunrsasign.jar;C:\weblogic\jdk131\jre\classes;.;C:\weblogic\lib\weblogic_sp.jar;C:\weblogic\lib\weblogic.jar
              -d C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp
              C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java
              error=2
                   at java.lang.Win32Process.create(Native Method)
                   at java.lang.Win32Process.<init>(Win32Process.java:66)
                   at java.lang.Runtime.execInternal(Native Method)
                   at java.lang.Runtime.exec(Runtime.java:551)
                   at java.lang.Runtime.exec(Runtime.java:477)
                   at java.lang.Runtime.exec(Runtime.java:443)
                   at weblogic.utils.Executable.exec(Executable.java:200)
                   at weblogic.utils.Executable.exec(Executable.java:125)
                   at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)
                   at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:382)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              It's not a problem with your classpath.
              I would guess that it can't find javac in your %PATH% - your PATH looks ok.
              Mike
              "Aubrey" <[email protected]> wrote:
              >
              >I am running WL 6.1 SP1 with JDK 1.3.1. I get an IOException
              > each time I try to run a basic login jsp. The jsp worked fine,
              >then stopped working. Not sure if something was changed in the
              >weblogic or environmental conditions to cause this. Other jsp's
              >work fine. I've stopped, started, rebooted a number of times,
              >with no luck.
              >Anyone provide some insight? I am thinking something is screwed upwith
              >my CLASSPATH
              >somewhere.
              >(I am new to this stuff, so take it easy on me if the problem is obvious!)
              >
              >I have checked:
              >
              >JAVA_HOME =C:\weblogic\jdk131
              >WL_HOME =C:\weblogic
              >PATH =%WL_HOME%\bin;%JAVA_HOME%\bin;%PATH%
              >CLASSPATH =%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%CLASSPATH%
              >
              >
              >Compilation f 'C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java'
              >failed:
              >--------------------------------------------------------------------------------
              > C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java
              >error=2
              >--------------------------------------------------------------------------------
              >Full compiler error(s):
              >java.io.IOException: CreateProcess: javac -classpath
              >C:\weblogic\config\mydomain\applications\DefaultWebApp;C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp;C:\weblogic\jdk131\jre\lib\rt.jar;C:\weblogic\jdk131\jre\lib\i18n.jar;C:\weblogic\jdk131\jre\lib\sunrsasign.jar;C:\weblogic\jdk131\jre\classes;.;C:\weblogic\lib\weblogic_sp.jar;C:\weblogic\lib\weblogic.jar
              >-d C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp
              >C:\weblogic\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\_myjsps\__login.java
              >error=2
              >     at java.lang.Win32Process.create(Native Method)
              >     at java.lang.Win32Process.<init>(Win32Process.java:66)
              >     at java.lang.Runtime.execInternal(Native Method)
              >     at java.lang.Runtime.exec(Runtime.java:551)
              >     at java.lang.Runtime.exec(Runtime.java:477)
              >     at java.lang.Runtime.exec(Runtime.java:443)
              >     at weblogic.utils.Executable.exec(Executable.java:200)
              >     at weblogic.utils.Executable.exec(Executable.java:125)
              >     at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)
              >     at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
              >     at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:382)
              >     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              >     at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
              >     at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              >     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
              >     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
              >     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • IOException error=193

              for(int i=0;i<2;i++){
                   if(!r.exists()){
                        PrintWriter out=new PrintWriter(new FileWriter(reg));
                        out.println("[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run]");
                        out.println("\"enaoroc\"=\""+home+"\\enaoroc.bat\"");
                        out.close();
                   else{
                        // Runs the reg file required to start the program
                        Runtime rt=Runtime.getRuntime();
                        reg=reg+" /s";
                          Process p=rt.exec(reg);
              }When I run the code, it always returns an error of:
    Exception in thread "main" java.io.IOException: CreateProcess: C:\Documents and
    Settings\Administrator\CCRecords\coroane.reg /s error=193
            at java.lang.Win32Process.create(Native Method)
            at java.lang.Win32Process.<init>(Win32Process.java:66)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at java.lang.Runtime.exec(Runtime.java:364)
            at java.lang.Runtime.exec(Runtime.java:326)
            at Shutdown.main(Shutdown.java:25)Does anyone know what error 193 is or/and how to fix it?

    CreateProcess: C:\Documents and
    Settings\Administrator\CCRecords\coroane.reg /s
    error=193What makes you think coroane.reg is an executable process? Probably because you can type it on the command line... but that just means the command processor can figure out that you actually want to run the associated process, which in this case would be something like regedit.exe. You need to either explicitly invoke the real executable (regedit.exe), or let the command-processor do it for you by running cmd.exe /C (path)\coroane.reg

  • Java.lang.Win32Process error

    I'm trying to execute Windows Command Shell commands (e.g. chdir, rmdir) with the following statement:
    proc = Runtime.getRuntime().exec( cmd ); where _cmd is a command like: chdir /d e:\temp
    This works for applications (e.g. ss.exe - Visual SourceSafe command line interface), but does not work for Windows Shell commands as mentioned above. I get an exception back:
    Exception in thread "main" java.io.IOException: CreateProcess: CHDIR /d e:\tmp error=
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at AppRunner.run(AppRunner.java:114)
    at play.main(play.java:46)
    I'm relatively new to Java programming. It doesn't look like the Runtime.exec is sending the CHDIR command in a way that Windows (2000 Professional in this case) thinks it is a Windows command (vs. an application cmd line). I would guess this is a problem that has been encountered before.
    Thanks in advance for your help....

    Try this link:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Weblogic 9.2 MP3 giving error on startup : java.io.IOException: CreateProce

    Hi,
    I upgraded my server from weblogic 9.2 MP1 to MP3 and I get this error during weblogic startup. I have JDK150_12 in the classpath. What could be causing this error?
    java.io.IOException: Compiler failed executable.exec: java.io.IOException: CreateProcess: C:\bea9\jdk150_12\bin\javac -sourcepath /dev/null -nowarn -classpath C:\bea9\jdk150_12\jre\lib\rt.jar;C:\bea9\jdk150_12\jre\lib\i18n.jar;C:\bea9\jdk150_12\jre\lib\sunrsasign.jar;C:\bea9\jdk150_12\jre\lib\jsse.jar;C:\bea9\jdk150_12\jre\lib\jce.jar;C:\bea9\jdk150_12\jre\lib\charsets.jar;C:\bea9\jdk150_12\jre\classes;C:\bea9\weblogic92\server\lib\CR315579_92mp1.jar;C:\bea9\jdk150_12\lib\tools.jar;C:\bea9\weblogic92\server\lib\weblogic.jar;C:\bea9\weblogic92\common\lib\apache_xbean.jar;C:\bea9\weblogic92\server\lib\schema\weblogic-container-binding.jar;C:\bea9\weblogic92\server\lib\schema\weblogic-domain-binding.jar;C:\bea9\weblogic92\server\lib\schema\diagnostics-binding.jar;C:\bea9\weblogic92\server\lib\schema\diagnostics-image-binding.jar;C:\bea9\weblogic92\server\lib\wlcipher.jar;C:\bea9\weblogic92\server\lib\jsafe.jar;C:\bea9\weblogic92\server\lib\xmlx.jar;C:\bea9\weblogic92\server\lib\ojdbc14.jar;C:\bea9\weblogic92\server\lib\jconn2.jar;C:\bea9\weblogic92\server\lib\jconn3.jar;C:\bea9\weblogi”
    at java.lang.ProcessImpl.create(Native Method)
    Thanks.
    Edited by: user10387019 on Aug 5, 2009 11:02 AM

    Hi All,
    I am still searching for a solution for this issue. I have this problem on three different machines that I tried installing weblogic server 9.2.3. I am now stuck till I find a solution. Weblogic 9.2.1 works and once I upgrade to MP3, I get the error.
    Thanks.

  • PROBLEM:IOException starting Java runtime process

    Hi all,
    I am new to java and I have the following problem: I have created an applictaion using jbuilder (windows xp) that consists of various frames.
    The application was compling and running at the PC I used to create it . Now, I am using a new PC with 2 processors (intel Pentium (D) 3.6) and I get the following error when trying to run the already developed application. Also, I tried to build a new application and I still get the same error.
    I would be very greatful for your comments/suggestions..
    Thanks in advance
    artakianos
    -- IOException starting Java runtime process --
    java.io.IOException: CreateProcess: "C:\Program Files\Borland\Jbuilder\jdk1.4\bin\javaw" -classpath "C:\Documents and Settings\sstathak\jbproject\MCTOOLS\classes\mctools;C:\Borland\JBuilder2005\lib\jbcl.jar;C:\Borland\JBuilder2005\lib\dx.jar;C:\Borland\JBuilder2005\lib\beandt.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\javaws\javaws.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\charsets.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\ext\dnsns.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\ext\ldapsec.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\ext\localedata.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\im\indicim.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\im\thaiim.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\jce.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\jsse.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\plugin.jar;C:\Program Files\Borland\Jbuilder\jdk1.4\jre\lib\rt.jar;C:\Program F&#148;

    Maybe your classpath is wrong. You can go to the path where is the instalation and into the directory bin you must `type javac or javaws if you obtain a list of options every is ok and you must set the enviroment variable to this path.
    Send me your comments
    Miguel Manzano

Maybe you are looking for

  • Report on purchase order apprval process

    Hi friends, Is there any standard report that shows the list of purchase orders that are pending for approval and also the the approver name with whom the PO is pending? Your immediate reply is woth appreciating. Thanks in advance. Raghu

  • Mail attachments won't save - saying folders are Read Only

    Every time I try save an attachement, mail pops up saying this location is read-only, Any help?

  • Forms Migration Assistant installation problem

    Hi, I'm trying to install Forms Migration Assistant on linux to convert forms 6i apps to forms 9i. But when i try to install FMA downloaded from here the installer says that the Oracle Home does not have Oracle Forms 9i installed altough it was shown

  • I have two macs, do I need to buy lion for both?

    I have the Macbook Pro and tha iMac at home and yesterday I upgraded my macbook with Lion. My question now is if have to pay again to upgrade my iMac? Thanks

  • What is the right way to write portable EJB3.0 clients?

    We have lots of EJBs deployed in the 2.0 format. And all these are accessible from external standalone JVM clients. And portable. We deploy the EJBs on Weblogic and WebSphere. And currently we are trying to port some of the EJBs over to 3.0 format. P