HOW TO PRINTLN INTO DOS CONSOLE ?

hi all,
of course you can make outputs with System.out.println("Bla"); into the JBuilder console (for example).
but what if i started my java application with a batch file?
the batch file opens a dos console/window.
how can i force the System.out.println of my code to appear into this dos window?
thanx a lot,
andi

that's what i was thinking......the start.bat is like that:
C:\jbuilder5\jdk1.3\bin\javaw -classpath "D:\Entwicklung\Java\Editor\classes;D:\Entwicklung\Java\Packages\Packages\classes;D:\Entwicklung\Java\Packages\xdogawt\CLASSES;D:\Entwicklung\Java\Packages\3rdParty\dog\dog\CLASSES;C:\jbuilder5\lib\xerces.jar;D:\Entwicklung\Java\Editor\src\Auguro.jar;D:\Entwicklung\Java\Packages\3rdParty\logkit-1.0b5.jar;C:\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\jbuilder5\jdk1.3\jre\lib\i18n.jar;C:\jbuilder5\jdk1.3\jre\lib\jaws.jar;C:\jbuilder5\jdk1.3\jre\lib\rt.jar;C:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;C:\jbuilder5\jdk1.3\lib\dt.jar;C:\jbuilder5\jdk1.3\lib\tools.jar" ASLEditor
and this is EXACTLY what appears into my dos window....any system.out.print from the code won't appear.....
andi

Similar Messages

  • How to evoke a DOS console in Java?

    Hello There,
    I am trying to open a DOS console (says, cmd.exe in win2000) in Java. Obviously, the usual Runtime.getRuntime.exec("cmd") just does not work. Could someone please help me in solving this puzzle.
    Many thanks,
    Craig

    What exactly do you want to do with the console once it is opened? The Runtime.getRuntime().exec("cmd.exe") does open a command processor. However, it will terminate when the JVM terminates.
    Also, the JVM grabs hold of both the stdin and stdout handles that the console uses so there is no way for the user to interact directly with the command processor.
    If you want to open a command processor that becomes completely separate from the JVM that launched it, do the following:
    Runtime.getRuntime().exec("cmd.exe /c start");This will cause a command processor to be created by the JVM. The created command processor will start another command processor. The first command processor will terminate, but the second one will remain active without any ties to the JVM.
    Hope this helps,
    -Mike

  • How can DTExec show the execution package progress while running it in the DOS console?

    [SSIS 2012]
    Hi,
    We need to view the package results/progress during the execution of the package by the DTExec command. Isn´t it possible?
    The user can´t view the details for the execution by the GUI.
    The package is deployed in the SSIDB (Catalog). The final idea is to Audit the result in a *.log file from the Batch we have created. We are not considering to use the "Logging" feature while designing the package. We expect to have same SSIS events
    in the DOS console while executing it.
    DTExec always says: To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
    How could it be possible?
    Thanks,
    Alex Berenguer

    Hi Alex,
    I don’t think it is possible to display the package execution details in the Command Prompt when we execute a package stored in the SSISDB catalog. Except for enabling the package logging, we have to view the execution details from the “All Executions” Standard
    Report for the SSISDB Catalog.
    Regards,
    Mike Yin
    TechNet Community Support

  • Stuck at gdm how do i drop back into the console?

    okay first off i'm ashamed to get stuck at this spot after spending a long time figuring out how to install/configure anything. long story short i got my system core installed, installed fluxbox, and then installed gdm. unfortunately now gdm loads and wont let me back into the console(even if i try the command ctrl+alt+backspace). why is that bad? because i forgot to add a normal user and gdm wont allow me to login with root.
    my question: how do i drop back to the console?

    If you are satisfied, you should change the topic to "[SOLVED] stuck at gdm how do i drop back into the console?" so the rest of us know you are happy :-)

  • How to execute java without a DOS console?

    I'm running java in the Windows platform.
    Every time when I run java program, there must be a
    DOS window.
    Is there any way that I can run java program without a DOS console window.

    Check out "executable jar files" - http://java.sun.com/docs/books/tutorial/jar/basics/run.html

  • Is there any way to see Console[DOS console] in BPEL/SOA Suite 10.1.3.1?

    Hi ALL,
    I downloaded JDeveloper 10.1.3.1 Studio And SOA Suite 10.1.3.1 Developer Previews.
    I created BPEL project and I deployed on SOA suite server.
    Now I want to see/monitor outputs on Console but console[DOS console] is not available. I have to login in into IE Console to check whether Instances generated or not and then when I have new instance then I can only check.
    Basically I need to put logger at some level and I want to monitor them.
    How can I get DOS kind Console for BPEL Process Manager or SOA Suite?
    Any Idea?
    Regards,
    Bhavesh Thaker.

    soa_suite_home/opmn/logs/defaultOC4J_SOAxxxx should do it .. aside opmn.log
    will help too.. (OC4J_SOA maps to the advance install, otherwise it's home)
    hth clemens

  • How to enter into shared services in system 9

    how to login into shared services

    Hello,
    I'm new with Hyperion and would like to ask something. I installed Hyperion Shared Services 9.3.1 in my desktop (inside consist of Windows XP Professional Service Pack 3, 1 GB RAM, Oracle Database 10g (10.2.0.1) Standard Edition, Oracle Application Server 10g).
    I read from Hyperion Shared Services security guide in Chapter 3 about User Management Console that we can launch User Management Console in 3 ways:
    1. Using a browser and connecting to the User Management Console URL
    2. On Windows, navigating Start > All Programs > Hyperion > Foundation Services > User Management Console
    3. From a Hyperion product interface
    I tried to connect using URL : http://<localhost>/58080/interop and http://<localhost>/58080/interop/ and http://<localhost>/58080/interop/index.jsp but failed (where I changed <localhost> to my computer name). When I installed Shared Services, there are no point to choose port or create username.
    There are no User Management Console in Foundation Services either.
    How to start and stop Shared Services then and how do I know Shared Services has already run?
    Thanks.

  • You have forgot your admin console password.how to reset your admin console

    If you create the new domain in oracle weblogic at that time you give the admin console username & password. After one week you forgot the admin console password. then how to login into the admin console page.
    [root@loaclhostvinoth_domain]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain --> The New domain name is " vinoth_domain"
    [root@loaclhostvinoth_domain]# ll
    total 44
    drwxr-x--- 2 root root 4096 Jul 23 12:21 autodeploy
    drwxr-x--- 5 root root 4096 Jul 23 12:21 bin
    drwxr-x--- 12 root root 4096 Jul 23 12:22 config
    drwxr-x--- 2 root root 4096 Jul 23 12:21 console-ext
    -rw-r----- 1 root root 462 Jul 23 12:21 fileRealm.properties
    drwxr-x--- 2 root root 4096 Jul 23 12:21 init-info
    drwxr-x--- 2 root root 4096 Jul 23 12:21 lib
    drwxr-x--- 2 root root 4096 Jul 23 12:31 security
    drwxr----- 3 root root 4096 Jul 23 12:22 servers
    -rw-r----- 1 root root 649 Jul 23 12:21 startManagedWebLogic_readme.txt
    -rwxr-x--- 1 root root 275 Jul 23 12:21 startWebLogic.sh
    [root@loaclhostsecurity]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/
    [root@loaclhostsecurity]# ll
    total 36
    -rw-r--r-- 1 root root 3301 Jul 23 12:31 DefaultAuthenticatorInit.ldift
    -rw-r----- 1 root root 2398 Jul 23 12:21 DefaultRoleMapperInit.ldift
    -rw-r----- 1 root root 64 Jul 23 12:21 SerializedSystemIni.dat
    -rw-r----- 1 root root 22654 Jul 23 12:21 XACMLRoleMapperInit.ldift
    [root@loaclhostsecurity]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/
    [root@loaclhostsecurity]# mv DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit.ldift_backup
    [root@loaclhostsecurity]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/
    [root@loaclhostsecurity]# ll
    total 36
    -rw-r----- 1 root root 2398 Jul 23 12:21 DefaultRoleMapperInit.ldift
    -rw-r----- 1 root root 64 Jul 23 12:21 SerializedSystemIni.dat
    -rw-r----- 1 root root 22654 Jul 23 12:21 XACMLRoleMapperInit.ldift
    -rw-r--r-- 1 root root 3301 Jul 23 12:33 DefaultAuthenticatorInit.ldift_backup
    [root@loaclhostbin]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/bin
    [root@loaclhostbin]# ll
    total 48
    drwxr-x--- 2 root root 4096 Jul 23 12:21 nodemanager
    drwxr-x--- 2 root root 4096 Jul 23 12:21 server_migration
    drwxr-x--- 2 root root 4096 Jul 23 12:21 service_migration
    -rwxr-x--- 1 root root 15895 Jul 23 12:21 setDomainEnv.sh
    -rwxr-x--- 1 root root 3211 Jul 23 12:21 startManagedWebLogic.sh
    -rwxr-x--- 1 root root 5658 Jul 23 12:21 startWebLogic.sh
    -rwxr-x--- 1 root root 2437 Jul 23 12:21 stopManagedWebLogic.sh
    -rwxr-x--- 1 root root 2098 Jul 23 12:21 stopWebLogic.sh
    [root@loaclhostbin]# ./setDomainEnv.sh --> You can set the Environment.
    [root@loaclhostsecurity]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/
    [root@loaclhostsecurity]#java weblogic.security.utils.AdminAccount Adminnewusername Adminnewpassword .
    Example:
    [root@loaclhostsecurity]#java weblogic.security.utils.AdminAccount vinoth vinoth123 .
    You must use '.' dot at the end of this command in between have a space.
    If you execute the above statement then the newly created DefaultAuthenticatorInit.ldift is availble in this path
    "/oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/"
    [root@loaclhostsecurity]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/security/
    [root@loaclhostsecurity]# ll
    total 36
    -rw-r----- 1 root root 2398 Jul 23 12:21 DefaultRoleMapperInit.ldift
    -rw-r----- 1 root root 64 Jul 23 12:21 SerializedSystemIni.dat
    -rw-r----- 1 root root 22654 Jul 23 12:21 XACMLRoleMapperInit.ldift
    -rw-r--r-- 1 root root 3301 Jul 23 12:33 DefaultAuthenticatorInit.ldift_backup
    -rw-r--r-- 1 root root 3301 Jul 23 12:37 DefaultAuthenticatorInit.ldift ---> newly created file.
    After you start the Adminserver the error is throughing then we go to the Adminserver ldap directory and rename the ldap directory.
    [root@loaclhostdata]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/servers/AdminServer/data
    [root@loaclhostdata]# ll
    total 16
    drwxr----- 2 root root 4096 Jul 23 12:23 console
    drwxr----- 7 root root 4096 Jul 23 12:44 ldap
    drwxr----- 4 root root 4096 Jul 23 12:23 store
    [root@loaclhostdata]# mv ldap ldap_backup
    [root@loaclhostdata]# ll
    total 16
    drwxr----- 2 root root 4096 Jul 23 12:23 console
    drwxr----- 4 root root 4096 Jul 23 12:23 store
    drwxr----- 7 root root 4096 Jul 23 12:55 ldap_backup
    After that you start the Adminserver by using the "startWeblogic.sh'' shell script.
    [root@loaclhostvinoth_domain]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain
    [root@loaclhostvinoth_domain]# ll
    total 44
    drwxr-x--- 2 root root 4096 Jul 23 12:21 autodeploy
    drwxr-x--- 5 root root 4096 Jul 23 12:21 bin
    drwxr-x--- 12 root root 4096 Jul 23 12:22 config
    drwxr-x--- 2 root root 4096 Jul 23 12:21 console-ext
    -rw-r----- 1 root root 462 Jul 23 12:21 fileRealm.properties
    drwxr-x--- 2 root root 4096 Jul 23 12:21 init-info
    drwxr-x--- 2 root root 4096 Jul 23 12:21 lib
    drwxr-x--- 2 root root 4096 Jul 23 14:50 security
    drwxr----- 3 root root 4096 Jul 23 12:22 servers
    -rw-r----- 1 root root 649 Jul 23 12:21 startManagedWebLogic_readme.txt
    -rwxr-x--- 1 root root 275 Jul 23 12:21 startWebLogic.sh
    [root@loaclhostvinoth_domain]# ./startWebLogic.sh
    Then you enter the new adminuser & password. The admin server Working fine. But if you start the Managed server the can through error. Then we follow the below step to resolve that problem.
    [root@loaclhostvinoth_domain]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/servers/Managedserver1/data/
    [root@loaclhostvinoth_domain]# ll
    [root@loaclhostdata]# ll
    total 8
    drwxr----- 7 root root 4096 Jul 15 18:50 ldap
    drwxr----- 4 root root 4096 Jun 8 16:40 store
    [root@loaclhostdata]# mv ldap ldap_backup
    root@loaclhostdata]# ll
    total 8
    drwxr----- 4 root root 4096 Jun 8 16:40 store
    drwxr----- 7 root root 4096 Jul 23 15:50 ldap_backup
    Then you can start the Managed server one means they can't show any error.
    [root@loaclhostbin]# pwd
    /oracle/Middleware_1033/user_projects/domains/vinoth_domain/bin/
    [root@loaclhostbin]# ll
    total 72
    drwxr-xr-x 2 root root 4096 Jun 8 16:26 nodemanager
    drwxr-xr-x 2 root root 4096 Jun 8 16:26 server_migration
    drwxr-xr-x 2 root root 4096 Jun 8 16:26 service_migration
    -rwxr-xr-x 1 root root 15901 Jun 8 16:27 setDomainEnv_default.sh
    -rwxr-xr-x 1 root root 16348 Jun 8 17:27 setDomainEnv.sh
    -rwxr-xr-x 1 root root 3217 Jun 8 16:27 startManagedWebLogic.sh
    -rwxr-xr-x 1 root root 5661 Jun 8 16:27 startWebLogic_default.sh
    -rwxr-xr-x 1 root root 5702 Jun 8 16:29 startWebLogic.sh
    -rwxr-xr-x 1 root root 2440 Jun 8 16:27 stopManagedWebLogic.sh
    -rwxr-xr-x 1 root root 2101 Jun 8 16:27 stopWebLogic.sh
    [root@loaclhostbin]#./startManagedWebLogic.sh Managedserver1 http://localhost:7001 adminusername adminpassword
    adminusername : vinoth
    adminpassword: vinoth123
    If you follow the step to start the Adminserver & Managed servers in oracle weblogic.
    Regards,
    S.Vinoth Babu

    Re: Reset admin password in Weblogic 9.2
    this worked for me.

  • Can someone explain how Groupware fits into the CRM mobile model?.

    Can anyone explain how Groupware fits into the CRM mobile model?.
    Also we have the client console on the laptop, but it looks very basic. My understanding is that it's supposed to be able to download sales details before going on the road, is that correct, or have I misunderstood something?.
    Jason

    Hi Jason,
    For Groupware integration try looking at
    http://help.sap.com/saphelp_crm50/helpdata/en/74/49af3ab73dc363e10000000a114084/frameset.htm
    For Client Console functionality refer to
    http://help.sap.com/saphelp_crm50/helpdata/en/9d/a7443bc6054d4ee10000000a11402f/frameset.htm
    Regards,
    Gervase

  • Faking input into a console

    Hello All,
    I was just wondering how I'd go about faking input into a console, I want to be able to do this for test purposes.
    Thanks in advance.

    This is what I have got at the moment
    public void inputToConsole(String input) {
              BufferedInputStream in = new BufferedInputStream(
                        new StringBufferInputStream(input));
              System.setIn(in);
         }The problem is that it continues to be read in, is there a way that I could get the input stream to end once it's been read?
    Edited by: Y.S.Wheeler on Oct 19, 2008 10:41 PM

  • Clear DOS Console

    Hi, I work with java application. I use jdk to compile and execute.
    When I execute this application, it's writes a DOS console. I use a System.out to print string in the DOS Console.
    I try to clean DOS Console.
    please, i don't know how to clean DOS Console.
    thanks.

    AFAIK, you can't send shell commands to your active shell window. So, you can either create a GUI with Swing components or something, or write like, 50 blank lines to System.out (HACK... COUGH).
    Jason

  • Using utf-8 in a dos console

    Hi all,
    I have a simple program that must read the char typed by the user. It is something like:
    public class Test {
    public static void main(String[] args) {
    System.out.println("Type &ograve; for instance:");
    try {
    for(int ch=0 ; (-1 != (ch=System.in.read())) ; ) {
    System.out.print((char)ch);
    } catch (Exception e) {
    e.printStackTrace();
    My problem is with chars like &egrave;&ograve;&agrave;&eacute;&igrave;...
    I run this simple test from a dos console but it doens't work.
    I need to support UTF-8 encoding, but also running my test with -Dfile.encoding=utf-8 the result is not the expected one.
    Any suggestion ?
    Thanks in advance
    ste

    The DOS console doesn't seem to support UTF-8 or any other Unicode encoding. On my machine (WinXP, U.S. locale), the default encoding (or "codepage") for the console is cp437, while the default value of the "file.encoding" property is cp1252. Probably your best option is to change your console's codepage to match the default file encoding: > CHCP 1252 That will at least give you consistent support for the full Latin-1 character set, which seems to be the best you can do, short of switching to a Swing text component.

  • How to clear the DOS screen through java program

    how to clear the DOS screen through java program

    Just some Friday fun. Use the telnet program that comes with Windows and supports VT escape sequences.
    import java.io.*;
    import java.net.*;
    public class AutoTelnet {
         private static Socket s;
         public static void main(String[] args) throws Exception {
              Thread t = new Thread() {
                   @Override public void run() {
                        try {
                             s = new ServerSocket(5555).accept();
                        } catch (IOException ex) {
                             ex.printStackTrace();
              t.start();
              Process p = new ProcessBuilder("cmd", "/C", "start", "telnet", "127.0.0.1", "5555").redirectErrorStream(true).start();
              t.join();
              PrintStream ps = new PrintStream(s.getOutputStream());
              ps.println("Screen will be cleared in 5 seconds");
              ps.println("5");
              Thread.sleep(1000);
              ps.println("4");
              Thread.sleep(1000);
              ps.println("3");
              Thread.sleep(1000);
              ps.println("2");
              Thread.sleep(1000);
              ps.println("1");
              Thread.sleep(1000);
              ps.println("\u001b[2J");
              Thread.sleep(5000);
    }

  • Querying for users logged into attendant console with AXL (help)

    I am wondering if anyone knows of any AXL commands that can be used to query who is logged into attendant console? I know that there is a perfmon counter that will tell you how many users are logged in but there is no other detail beyond that. Any help would be greatly appreciated! Thank you in advance for the assistance.

    So after speaking with O365 Support and examining the Activesync Logs (hold down control, rt. click on the exchange tray app bottom right corner of the screen, click Test ActiveSync) we were able to see outlook trying our on-premise exchange servers first.
    Despite failing on them, and moving on to activesync.outlook.com, it still would not mount the O365 mailbox & shared mailboxes appropriately.  If we set DNS to manual on the workstation to publics, the problem would go away.
    Disabling SCP by running the following command on both our exchange servers fixed the issue:
    Set-ClientAccessServer -Identity “SERVERNAME” -AutoDiscoverServiceInternalUri $NULL
    Credit to AgileIT! Here's the complete reference:  http://www.agileit.com/news/outlook-profile-autodiscover-service-order-of-precedence-and-disabling-scp-for-hosted-exchangeoffice-365-migrations/
    4 Hours dealing with this issue.  

  • How to log into Mountain Lion if the FileVault user can't unlock the drive?

    I have a computer that has the FileVault user not able to decrypt the drive. I've read on how to get into the machine and have successfully done so a few times. This has been accomplished by creating a new Admin user, deleting the original user, recreating it as a clean new user. Each time I give the computer back to the owner and he tries to restore from a backup. The problem is, he restores and it creates the same problem.
    The most recent time he did this, I could not for the life of me figure out how to create a new user. When I try to log in as the FileVault user I get the "unable to log into filevault user account at this time" error.
    The only way I could figure out how to get another admin user created so that I could delete his user was to reinstall the OS. Is that the only way this can be done?

    I don't think Verizon will release the username and password to the camera administration to prevent people from doing what you want to do.
    Even if you have the username / password, I would imagine there is a hefty equipment charge if you don't return the camera, which will make it cheaper to just buy a camera in retail stores.

Maybe you are looking for

  • Windows update problems

    I am having problems with Windows Update through a BM 3.9 proxy server. There is no authentication required. I have tried all the sets the Micro$oft recommends and still no joy. Setting the proxy in the Internet Options and transferring into "netsh w

  • Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool

    Is there any explanation or how to solve this problem? Group managers and Contributors fields are randomly cleared out in Terms Store Management Tool in SharePoint 2010. Any ideas? Thanks!

  • Client Information

    Hi Mr.Francois I am using your client information form. Thank you. But in Linux client shows IP & MAC addresses are blank Any idea ! Regards

  • Nokia N8 will not bluetooth with Nokia PC suite

    I have a new laptop running Windows 8.1 and installed the new Nokia PC suite.  Even tho the laptop and phone can be connected via bluetooth the PC suite does not recognize the N8.  It used to connect no problem when using the old OVI suite.  It will

  • Siebel integration with Portal

    Hi Can anybody tell me how the Siebel integration can be done with Portal. Pl send me steps. thx PRadeep