ProcessBuilder - no response - JAVA_HOME - different JREs

Hello All,
An application uses ProcessBuilder to execute system commands.
Locally is working fine with JRE 1.6.
But it must be runned on a remote machine(no rights to change any settings), which has the JAVA_HOME pointing to a JRE 1.4 instalation folder (if this is relevant).
Running the application on this machine it stops when trying to run the system command with ProcessBuilder (Note: The application works only with java 1.6).
Any ideea what can be the problem?
Many Thanks,
Bogdan

I didn't think ProcessBuilder was available in 1.4. You will have to use Runtime.exec().
P.S. There are many other things that can go wrong with ProcessBuilder/Rutime.exec() unless you implement the recommendations in the four sections of http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Similar Messages

  • How can I switch different JRE in one PC

    I am sorry to post it in this forum because I post almost the same in JRE forum but I don't get any help there for 2 days.
    My problem is that I have two systems to be used in different JRE enviroment.A system can only run in JRE 1.3 and B system can only run in JRE 1.5 enviroment.But I have to run both in one desktop(which use WinXP SP2),how can I do it . I tried some methods like below:
    Method 1:
    I Edited the registry using the cmd of regedit , edited some like these.But it did not work .
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin\CLSID]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]CurrentVersion="1.X"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] CurrentVersion="1.X"
    Method 2:This method is post in http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java as belows:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried this method but it did not work either.
    By the way , the method I use to check whether the switch of JRE versions is work correctly is this :
    1.Create a html file which contains OBJECT tag
    2.Double click the html file and then check the information in the java console in the window's taskbar.
    3.What the java console says is the JRE version I am using now
    Is this check method right?
    I found that many people confronted the same problem like me but they resolved it by the method of changing control panel, so I am doubt about the check method.
    Can anybody give me some help?
    Thanks a lot in advantage.

    Some additional information:
    I tried the method of changing control panel by JRE1.3's control panel to change current JRE enviroment to JRE1.3 (see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java), and I found that in the IE->Tool->Intenet Option->Detail Setting Panel the JRE version used in IE had been changed to JRE1.3 really.But when I connect System A(which use JRE1.3) use IE,the started java console is still JRE1.5 and some applets can't run in the enviroment.

  • Help:The way to switch different JRE enviroment in the same desktop??

    I am sorry to post it in this forum because I post almost the same in JRE forum but I don't get any help there for 2 days.
    My problem is that I have two systems to be used in different JRE enviroment.A system can only run in JRE 1.3 and B system can only run in JRE 1.5 enviroment.But I have to run both in one desktop(which use WinXP SP2),how can I do it . I tried some methods like below:
    Method 1:
    I Edited the registry using the cmd of regedit , edited some like these.But it did not work .
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin\CLSID]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]CurrentVersion="1.X"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] CurrentVersion="1.X"
    Method 2:This method is post in http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java as belows:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried this method but it did not work either.
    By the way , the method I use to check whether the switch of JRE versions is work correctly is this :
    1.Create a html file which contains OBJECT tag
    2.Double click the html file and then check the information in the java console in the window's taskbar.
    3.What the java console says is the JRE version I am using now
    Is this check method right?
    I found that many people confronted the same problem like me but they resolved it by the method of changing control panel, so I am doubt about the check method.
    Can anybody give me some help?
    Thanks a lot in advantage.

    Some additional information:
    I tried the method of changing control panel by JRE1.3's control panel to change current JRE enviroment to JRE1.3 (see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java), and I found that in the IE->Tool->Intenet Option->Detail Setting Panel the JRE version used in IE had been changed to JRE1.3 really.But when I connect System A(which use JRE1.3) use IE,the started java console is still JRE1.5 and some applets can't run in the enviroment.

  • Use different JRE versions in Oracle Discoverer 10g(10.1.2.0)

    Hello.
    We have a Oracle Forms application which also uses Discoverer Plus and Reports.
    Problem is we have some user clients who uses XP/IE 6.0 while otheres has Vista IE 8.0.
    Based on here
    http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BABGCBHA
    depending on OS/browser different plugin versions are required. If we
    Can we have different JRE versions in separate clients? Kinda confused with the matrix.

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • Running different JRE on the same system to measure JRE Performance

    Hey there,
    I want to run several java benchmarks on different runtime environments on the same system.
    Now, I need to know what I have to consider that those machines do not affect each other?
    What do I need to consider while installing those different runtime environments.
    How do I have to set the classpath, etc. - I guess it shouldn't be set...
    Are there any files in the operating system that could affect the different JRE versions, such as java.exe and javaw.exe in the Windows NT System directory? What do I have to do with those files?
    And which would be the proper steps to reach a meaningful result?!
    Right now I am using Windows NT, but I will also try to run some tests on Linux! So, I am open for any kind of help!
    Thanks,
    Marc

    Hi Marc,
    Have you considered installing one JRE at a time and running your benchmarks? Before installing the next JRE, uninstall
    the existing JRE. Thus eliminating any possibility of
    overwriting/corrupting any of the Windows NT System
    directories or registry settings.
    -Sun DTS

  • Livecycle Designer 8 - Is it possible to have button to clear fields after user has clicked submit by email button so user can reuse form to send another response with different answers?

    Users will use form to fill in stats for enquiries so they want to keep form open, complete a form, click button to submit by email, then click another button to clear form, form now ready to accept form's responses.  They dont' want to keep opening form each time form needs to be completed.
    Hope you help.
    Thanks Sandra

    Hi,
    Thanks for your response, not sure what you mean by a loop.  I put together
    a draft form to show staff in our Knowledge Centre the sort of thing
    Livecycle Designer can do.
    (See attached file: Library  Request  Form_pub_0001.pdf)
    They are currently writing out on form and manually putting into excel to
    keep stats on the requests.
    Due to current Global Financial Crisis my section does not want to spend
    extra money at the moment seeking assistance from our tech heads.  So we
    are looking for least work no expense option for keeping stats.  I am a PA
    who just happens to have Livecycle program on my computer.
    We use Lotus Notes so I thought the staff could save copy of Library
    request form in the stationery folder.  The staff using the form want to be
    able to do the following:
    1. open the Library request form at the beginning of the day;
    2. when a request comes in, complete the form and click on Send by email
    button
    3. click on a Clear Data button to clear all data from all fields so the
    form is open ready for when the next request comes in.
    Staff are time poor and, as this is only one of their numerous duties, they
    don't want to keep going to a location and opening a file which can be very
    slow on some days
    Each day form may be filled out by approximately 15 staff who may receive
    anything from 0 - 4 requests a day.
    I am not a tech head so script writing is a deep, dark mystery.  Can you
    help using the form above as an example for achieving step 3 above.
    Thanks,
    Sandra Smith
    Personal Assistant
    PricewaterhouseCoopers Australia
    Office: ++61 (2) 8266 9069
    Fax: ++61 (2) 8286 9069
    [email protected]
    http://www.pwc.com/au
                                                                                    Kacyndra                                                 
                 <[email protected]                                        
                 >                                                          To
                                           Sandra K Smith/AU/TLS/PwC@AsiaPac
                 08/08/2009 12:25                                           cc
                 AM                                                                               
    Subject
                                           Livecycle 
                 Please respond to         Designer 8 - Is it possible to have
                 clearspace-200985         button to clear fields after user
                 0098-481178-2-216         has clicked submit by email button
                 [email protected].         so user can reuse form to send 
                     adobe.com             another response with different
                                           answers?                                                                               
    if i understand this correctly, you just want everything cleared whena
    buttons is pressed?
    you can either do it individually:
    on button click:
    mytextField.rawData=""
    or do a loop, using child/paretns..

  • How to map WSDL response to different RFC?

    Hi ALL,
    I have following scenario.
    Suppose there are 2 different RFC like
    1.  RFC A (Async)
    2.  RFC B
    And I have one WSDL (Web Service)
    Now flow of scenario is as following
    Step 1: RFC A will send request to WSDL (Web Service)
               need to map RFC A request to WSDL request.
    Step 2: WSDL response to RFC B
               how can I map WSDL response to different RFC?
    Can we map response of WSDL to different RFC? If yes please let me know the steps.
    Thanks in advance.
    Thanks,
    Bhupesh

    Step 1: RFC A will send request to WSDL (Web Service)
    need to map RFC A request to WSDL request.
    Step 2: WSDL response to RFC B
    how can I map WSDL response to different RFC?
    Have your communication as Asynchronous....
    create your scenario as:
    Scenario 1) RFC A ---> XI --> WSDL
    Scenario 2)
    WSDL --> XI (Mapping to RFC 1) --> SAP
    WSDL --> (XI Mapping to RFC 2) --> SAP
    In scenario 2 you will need:
    1) Two MI...each based on the individual RFCs (RFC 1, 2)
    2) Two mapping programs
    In ID
    1) One Sender Agreement
    2) two receiver agreements
    3) two interface determinations
    4) in receiver determination check for some field which needs to be send to the RFC...this will imply that only a particular wsdl response is mapped to the RFCs (RFC1, 2)...here you can correlate using some value

  • Need to run swing GUIs under different JRE versions

    I need to run swing GUIs under different JRE versions. Where can I find information about how to use only classes which exist from version 1.1.7 and above?

    Under 1.1.7, Swing (then version 1.0) was under com.sun.java.swing. The package name changed in Swing 1.1 b3/JDK 1.2 to javax.swing. You can see what classes were available under Swing 1.0 at http://java.sun.com/products/jfc/swingdoc-api-1.0.3/frame.html

  • I cant sleep....Running two different JRE versions........

    Hey Guys,
    I m sure u must be rocking !!! Let me come to the point !! I have following doubts...
    1) Is it possible to run different JRE versions on the same machine...? This might be a real life scenario. For example u have java application-1 installed on ur machine which uses JRE1.4. Then u install another java application-2 which was built and tested using JRE1.5. That means u need to have both the JREs on ur machine and User might invoke both the application at the same time which needs respective JREs to be invoked.
    If u smart guys guessed it that this guy is coming from .NET back ground and talking about Side by side execution, then u got it right. I m planning to shift the parties !!
    2) If above answer is yes, then How can we achive it...?
    Thank you guys !!

    > I could not think of any better scenario on top of
    my mind, But even the examples which I gave are
    valid i guess, may be some people will agree with me
    in the forum....
    "I guess" and "maybe" are far different from "it is always better to not touch the old application and its JRE".
    > But i dont understand why u think that these
    examples are non sense !!
    I work for a multi-billion dollar business in which the JRE of a critical application was upgraded without a problem. According to your suggestion, that's a mistake, but I have a hard time imagining what your justification for that position would be.
    > Correct me if i m wrong
    anywhere....I m very new to Java,
    Considering some different scenarios is good for the imagination. Not to be too harsh, but perhaps counselling people that one should never upgrade the JRE of a business- or mission-critical application should wait until you have some actual experience. :o)
    ~

  • Running multiple java apps simultaneously, each using a different jre.

    I have a situation where I have 3 or 4 applications (and one applet) that were built over time, each with a different version of the jdk (ranging from 1.2.2.005 to 1.3.2). I need to know of a way (and it must exist) to run each of these applications on the same machine, and at runtime, have each application (or applet) run with its respective version of the jre. Certainly, one could change some source code and make all programs compatible with a particular jre, but that doesn't solve my problem if a new app is built with a new version of the jdk down the road. Currently, each runs fine by themselves, but if I try to run them together as different processes, some won't do anything because the default jre may not be what it needs. Would the Java Plug-in software have a role to play in this? Is there a way to specify (link) which application should use which jre?
    P.S. These applications (right now) don't have to interact or interface in any way. I just need to have them all running as separate processes on the same machine and be able to jump from one to the other.

    However ... if you have the programs running in Java1.x, I
    wouldn't recommend to let it run under Java 1.y; atleast
    not without thorough testing.I do it all the time and have not had a problem. I'm
    currently using JDK 1.4 beta 3 and I regularly run a
    Java application written with JDK 1.1.
    It sounds like the programs you are running are
    relying on behavior that is not guaranteed. If that
    behavior changes in a later version, it can break your
    program. Program to the contracts provided by other
    classes and packages, and you should have few or no
    problems.I guess you are right. Maybe you can help me with the following problem (this is off this topic, I know): I have Swing JDK 1.2 and Swing from JDK 1.3. I have to register keys on components.
    In JDK 1.2 I can use registerKeyBoardAction, in JDK 1.3 I have to use input maps and action maps. Both solutions only work with certain JDK. What I did was writing code which detects the java version and takes the appropriate action to register the keys. To make the thing compile in 1.2, I have to use reflection for the input/action map methods, because they are only available in 1.3.
    Any idea how to solve this more elegantly ?

  • Invoking java methods from C/C++ on the machine with different JREs

    I implemented Windows NT Service instantiating JVM and invoking several java methods. Everything works but I have an issue with running the service on the machine where multiple different versions of JRE have been installed. The service is calling java methods that require JRE 1.3 or later so I wrote the code that is setting system PATH from within the service based on the configuration stored in the external file. The problem is that the service requires jvm.dll to be in the PATH prior lunching it since this library is instantiated through the implicit linking. When I put jvm.dll in the same path as the service binary I can lunch it but JNI_CreateJavaVM fails and returns -1. This happens even if JRE 1.3 is in the system PATH prior lunching the service.
    Everything works if the system PATH contains references to JRE 1.3 and jvm.dll is removed from the service's directory.
    I am looking for an advice on what is the proper way to deal with invoking java methods from the C/C++ executable in the environment with different versions of JRE.
    Thanks, Kris.

    Here's a way I have done what you are asking about:
    What you want to do is make all of your linking happen at runtime, rather than at compile time. This way, you can edit the PATH variable before the jvm.dll gets loaded.
    Following is some code that I used to handle a dll of my own in this manner. You can decide if you want to write a "wrapper" dll, or if you find it simpler to approach the jvm.dll in this way.
    // Define pointer type for DLL entry point.
         typedef void JREPDLL_API (*EXECUTEREQUEST)(char*, Arguments&);
    // Set up path, load dll, and pass everything off to it.
    HINSTANCE javaServer = javaServer = LoadLibrary("jrepdll.dll");
    if (javaServer != NULL) {
    EXECUTEREQUEST executeRequest = (EXECUTEREQUEST)GetProcAddress(javaServer, "ExecuteRequest");
    if (executeRequest != NULL) {
    if (argc == 1)
         // Execute the request.
         executeRequest("-run", args);
    else
         // Execute the request.
         executeRequest("-console", args);
    Here's some code for how to edit the PATH:
              // Edit the PATH environment variable so that we use our private java.
    char *appendPt;
    char *newPath;
    char *path;
              char tmp[_MAX_PATH];
              // Get the current PATH variable setting.
    path = getenv("PATH");
              // Allocate space for an edited path setting.
              if (path != NULL)
                   newPath = (char*)malloc((_MAX_PATH * 2) + strlen(path));
              else
                   newPath = (char*)malloc((_MAX_PATH * 2));
              // Get upper part of path to desired directories.
              strcpy(tmp, filepath);
              appendPt = strstr(tmp, "dbin\\jreplicator");
              appendPt[0] = '\0';
    sprintf(newPath, "PATH=%sjava\\jre1.2.2\\bin;%sjava\\jre1.2.2\\bin\\classic", tmp, tmp);
    // Append the value of the existing PATH environment variable.
    // If there is anything, append it.
    if (path != NULL) {
         strcat(newPath, ";");
         strncat(newPath, path, (sizeof(newPath) - strlen(newPath) - 2));
    // Set new PATH value.
    _putenv(newPath);
              free(newPath);

  • How can I include beans with different JREs as activeX components

    Hallo,
    I have to integrate two java applications via activeX in one VB Application.
    The first application requieres JRE 1.3.1_09, the second needs JRE 1.4.2,
    which means that they need different activex bridges.
    Both should be intergated in the same vb application. How can I do this?

    The best recomendation I have is to try the bean that requires 1.3.1_09 and see if it will run in 1.4.2 and if not update it.

  • Different JRE Versions

    Hi ,
    We are running our application hosted in 10g Release 2 version 10.1.2.3.
    As Only JRE 1.5.0.9 and above is supportable client software we are using 1.5.0.9 for our forms applications. However in one of our client place we have a Java application which uses 1.6 and above releases of JRE. Now we have 2 different versions of JRE installed in a PC. How to make sure only our forms application is using only 1.5.0.9 and not any thing else, because by default it picks up the highest version of JRE software installed in the client PC.
    So in essence even if higher versions of JRE is installed in the client PC my forms application should pick up only the version i have mentioned in formsweb.cfg file and not any other version of JRE software installed in client PC.
    We are forced to this option because there are some known issues if we run our application apart from JRE 1.5.0.9.
    Request the forum users to participate and help me out of this.
    Thanks

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • Different JRE versions coexisting

    Hello everyone;
    I need two have two different versions of jre coexisting within the same oracle instance. The platform is Tru64, Oracle 8.0.6 nad the two versions of JRE are JRE 1.1.8 and 1.2.8.
    Has anyone tried something like this before?
    Any input will be highly appreciated.
    Cheers,
    Felipe Guacache

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • Using 2 different JREs on the same application

    I have my java application which must use JRE java1.5. It is mandatory.
    However, for just one fonctionnality, I want to use JRE java1.6 which have a bug fixed on a given class method.
    Is there a way to use both JREs one same application?
    Can I indicate that, for calling the corrected method, I want to use JRE 1.6 instead of the default JRE of the project (Java 1.5)?
    Thanks
    Regards

    I want to use JRE java1.6 which have a bug fixed on a given class method.The API is open source dude... you do the math.
    No responsibility will be accepted for bad advice rendered, regardless of any warranty, including that implicit in the implication that I have a clue, or indeed give a s__t.

Maybe you are looking for

  • Flash player is not working with windows 8.1 and ie11

    I am so tired of the message to remove active x or enable flash player. On windows 8.1 the next message is that flash player is embedded in 8.1. I also have ie 11 and had to load Google Chrome because my Media Player does not gee haw with 8.1. If I h

  • Procedure in reports

    Hi everybody, I'm beginner in oracle reports and I'd like to know if is possible and how do I create and use stored procedures to generate my reports. A simple query isn't enough for the type of report I need to implement... Thanks Diogo Domanski

  • BRF+: No context assigned to DB Lookup

    Hello expert, I am trying to create a BRF+ routing rule but I am facing since hour a problem. I am refering to http://scn.sap.com/thread/3324445 When trying to create rules I got the message: No context assigned to DB Lookup 'Z_GET_ROLEID' yet. Query

  • Problem with downloading iOS 5 for iPad 2

    I face problem while downloading iOS 5.0.1 for iPad 2. First, I have upgraded the latest version of iTune and followed the onscreen instruction for downloading iOS 5.0.1 already. However, when the downloading process continues about half an hour, I g

  • Elements 7 Raw manipulation for EOS 5d Mark 2

    Hello I have just upgraded to the canon eos 5d mark 2. I used to shoot with a 350d and use Rawshooters Premium or essentials to convert raw files. Does element 7 support raw file conversion for the 5d mark 2? If so, does it allow highlights and shado