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”

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

Similar Messages

  • IOException starting Java runtime process

    Whenever i run a program, i get this error
    -- IOException starting Java runtime process --
    java.io.IOException: CreateProcess: D:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "E:\Documents and Settings\Administrator\jbproject\SwingApplication\classes;D:\Borland\JBuilder2005\jdk1.4\jre\lib\im\indicim.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\im\thaiim.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\dnsns.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\sunjce_provider.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\ldapsec.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\localedata.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\jsse.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\plugin.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\sunrsasign.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\charsets.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\rt.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\jce.jar;D:\Borland\JBuilder2005\jdk1.4\jre\javaws\javaws.jar;D:\Borland\JBuilder2005\jdk1.4\lib\tools.jar;D:\Borland\JBuilder2005\jdk1.4\lib\dt.jar;D:\Borland\JBuilder2005\jdk1.4\lib\htmlconverter.jar" swingapplication.SwingApplication error=3
    I use JBuilder , if this error is related to classpath, how do i set path? please help me

    Can javaw.exe be found at that location?
    - Saish

  • Problem in Starting a GP Process from Webdynpro Code

    Hi Experts
    I have a problem in starting a GP Process from webdynpro code. I have imported the following used DCs in my Webdynpro DC
    caf/eu/gp/api/wd
    caf/eu/gp/api (external)
    com.sap.security.api.sda
    Once I deploy I get the following error. No Syntax, Build errors in the application.
    java.lang.NoClassDefFoundError: com/sap/caf/eu/gp/process/rt/api/IGPRuntimeManager
    I have used the following code to start the GP Process - getUserDetails Context is of type IUser
              //Starting GP Process
    try {
    IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
    IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(
         wdContext.currentContextElement().getUserDetails());
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                        "00A897714C5A11DE8E33005056A260C3", userContext);
    IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
    IGPProcessInstance prInstance = rtm.startProcess(process,
                        "New User Registration Process",
                        "New User Registration Process",
                        wdContext.currentContextElement().getUserDetails(),
                        roles,
                        params,
                        wdContext.currentContextElement().getUserDetails());
    } catch (Exception e) {
         e.printStackTrace();
    Please do the needful EXPERTS.
    FYI... SP17
    Thank you
    Best Regards
    Ramamoorthy D

    Hi Ram,
    You have to add Library reference to your DC.
    in the context menu of your DC select
    properties->webdynproReferences->LibraryReference
    add sap.com/cafeugp~api as refernce.
    I hope this will solve your problem.
    Regards,
    Rajesh

  • Problem with starting a sqlplus-process via java.lang.Process

    Hi,
    I want to start a sqlplus-Process from a java-application via java.lang.Process. Works great with XP. On a W2K-Machine, the process is started (I can see it in the Taskmanager), but it doesn't connect to the db - the OS-process hangs, also the java-application which invoked the process.
    If I start a sqlplusw.exe-Process instead of sqlplus.exe, it works as well.
    Does anybody know what's going wrong ?
    I'm using java 1.5.0_11 and Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance
    Jens

    java.lang.Process can be used to perform an OS Shell to launch specific tasks. But why are you interested in specifically launching sqlplus from here?
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Problem with starting Java IDL HelloClient example

    I have no problems when starting orbd and HelloServer on one Windows machine and HelloClient on other Windows machine. But if I start orbd and HelloServer on linux machine I face the problem: HelloClient doesn't want to start. Here is the stacktrace:
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
         at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:172)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:211)
         at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
         at org.omg.CosNaming.NamingContextExtHelper.narrow(NamingContextExtHelper.java:73)
         at HelloClient.main(HelloClient.java:21)
    Caused by: java.net.ConnectException: Connection refused: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
         at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
         at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
         ... 9 moreand more:
    04.12.2006 11:43:26 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 1049"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
         at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:211)
         at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
         at org.omg.CosNaming.NamingContextExtHelper.narrow(NamingContextExtHelper.java:73)
         at HelloClient.main(HelloClient.java:21)
    Caused by: java.net.ConnectException: Connection refused: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
         at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
         at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
         ... 8 more
    04.12.2006 11:43:27 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 2090"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
         at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:172)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:211)
         at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
         at org.omg.CosNaming.NamingContextExtHelper.narrow(NamingContextExtHelper.java:73)
         at HelloClient.main(HelloClient.java:21)
    Caused by: java.net.ConnectException: Connection refused: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
         at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
         at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:188)
         ... 9 moreAre there common and well-known reasons of this problem? Can anyone help me, please?

    The Linux server is bound to the loopback device instead of the network interface. Try one of the following:
    1. Set the ORB's com.sun.CORBA.ORBServerHost Property to the hostname or IP address of the network interface on the Linux machine.
    2. Modify the 'etc/hosts' file on the Linux machine to make sure that the first entry contains the hostname and IP address of the network interface.
    Regards,
    Miran

  • I have problem with installing Java Runtime Enviroment. It does not install it properly in Windows 7

    I'm asking for installing Java Runtime Enviroment. I install, but it does not work. I'm asked to install it evry time I am using Panasonic web camera with microfone and speaker program?

    I'm going to answer my own question in hopes it helps someone else. I had the problem immediately after I had installed PS CC.  Once I restarted the computer and tried again, it worked.  

  • Problem while starting Java DB

    when i tried the following command to start java db then exception in thread main occurs please tell me the solution
    C:\Program Files\Sun\JavaES5\DSEE\ds6\bin>java -Dderby.system.home="C:\Program F
    iles\Sun\JavaES5\portal\data\derby" org.apache.derby.drda.N
    etworkServerControl start
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/drda
    /NetworkServerControl

    Hi,
    do you have derby.jar, derbytools.jar, and derbynet.jar in your classpath?
    http://docs.sun.com/app/docs/doc/819-5025/6n74td5ji?a=view
    Cato

  • Java Runtime process, comunication with C in Linux

    Hi guys,
    I have a project with Java GUI and C database. Basically, I need to communicate C in Java through RunTime.exec(String[] s), which returns a Process. From the Process, I can get input and output stream. My question is since Java is using unicode, I wonder if it might be a problem for the C to read the input.
    Since this is the first time I do it, any hints or help about Process in Linux is appreciated.

    I once wrote a program that used sockets between Java and C, and it worked fine. I didn't even think about different encodings (lucky it worked I guess :)

  • Problem in starting java web server 2.0

    I have java webserver2.0. When i tried to start it manually by typing httpd command on command line.It gives me some error of memory(some hexa codes and the message "could not 'write' & some hexa codes again"). Then i tried to start it by givig jservsvc.exe which gave same problem. This problem persists on both o.s Win 2000 and win 98.
    Please help me on that.
    Thank You

    i dont know that this will work but try it
    search "httpd.exe" or bat file in ur javweserver2.0 folder
    and direclty double click it
    or check wether its already running as a service

  • Talk to Java Runtime Process.getOutputStream()

    Hi Experts,
    Good day. I just want to ask I'm actually having this problem. I'm trying to talk to the outputstream and submit a message to telnet but it seems to be that it's not accepting my message.
    private void sendMessage(String message) {
              try {
                   runtime = Runtime.getRuntime();
                   process = runtime.exec("telnet computer_name 9800");
                   System.out.println(process.getOutputStream());
                   PrintWriter pw = new PrintWriter(process.getOutputStream());
                   pw.println(message);
                   BufferedReader in1 = new BufferedReader(new InputStreamReader(process.getInputStream()));
                   BufferedReader in2 = new BufferedReader(new InputStreamReader(process.getErrorStream()));
                   boolean error = false;
                   String data;
                   StringBuffer inputStream = new StringBuffer();
                   while ((data = in1.readLine()) != null) {
                        error = true;
                        System.out.println(data);
                        inputStream.append(data + "\n");
                   } while ((data = in2.readLine()) != null) {
                        error = true;
                        System.out.println(data);
                        inputStream.append(data);
                        inputStream.append("\n");
                   in1.close();
                   in2.close();
                   pw.flush();
                   pw.close();
              } catch(Exception e) {
                   e.printStackTrace();
    }For the record I have my server running using the correct port number assigned above. If I access the server manually in command prompt, submitting a message is working, however my code does not.
    Edited by: The_Developer on May 9, 2008 8:17 AM

    The_Developer wrote:
    Mine is GUI application and not a command console application, part of it has thread specially reading through the input stream what I have written here is a small version only and I don't need to actually copy the whole code from the site just to understand it :)
    Edited by: The_Developer on May 9, 2008 8:44 AMAlso, there is a further problem then since the OS stdout stream has a 4K (ish) buffer and you will not see any output until the process closes OR until the buffer fills OR the process calls flush().

  • IOException starting process?

    Hi,
    I am using JBuilder7,when I run a program,there is a IOException as the following:
    -- IOException starting Java runtime process --
    java.io.IOException: CreateProcess: C:\j2sdk\bin\javaw -classpath "a.jar;b.jar" test error=193
    please help me,thanks.

    Thanks for your help.I find other javaw file in the 'c:\j2sdk\bin'.I delete it,OK now!:)

  • Start unix  & windows process as root

    Hello,
    i've a problem with starting a unix process as root in java. I tried Runtime.getRuntime().exec(cmd) where cmd is "su -c /sbin/ifconfig" but i cannot link to input stream af this process to enter password beacuse it says that only by tty is allowed. What can i do? I've the same problem in windows Xp. I would start administrative tools as netsh.
    I hope you will reply soon because i don't know what to do.
    Thanks to all

    my situation is:
    - i'm running a java application as a normal user;
    - in unix, i've to modify system files (/etc/sysconfig/network-scripts/*) from the java application, so i've to gain root access. the su command doesn't work and the sudo command requires a file, configured by the root, with the user allowed to run that command and i'm not sure that on all system the user that's running this program is in this list. so what can i do?
    - in windows i've the same problem; but in windows i have to run netsh as administrator. What can i do?
    Thanks

  • Java.lang.Process output stream problem

    Hi, I have a program that starts a process (java.lang.Process) using the java.lang.Runtime.exec() and it attemtps to interface with it using the provieded io streams. I have both the output and error streams being handled on their own threads and I have a hashmap of output lines/command pairs that are checked so that when the process outputs certain lines to the console it feed the proper input into the process. My problem is that when I feed the input into the process it dosen't respond to it almost like the user hasn't pressed enter, The process hangs. I have tried using /n /r and permutations thereof but nothing works. The thread does read the lines from the process and does output to the process from what i can gather. Can you help me!
    here is some of the code..
    public void run() {
    try {
         //the process's output
         InputStreamReader isrOutput = new InputStreamReader(inOutput);
         //the process's input(our output)
         PrintWriter pw = new PrintWriter(outInput);
         String line = null;
         while(true){
              if(brOutput.ready()){
                   line = "";
                   while(brOutput.ready())
         line+=(char)brOutput.read();
                   System.out.print(line);
                   if(commands.containsKey(line)){
         pw.println((String)commands.get(line));
         System.out.println((String)commands.get(line));;
    } catch (IOException ioe) {
              ioe.printStackTrace();
    }Thanks

    Oops.. i forgot to flush my PrintWriter /blushing......... Thanks

  • Starting of external processes with Runtime.exec() properly

    hi people,
    you find a lot about starting external processes with the Runtime class in every forum.
    -> that the stdout of the started processes has to be redirected and read
    due to os buffer problems
    -> that calling batches is done by starting the interpreter and the batch as parameter (cmd.exe, /bin/sh,..)
    -> that the created process doesn't have an os environment
    -> ...
    but what if you don't know anything about the started process.
    what if you only want only to start an external process. if you don't want to wait til waitfor() returns and if you don't read the streams of the created processes, the os stdout buffer will overflow immediately an the started process will be blocked.
    you can read the stdout of the started process, but what if the process does print nothing to stdout, and your bufferreader.readLine() will block ?
    you can do this (read buffer, waitFor()) in an separate thread, but the thread lives til the started process will finish, so maybe you got dozens of senseless thread ?
    So, what is an effective and good way to start external programs/processes if you don't know about them.
    so i would be grateful for an answer
    regards
    Alen

    http://forum.java.sun.com/thread.jspa?threadID=659862&tstart=0
    The first four might pass as accidents, but this one is simply idiocy, spamming and general bad manners.

  • Java runtime 6 (crazy) install problem - OS X 10.7.5

    Hello everyone,
    I have been reading the various threads on this issue, but found no answer to my problem:
    I am under Lion version 10.7.5 - MacBookPro
    I need Java 6 for a program I use for my work.
    When I want to install from Java Preferences, i get the following message:
    "To open “Java Preferences,” you need to install a Java SE 6 runtime, but you are not connected to the Internet." But I AM connected to the internet.
    Accroding to waht I read, I went to the Apple download files and downloaded JavaForOSX.dmg file...
    But when I want to install it, I get the message:
    "Alert: A newer version of this package is already installed."
    When I run terminal java -version
    The answer is "No Java runtime present, requesting install."
    And thus I am back to where I started...
    If you could help that would be incredibly helpful!
    Thanks
    Helene

    MadMAC0 posted at https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182 that:
    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

Maybe you are looking for

  • Fix "lightroom encountered an error when reading from its preview cache and needs to quit" once and for all!!

    I am at the point where I get this almost every time I start up Lightroom (5.7) Standalone. I know how to fix it (delete .Irdata file) but how do I stop it for good?

  • Using referenced files in Aperture and changing names of Master files

    My Aperture library (masters) are stored on an external hard drive. The label for each image is simply the one that the camera supplied on the SD card. After importing the images into Aperture, I give them a more meaningful version name. Is there a w

  • Database Recovery Urgent

    Dear All I have take (Oracle 10.2.0) complete backup using RMAN, Now i lost media (HardDisk) and cannot recover existing database. Please guide me how i can register and recover database on new server using two days old full RMAN backup. Backup on DV

  • Prepare to export ABAP

    Hi ALL Now i try to prepare to export ABAP useing SAPinst,but it's a error we paltform: ECC6 SR3 with EPH3 Oracle 10.2.0.4 HP-UX 11i 31 TRACE      2010-10-14 17:29:31.630 Function setMessageIdOfExceptionMessage: nw.processError ERROR      2010-10-14

  • Item category group of a product

    hi experts.. is thier any function module or table which will return item category group of a product.. where my input is product guid or product id. thnks in advance sam