Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Command Prompt Problems

  • 01-10-2004 12:54PM
    #1
    Closed Accounts Posts: 598 ✭✭✭


    Hello
    When I am programming in JAVA or wish to see Tomcats enviromental variables, the command prompt window opens up for only a second and then disappears, eg I only see the output for a second, then the command window disappears. I realise I could just navigate to the directory and run from there, but is there a setting in Windows that allows you to leave the command window open so I could actually see what is going on? I can't remember this happening in Windows 98, I'm using XP Pro.

    Cheers


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Press START-Run

    type cmd.exe and hit enter.

    Or select command prompt, but I forget where it is.


    W98 had an option to leave the command prompt open (might of been default?).


    Another option is to run the program by doing..

    cmd.exe /k myprog.exe

    This will run it in the command line and leave the command line open.


  • Registered Users, Registered Users 2 Posts: 3,890 ✭✭✭cgarvey


    That's annoying alright .. often happens to me when I've a web.xml errorr... so my solution is ...
    • Edit catalina.bat in your %TOMCAT_HOME%/bin directory.
    • Look for the line ":doStart" (140 ish in my TC 5 version), and just below that you'll see an "Windows_NT" check. If you are using Win XP/2000/NT, then change the line following that "Windows_NT" line from "set _EXECJAVA=start "Tomcat" %_RUNJAVA%
      " to "set _EXECJAVA=%_RUNJAVA%", and save. If you're using Windows 9x, then remove the "start" from the line below ":noTitle".
    • Save the file
    • Using a command box/DOS prompt, navigate to the bin directory and run the startup.bat

    HTH
    .cg


Advertisement