Not all executables will start from spawned batch (Is this a WinNT bug?).

I'm building a tool wherewith I can spawn a make process from my Visual Age for Java IDE.
This I have working now. However not all executables seem to get started from the batch.
Here are some of the from within the batch file started examples that work and won't work:
echo MakeBridge V1.00
echo Ensure that
echo %1%2
echo is a (sub) directory of
echo %JAVA_DEV_ROOT%
REM Usage: makeBridge <drive_letter> <working_directory> <make_command>
REM Change drive
%1 WORKS
REM Change directory
chdir %2 WORKS
REM Execute make command
echo ####%3#### WORKS
clearmake -C gnu %3 %4 %5 %6 %7 %8 %9 WON'T WORK
echo path=%PATH% WORKS
pwd WORKS
dir WORKS
java -version WON'T WORK
rem C:\APPL\_off97uk.32\Office\EXCEL.EXE WORKS
echo Marcel Zeeuw WORKS
The actual coding for the spawning is below:
Process p = Runtime.getRuntime().exec(batch);
// Pick up output stream from spawned process
BufferedReader br = new BufferedReader(
new InputStreamReader(p.getInputStream()));
String line;
while ((line = br.readLine()) != null)
System.out.println(line);
br.close();
System.out.println(p.exitValue());
Help would be appreciated
Kind regards,
Marcel Zeeuw.

Explicit naming of a path in front of a non-starting application doesn't help - as expected.
My conclusion is, that a process that is spawned by an application inherit some sort of limiting environment space. THis is because when I start my not working batch file from a command prompt, the batch file works as expected.
I have no solution for this problem for now...

Similar Messages

  • Not all songs will import from CDs

    When importing CDs certain songs won't import, the computer will say that the file name is too long or invalid, and usually the song has a longer title, but they may be a coincidence. I'm worried that if I get new cds I won't be able to import all the songs, but I just got the new Norah Jones cd and was able to import all of her songs. I am wondering if it depends on how old the cd is, since the on I tried importing today was a Linda Ronstadt cd, not exactly recent. But my Prince Caspian soundtrack won't import all the songs either, so this can't be the case. I would love to solve this problem and appreciate all who will answer this!
    P.S. I tried changing the name but once imported the song will not play

    I'm having this issue also. I don't have the 5 but I upgraded my 4 to the new iOS6 and updated to the new version of itunes as well, now I cannot copy any music from my computer to my phone, it just stays grayed out and doesn't actually copy.

  • Not all files will import from NAS Synology Server to PC running LR 5.3

    We recently moved our photos to a new Synolgy NAS server. I have a Lenovo all in one and installed the latest version of LightRoom 5.3. When I import my photos, not all of them get imported, only a fraction of them. I can see all the photos on the server via the run command but after I import not all the photos get transferred over. Does anyone else have this issue? What would cause this bottle neck?

    Well, well what do you know.. it just came up..
    I moved all files from the LR folder except the catalog, rebooted and it came up...
    I guess the next thing to do is to get the previews back.
    Hope this is a good sign...

  • Not all of my songs from itunes are appearing in garageband.

    Not all of my songs from itunes are appearing in garageband. I want to make a ringtone with a certain song but its not there. How do I get it to be there?

    Is it a song you have purchased? Maybe your song is protected by digital right management? Then it will not show up in GarageBand. Have a look in the Information panel if the kind of the song is "Protected".

  • Ipod is synced but not all music will play. The music shows on the Ipod but not highlighted and cannot click to play.

    Ipod is synced but not all music will play. The music shows on the Ipod but not highlighted and cannot click to play.

    Provided the music plays in iTunes on the computer
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • Not all of my photos from my iPad will sync with my macbook pro retina. Any advise would be appreciated as I am a Mac beginner.

    Not all of my photos on my ipad sync across to my macbook pro retina.Any help would be appreciated. Thanks

    Thank you - I have done this now but resetting and restoring from another device didn't really help. However, syncing via iTunes was a bit more successful as it occurred to me that many of my contacts are in MS Outlook on my PC and I was able to copy them over.  There are still some contacts missing and I am continuing to try and figure out where they originate from to try and get them to show up. 

  • Audio will start from beginning midway?

    When I put a video into the project area and then drag into the Sequence the video will start to play normally and the audio is in sync. But for some reason at 3 minutes and 43 seconds, the audio will jump all the way back to the beginning but it will still show that it is playing the same track. I have played the video in regular windows media player and there is no issue, it only happens in Premiere. Does anyone have any idea how to fix this? I've tried recreating new sequences from the clip and it keeps happening... thanks for any help!

    I have this problem as well but it is intermittent. Sometimes it restarts where I ended. I can not figure out what is different between the situations though. It seems that this must just be a bug in the software. Hopefully it will get fixed because, I agree, it is terribly annoying. I've learned to use the screenshot function to capture my position.

  • ACS can not access ADS-LDAP starting from "DC=..."

    Hi
    I have an ACS v4.2 from which I try to access an ADS LDAP directory. When I use "CN=Users,DC=Domain,DC=com" as the baseDN for the users and the groups everything works as it should. When I change the base DN to "DC=Domain,DC=com" only, then the ACS is not able to find any users or groups. Even when trying to configure the group mappings he claims: "LDAP Server NOT reachable. Please check the configuration.". Using an LDAP browser I don't have any issues accessing the directory from the shorter baseDN.
    Is this a v4.2 related problem or a general ACS problem?
    The point is that I need to find users in different OU's, which are based directly under the domain name, so that I need to search for them starting from "DC=Domain,DC=com". I know that with "Generic LDAP" I can make severeal "Databsae Configurations" to resolve the issue with the OU's. But not with a "RSA SecurID Token and LDAP Group Mapping" setup. There is only possible to have one LDAP group mapping configuration.
    Any input would be greatly appreciated.

    Hi
    We invested a lot of time together with TAC and development. Short answer: No it's not solved. It was an ACS bug. But development didn't realy understand the problem. We went ahead and restructured the ADS.
    The problem we had, is that a LDAP directory of a Windows is not fully accessible. Even if you connect as a Domain Administrator or to the Global Catalog. :-) And that's where the ACS fails. LDAP browsers just read over the unaccessible parts of a LDAP directory and show you all the accessible part. ACS doesn't. He stops and reports the failure. You can see that clearly when sniffing the access of the ACS and the LDAP browser to the directory. Unfortunately the unaccessible part is at the beginning of the ADS LDAP directory. :-(
    Maybe they resolved the problem nowadays. Or if you have a Windows Guru who can help you in making the directory fully accessible I would be interessted in the How-To.
    I wish you best luck with your issue.
    Kind regards
    Roberto

  • TS1424 Some but not all of my purchases from iTunes store (TV shows) have been downloading in a Quicktime format that can't be viewed via iTunes or on apple TV (1st gen).  I get error message when I try to convert.

    Since I have a new iMac and now use Mountain Lion, I am observing that TV shows purchased in iTunes sometimes download in a Quicktime format that will not open in iTunes.  In some but not all cases, I right click "open in" and select iTunes and then it will play.  However, this doesn't always work.  When I open in Quicktime and try to export to iTunes, that won't work.  When I try Wundershare's Video conversation program, it won't even accept the file.  What's going on here?  Any ideas?  Please reply [email protected] with any suggestions.
    Kathy

    Thanks for the help Ricky.
    I did put my iPod into DFU and iTunes recognized it in restore mode. After restore I am back where I was before - iTunes cannot connect because of an unknown error.
    I have installed Jailbreak to see if I can bypass itunes but haven't succeeded. I can't get my computer to recopgnize the iPod as a device.
    I'll take it to a Genius bar next time I am in the area of one. Until then I'll probably continue to try hacks to get it connected.
    Dan

  • I upgraded to Firefox 8.0.1 on may MacBook OSX 10.6.8 and not all files I download from my Outlook Web app are ashx file, not what they were originally sent in. How do I change this ?

    I have just upgraded to Firefox 8.0.1 on may MacBook (10.6.8) and now all files I download from my Outlook Web app labeled attachment.ashx, not as they were originally sent (.docx, .pdf, etc). How do I change this back?

    I'm going to back up to Firefox 7 next. I'm getting the drift that 8.0.1 and/or flash on 8.0.1 are unstable.
    I'll let you know if that solves this problem.
    NOPE. This had no effect.

  • Not all mp3s will backup to external hard drive

    Earlier today I tried to back up my iTunes library to an external hard disk. A few tracks would not copy across because they were 'busy', although iTunes was not running at the time. It would be some tracks of some albums, often tracks 3 and 9 but sometimes others aswell. The albums were imported from CD some time ago. If I click 'Show Info' then the files that will not back up will not let me change anything, such as the file name or the colour label, although the permissions settings are the same. Please help, as it's very annoying to have a few tracks missing from several albums!

    Just copy them over and then delete the originals
    or
    Download Carbon Copy Cloner and have that do it for you

  • APEX_MAIL.SEND() not seen executing MY procedure from TOAD

    Hi,
    I have a procedure that calls APEX_MAIL.SEND and works fine when executed from within the app or in the APEX Workshop window.
    Trying to execute MY procedure from an Oracle job we get an error unknown procedure APEX_MAIL.SEND
    anyone have this problem?

    Hello,
    Why don't you use utl_smtp package if you are wanting to send email from pl/sql?
    If you look at the help for APEX_MAIL its says:
    APEX_MAIL
    You can use the APEX_MAIL package to send an email from an Oracle Application Express application. This package is built on top of the Oracle supplied UTL_SMTP package. Because of this dependence, the UTL_SMTP package must be installed and functioning in order to use APEX_MAIL.
    So APEX_MAIL will only work within a valid apex session and it won't be available to a toad session .
    Cheers,
    Paul.

  • Not all programs will run on this model?

    I am not actually a Macbook Pro owner, or even the owner of a Mac at all, but I am looking to buy one. I recently heard that not all Universal and even some native applications that don't come pre-installed when the computer is purchased cannot be run on the Macbook Pro. My questions are as follows:
    A) Is this true?
    B) Any estimates on when this problem will be remedied?
    C)If the problem is not fixed before I purchase the computer, is it possible to upgrade it later?
    Please forgive my computer stupidity, if my questions seem stupid, it is because I am new to Macs and to computers as a whole...
    Macbook Pro   Mac OS X (10.4.6)  
    Macbook Pro   Mac OS X (10.4.6)  
    Macbook Pro   Mac OS X (10.4.6)  

    Everything that comes on the computer runs fine - and very very fast.
    i) Other Universal apps should be fine - that's the reason they are universal - to run on intel macs.
    ii) Pre intel apps (called Power PC apps) run through a "translation" layer called Rosetta. Sometimes this slows them down a bit, but most apps will run pretty well.
    MS Office runs in Rosetta. No problems - maybe a bit slow if you had a previous G5. Adobe CS2 runs in Rosetta - mostly trouble free.
    In Power PC macs you could still run "Classic (OS 9) apps - This is no longer possible, but these are mostly really old - OSX came out in 2001.
    If you have something specfic you want to use, people here can advise - Or you can list what you use on a PC. Apps bundled on the machine and universal apps are fine.
    A few small matters are outstanding - e.g. wmv playback, but there are ways of playing wmvs using Rosetta and solutions are imminent.
    Best of luck.

  • Some (not all) sites will not load properly, (such as 'Outlook', MSN, Flicker) they look as if in a ''safe'' mode'' and can't be viewed properly.

    Hello! If anyone can help me, I would be very grateful!
    I am unable to properly view a number of, but not all, web pages/sites.
    I have tried all the recommendations I have found thus far; however, nothing resolved the issue.
    I have tried: clearing catch, clearing cookies. Checked ‘’load images automatically’’. Enabled JavaScrip. Adblock is disabled. Flashblock is disabled. Everything I have is up-to-date.
    Examples of, but not limited to, sites unable to view properly are: Firefox Support, MSN, Flicker, Outlook email, Yahoo.
    They work fine using Explorer.
    Further detail/explanation of images not showing where a image/picture should be: What I see is an opaque thin red box and in that box is a small opaque red flag.
    THIS IS MOST PERPLEXING!!!

    Try, as cor-el said, the extensions one by one, disable one, then enable it if the problem is not there, and disable the next extension.
    (your extensions we can see in "system details")
    thank you

  • My iPhone 4S will not update it will start and at the last hour it says error what can I do

    Everytime I try and update my iPhone 4S to ios7 it will start to download and at the last hour it will say error update failed i have tried everyday for the last week

    You either need to go somewhere with a MUCH stronger and faster WiFi signal or do the update using your computer and iTunes.
    On my PC the download took 10 minutes,

Maybe you are looking for