Using Java To Open Terminal/Command Prompt

I wanted a .jar file to open the terminal/command prompt on execution so that i can use System.out to display all the information needed...Is this possible? If so what code can i use to open the command prompt from java
Thanks a lot ppl ;)

Terminal prompt is plataform dependent, I would not advise you to do that. If your system outs are logging, i sugest you to use any logging api. If you are trying to display text information to the user, open any text widget and output there.
May the code be wiht you.

Similar Messages

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • How to use Java with PL/SQL commands to send an email with attachment

    Apologizes in advance if this is the wrong place to ask the question.
    I need to use Java with PL/SQL commands to send an email with attachment. My java application runs from the command line and does some magic to gather info from an Oracle 11g db. If the DB has sendmail configured, I'd like to send the results of the data gathering as an attachment to the email addresses. I'm not sure how to do this. I've been reading up on on PL/SQL can send email with UTL_SMTP - with attachments. I'm just not sure how to translate that into being triggered by my Java application. Any suggestions or pointers on what I should read would be appreciated.
    Background - I've been programming in Java for 10+ years, but this is my first time using databases. I also have been on these forums for a long time, but lost my profile when it was switched to Oracle.
    Thanks for all help.

    user13726880 wrote:
    The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
    Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
    However myself I would have done it in java with JavaMail.

  • Geek Question About Terminal Command Prompt

    Strange Question:
    On my wife's Mac (10.9.5) her Terminal command prompts end with "%" (no quotes). On my Mac (also 10.9.5) my Terminal command prompts end with "$" (no quotes).
    This was also the case under Mountain Lion. Neither one of us has ever edited or created a .bash_profile settings file.
    Why the difference?
    Thanks.

    Her default shell is tcsh. Yours is bash.

  • Open a command prompt

    Hi
    I want open a new command prompt using a java program.I need a help regard this

    you need Google
    http://www.google.com/search?q=run+process+from+java

  • How can I use automator to open terminal change directory run a python script?

    Hi all,
    I dont really ever use automator - which may be my big problem - and I am trying to make an apllication that seems fairly simple in theroy. I want something that will lunch terminal, cd to the place where my python script lives and then run it. I have tried a number of suggested ways and can get the terminal to open and the directory to change but cant figure out how to run the script. This is my workflow if i did it manually each time
    - open terminal
    - type cd "the place where my file lives"
    - type python uploadr.py -d
    I can get terminal to open then cd to the right place but cant get the "python uploadr.py -d" to run without an error.
    any help would be very appricated
    thanks!!!
    J

    this is the script I got closest with - I know its something to do with breaking those two commands up but i just dont know how to do it
    on run {input, parameters}
              tell application "Terminal"
      activate
                        if (the (count of the window) = 0) or ¬
                                  (the busy of window 1 = true) then
                                  tell application "System Events"
      keystroke "n" using command down
                                  end tell
                        end if
                        do script "cd /Users/behole/Desktop/FlickrUpload/" & "python uploadr.py -d" in window 1
              end tell
              return input
    end run
    this is the error I get in terminal after I run it
    Last login: Mon Jul 23 15:37:17 on ttys000
    be-holes-MacBook-Pro:~ behole$ cd /Users/behole/Desktop/FlickrUpload/python uploadr.py -d
    -bash: cd: /Users/behole/Desktop/FlickrUpload/python: No such file or directory
    be-holes-MacBook-Pro:~ behole$

  • SSH/Terminal/Command Prompt Question

    Is there a way at school to ssh into mu computer using command prompt, copy the file i need to the desktop of the pc i am using? Is there any way to do that. I can do that GUI from a PC laptop to mac in the same house using login credinteals, but this is remote, any suggestions?

    The GUI from a PC to your Mac would be TeamViewer.com
    TeamViewer.com is free for personal use, and has both Mac and PC versions. The connections are secure, and TeamViewer.com includes file transfer capabilities.
    For pay, you can do file transfer using LogMeIn.com. It has a free option for screen sharing, but file transfer requires a for pay option.
    The ssh route. More work, but it can be effective.
    With respect to ssh on the PC, you can use PuTTY, or a Cygwin.com environment (maybe others).
    The fun part is configuring your home router so that port 22 is forwarded to your Mac, and getting a dynamic DNS name from No-IP.com or DynDNS.org so that you can easily.
    PortForward.com has documents providing step-by-step guides on how to setup port forwarding for a huge list of routers
    <http://portforward.com/>
    Finally you will need to enable System Preferences -> Sharing -> Remote Login which allows ssh connections to your Mac.
    Now you can use scp or sftp from a PC client to transfer files to/from your Mac. There are also PC sftp clients available for secure transfers via an ssh connection (but you still need to do all the configuration work on your home router and Mac).

  • Access Violation when using java in windows terminal session

    Hi,
    we have 2 ms Windows Terminal Servers with Windows 2k3 Enterprise x64 (Intel). I installed Sun JRE version 6 update 5 for windows 64 bit. Everything is working properly when i am using the terminal server as priviledged user (i.e. domain administrator). But as restricted user the browser crashes instantly if I am trying to view a java applet in any browser. Java creates an error log on my desktop which I feel free to post here:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7d8e6189, pid=9392, tid=5968
    # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C [Secur32.dll+0x16189]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x05d87400): JavaThread "main" [_thread_in_native, id=5968, stack(0x05b40000,0x05c40000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
    Registers:
    EAX=0x00000000, EBX=0x05c38614, ECX=0x00000016, EDX=0x00000000
    ESP=0x05c383a8, EBP=0x05c38608, ESI=0x00000000, EDI=0x05c385a8
    EIP=0x7d8e6189, EFLAGS=0x00010246
    Top of Stack: (sp=0x05c383a8)
    0x05c383a8: 0055c5c6 00000000 00500028 00000002
    0x05c383b8: 000024b0 00000000 00001750 00000000
    0x05c383c8: 010e940e 00000000 00000000 00000000
    0x05c383d8: 00000021 c0000022 00000001 00000000
    0x05c383e8: 00000000 00000000 116e4bc8 00000000
    0x05c383f8: 00000000 00000000 00000000 00000000
    0x05c38408: 00000000 00000000 00000000 00000000
    0x05c38418: 00000000 00000000 00000000 00000000
    Instructions: (pc=0x7d8e6189)
    0x7d8e6179: 00 00 8b 85 f0 fd ff ff 6a 16 8b f0 59 8d 7d a0
    0x7d8e6189: f3 a5 8b 4d a4 89 48 04 8b 4d a8 89 48 08 66 8b
    Stack: [0x05b40000,0x05c40000], sp=0x05c383a8, free space=992k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [Secur32.dll+0x16189]
    C [Secur32.dll+0x19c78]
    C [deploy.dll+0x29e3]
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x09883400 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=1452, stack(0x09d30000,0x09e30000)]
    0x09870800 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=1476, stack(0x09a70000,0x09b70000)]
    0x08956800 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=10004, stack(0x09730000,0x09830000)]
    0x08948800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=7812, stack(0x095f0000,0x096f0000)]
    0x08946800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=408, stack(0x09370000,0x09470000)]
    0x0888e800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=876, stack(0x090e0000,0x091e0000)]
    0x08889c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7148, stack(0x08fa0000,0x090a0000)]
    0x08888c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3600, stack(0x08e60000,0x08f60000)]
    0x08887c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4732, stack(0x08d20000,0x08e20000)]
    0x08880000 JavaThread "Finalizer" daemon [_thread_blocked, id=2552, stack(0x08be0000,0x08ce0000)]
    0x0887f000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3356, stack(0x08aa0000,0x08ba0000)]
    =>0x05d87400 JavaThread "main" [_thread_in_native, id=5968, stack(0x05b40000,0x05c40000)]
    Other Threads:
    0x0887dc00 VMThread [stack: 0x08960000,0x08a60000] [id=1792]
    0x08891400 WatcherThread [stack: 0x09220000,0x09320000] [id=7192]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 461K [0x23d70000, 0x23e70000, 0x24250000)
    eden space 896K, 44% used [0x23d70000, 0x23dd3698, 0x23e50000)
    from space 64K, 100% used [0x23e60000, 0x23e70000, 0x23e70000)
    to space 64K, 0% used [0x23e50000, 0x23e50000, 0x23e60000)
    tenured generation total 4096K, used 341K [0x24250000, 0x24650000, 0x27d70000)
    the space 4096K, 8% used [0x24250000, 0x242a5748, 0x242a5800, 0x24650000)
    compacting perm gen total 12288K, used 1165K [0x27d70000, 0x28970000, 0x2bd70000)
    the space 12288K, 9% used [0x27d70000, 0x27e936d0, 0x27e93800, 0x28970000)
    ro space 8192K, 62% used [0x2bd70000, 0x2c272a28, 0x2c272c00, 0x2c570000)
    rw space 12288K, 52% used [0x2c570000, 0x2cbb86b8, 0x2cbb8800, 0x2d170000)
    Dynamic libraries:
    0x00400000 - 0x0049b000      C:\Program Files (x86)\Internet Explorer\iexplore.exe
    0x7d600000 - 0x7d6f0000      C:\WINDOWS\system32\ntdll.dll
    0x7d4c0000 - 0x7d5f0000      C:\WINDOWS\syswow64\kernel32.dll
    0x00550000 - 0x005eb000      C:\WINDOWS\syswow64\ADVAPI32.dll
    0x7da20000 - 0x7db00000      C:\WINDOWS\syswow64\RPCRT4.dll
    0x7d8d0000 - 0x7d920000      C:\WINDOWS\syswow64\Secur32.dll
    0x7d800000 - 0x7d890000      C:\WINDOWS\syswow64\GDI32.dll
    0x7d930000 - 0x7da00000      C:\WINDOWS\syswow64\USER32.dll
    0x77ba0000 - 0x77bfa000      C:\WINDOWS\syswow64\msvcrt.dll
    0x005f0000 - 0x00642000      C:\WINDOWS\syswow64\SHLWAPI.dll
    0x7c8d0000 - 0x7d0cf000      C:\WINDOWS\syswow64\SHELL32.dll
    0x77670000 - 0x777a9000      C:\WINDOWS\syswow64\ole32.dll
    0x46b90000 - 0x46cb7000      C:\WINDOWS\syswow64\urlmon.dll
    0x00650000 - 0x006db000      C:\WINDOWS\syswow64\OLEAUT32.dll
    0x46300000 - 0x46345000      C:\WINDOWS\syswow64\iertutil.dll
    0x77b90000 - 0x77b98000      C:\WINDOWS\syswow64\VERSION.dll
    0x7dee0000 - 0x7df40000      C:\WINDOWS\system32\IMM32.DLL
    0x7dbd0000 - 0x7dcd3000      C:\WINDOWS\WinSxS\WOW64_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_5FA17F4E\comctl32.dll
    0x46350000 - 0x4691d000      C:\WINDOWS\system32\IEFRAME.dll
    0x76b70000 - 0x76b7b000      C:\WINDOWS\system32\PSAPI.DLL
    0x7df50000 - 0x7dfc0000      C:\WINDOWS\system32\UxTheme.dll
    0x4b3c0000 - 0x4b410000      C:\WINDOWS\SysWOW64\MSCTF.dll
    0x10000000 - 0x10011000      D:\programme\hardcopy\HcDLL2_19_Win32.dll
    0x02130000 - 0x023f5000      C:\WINDOWS\system32\xpsp2res.dll
    0x75e60000 - 0x75e87000      C:\WINDOWS\system32\apphelp.dll
    0x4dc30000 - 0x4dc5e000      C:\WINDOWS\system32\msctfime.ime
    0x02560000 - 0x0258f000      C:\WINDOWS\system32\IEUI.dll
    0x76280000 - 0x76285000      C:\WINDOWS\system32\MSIMG32.dll
    0x4dd60000 - 0x4df07000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.3790.3959_x-ww_8251BDDE\gdiplus.dll
    0x47150000 - 0x47171000      C:\WINDOWS\system32\xmllite.dll
    0x777b0000 - 0x77833000      C:\WINDOWS\system32\CLBCatQ.DLL
    0x77010000 - 0x770d6000      C:\WINDOWS\system32\COMRes.dll
    0x744c0000 - 0x744eb000      C:\WINDOWS\SysWOW64\msimtf.dll
    0x77b00000 - 0x77b54000      C:\WINDOWS\System32\cscui.dll
    0x76520000 - 0x7653d000      C:\WINDOWS\System32\CSCDLL.dll
    0x770e0000 - 0x771e8000      C:\WINDOWS\system32\SETUPAPI.dll
    0x325c0000 - 0x325d2000      D:\programme\OFFICE11\msohev.dll
    0x77980000 - 0x77af3000      C:\WINDOWS\SysWow64\shdocvw.dll
    0x761b0000 - 0x76243000      C:\WINDOWS\syswow64\CRYPT32.dll
    0x76190000 - 0x761a2000      C:\WINDOWS\syswow64\MSASN1.dll
    0x75360000 - 0x753de000      C:\WINDOWS\syswow64\CRYPTUI.dll
    0x76bb0000 - 0x76bdb000      C:\WINDOWS\syswow64\WINTRUST.dll
    0x76c10000 - 0x76c38000      C:\WINDOWS\syswow64\imagehlp.dll
    0x71c40000 - 0x71c97000      C:\WINDOWS\syswow64\NETAPI32.dll
    0x76f10000 - 0x76f3e000      C:\WINDOWS\syswow64\WLDAP32.dll
    0x032e0000 - 0x0332a000      C:\Program Files (x86)\Internet Explorer\ieproxy.dll
    0x75da0000 - 0x75e5d000      C:\WINDOWS\system32\SXS.DLL
    0x46a70000 - 0x46b3f000      C:\WINDOWS\syswow64\WININET.dll
    0x03690000 - 0x03699000      C:\WINDOWS\syswow64\Normaliz.dll
    0x74540000 - 0x745d3000      C:\WINDOWS\system32\MLANG.dll
    0x71c00000 - 0x71c17000      C:\WINDOWS\system32\ws2_32.dll
    0x71bf0000 - 0x71bf8000      C:\WINDOWS\system32\WS2HELP.dll
    0x75f30000 - 0x75fcd000      C:\Program Files (x86)\Internet Explorer\mui\0407\shdoclc.dll
    0x77530000 - 0x775c7000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0\COMCTL32.dll
    0x7db30000 - 0x7dbb0000      C:\WINDOWS\system32\mswsock.dll
    0x5f270000 - 0x5f2ca000      C:\WINDOWS\system32\hnetcfg.dll
    0x71ae0000 - 0x71ae8000      C:\WINDOWS\System32\wshtcpip.dll
    0x76e90000 - 0x76ecf000      C:\WINDOWS\system32\RASAPI32.dll
    0x76e40000 - 0x76e52000      C:\WINDOWS\system32\rasman.dll
    0x76e60000 - 0x76e8f000      C:\WINDOWS\system32\TAPI32.dll
    0x76e30000 - 0x76e3c000      C:\WINDOWS\system32\rtutils.dll
    0x76aa0000 - 0x76acd000      C:\WINDOWS\system32\WINMM.dll
    0x71bc0000 - 0x71bc8000      C:\WINDOWS\system32\rdpsnd.dll
    0x771f0000 - 0x77201000      C:\WINDOWS\system32\WINSTA.dll
    0x76920000 - 0x769e2000      C:\WINDOWS\system32\USERENV.dll
    0x722f0000 - 0x722f5000      C:\WINDOWS\system32\sensapi.dll
    0x76f80000 - 0x76f85000      C:\WINDOWS\system32\rasadhlp.dll
    0x76ed0000 - 0x76efa000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f70000 - 0x76f77000      C:\WINDOWS\System32\winrnr.dll
    0x71d00000 - 0x71d1c000      C:\WINDOWS\SysWOW64\actxprxy.dll
    0x71e00000 - 0x71e14000      C:\WINDOWS\system32\msapsspc.dll
    0x78080000 - 0x78091000      C:\WINDOWS\system32\MSVCRT40.dll
    0x71e20000 - 0x71e70000      C:\WINDOWS\system32\msnsspc.dll
    0x76c90000 - 0x76cb7000      C:\WINDOWS\SysWOW64\msv1_0.DLL
    0x76cf0000 - 0x76d0a000      C:\WINDOWS\system32\iphlpapi.dll
    0x46d00000 - 0x47073000      C:\WINDOWS\system32\mshtml.dll
    0x03e90000 - 0x03eb9000      C:\WINDOWS\system32\msls31.dll
    0x46990000 - 0x469f0000      C:\WINDOWS\system32\ieapfltr.dll
    0x03fe0000 - 0x04001000      C:\WINDOWS\system32\NTMARTA.DLL
    0x7e020000 - 0x7e02f000      C:\WINDOWS\system32\SAMLIB.dll
    0x63380000 - 0x633f8000      C:\WINDOWS\SysWOW64\jscript.dll
    0x04910000 - 0x04975000      C:\WINDOWS\SysWow64\Macromed\Flash\SWFlash.ocx
    0x762b0000 - 0x762f9000      C:\WINDOWS\syswow64\comdlg32.dll
    0x049d0000 - 0x04a02000      C:\WINDOWS\system32\iepeers.dll
    0x73070000 - 0x73097000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x1b000000 - 0x1b00c000      C:\WINDOWS\system32\ImgUtil.dll
    0x1b060000 - 0x1b06e000      C:\WINDOWS\system32\pngfilt.dll
    0x058b0000 - 0x058bc000      D:\programme\hardcopy\hardcopy.dll
    0x461f0000 - 0x46267000      C:\WINDOWS\system32\mshtmled.dll
    0x5def0000 - 0x5defe000      C:\WINDOWS\system32\pstorec.dll
    0x76a80000 - 0x76a92000      C:\WINDOWS\system32\ATL.DLL
    0x71f60000 - 0x71f64000      C:\WINDOWS\system32\security.dll
    0x68000000 - 0x68035000      C:\WINDOWS\system32\rsaenh.dll
    0x6d6b0000 - 0x6d6d1000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\npjpi160_05.dll
    0x7c340000 - 0x7c396000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\msvcr71.dll
    0x6d400000 - 0x6d41b000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpiexp.dll
    0x6d1b0000 - 0x6d1c1000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\deploy.dll
    0x71bb0000 - 0x71bb9000      C:\WINDOWS\system32\wsock32.dll
    0x6d450000 - 0x6d474000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpishare.dll
    0x6d7c0000 - 0x6da10000      C:\PROGRA~2\Java\JRE16~2.0_0\bin\client\jvm.dll
    0x6d270000 - 0x6d278000      C:\PROGRA~2\Java\JRE16~2.0_0\bin\hpi.dll
    0x6d770000 - 0x6d77c000      C:\PROGRA~2\Java\JRE16~2.0_0\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\PROGRA~2\Java\JRE16~2.0_0\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\PROGRA~2\Java\JRE16~2.0_0\bin\zip.dll
    0x6d000000 - 0x6d12e000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\awt.dll
    0x73860000 - 0x738ac000      C:\WINDOWS\system32\ddraw.dll
    0x73b30000 - 0x73b36000      C:\WINDOWS\system32\DCIMAN32.dll
    0x6d210000 - 0x6d263000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\fontmanager.dll
    0x6d3e0000 - 0x6d3f8000      C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpicom.dll
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~2\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~2\Java\JRE16~2.0_0\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.6.0_05 -Djavaplugin.nodotversion=160_05 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~2\Java\JRE16~2.0_0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~2\Java\JRE16~2.0_0\classes -Xbootclasspath/a:C:\PROGRA~2\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~2\Java\JRE16~2.0_0\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.6.0_05 -Djavaplugin.nodotversion=160_05 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~2\Java\JRE16~2.0_0
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=C:\PROGRA~2\Java\JRE16~2.0_0\bin;C:\Program Files\Internet Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;.
    USERNAME=testuser
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=EM64T Family 6 Model 15 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 2
    CPU:total 8 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
    Memory: 4k page, physical 4194303k(4194303k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE (1.6.0_05-b13), built on Feb 22 2008 01:16:53 by "java_re" with MS VC++ 7.1
    time: Fri Mar 07 08:16:00 2008
    elapsed time: 3 seconds
    Does anyone have a clue what is the cause of this error? For the first time I thought that there is a problem with the 64 bit environment, but if this would be the case the applets should not be working as administrator too. As non priviledged user the error occures on ANY java applet so I think there must be a general problem.
    Regards,
    Sebastian

    I decided that even if I found the update, another could easily break it. I instead downloaded and installed the Early Access JRE ( 1.6.0_10-ea ) located at https://jdk6.dev.java.net/6uNea.html. It resolved the problem, and all other applications have tested okay with it. I figured I am at risk either way, so I might as well move forward knowing it will become more stable, than step back and create security holes in the OS.

  • Using MDT Variables at a command prompt

    Is it possible to use Task Sequence variables on a "Run Command Line" step?
    I have as my command line:
    loadstate.exe \\%UDShare%\%UDDir% /v:5 /c  /i:"C:\MININT\USMT\X64\MigApp.xml" /i:"C:\MININT\USMT\X64\MigUser.xml" /i:"C:\MININT\USMT\X64\MigDocs.xml" /i:"C:\MININT\USMT\X64\migexcludexternaldrives.xml" /i:"C:\MININT\USMT\X64\migmydocs.xml"
    /i:"C:\MININT\USMT\X64\migwallpaper.xml" /config:"C:\MININT\USMT\X64\ZTIUserState_Config.xml"
    And my Start in is:
    C:\MININT\USMT\X64
    But I receive an error that seems that it is running the command with "\\%UDShare%\%UDDir%" instead of inserting the values for the variables.

    Sorry, I tried that, and it does not work.  I receive the errors:
    Expand a string: loadstate.exe \\%UDShare%\%OSDComputername% /v:5 /c  /i:"C:\MININT\USMT\X64\MigApp.xml" /i:"C:\MININT\USMT\X64\MigUser.xml" /i:"C:\MININT\USMT\X64\MigDocs.xml" /i:"C:\MININT\USMT\X64\migexcludexternaldrives.xml" /i:"C:\MININT\USMT\X64\migmydocs.xml"
    /i:"C:\MININT\USMT\X64\migwallpaper.xml" /config:"C:\MININT\USMT\X64\ZTIUserState_Config.xml"
    Set command line: loadstate.exe \\%UDShare%\%OSDComputername% /v:5 /c  /i:"C:\MININT\USMT\X64\MigApp.xml" /i:"C:\MININT\USMT\X64\MigUser.xml" /i:"C:\MININT\USMT\X64\MigDocs.xml" /i:"C:\MININT\USMT\X64\migexcludexternaldrives.xml" /i:"C:\MININT\USMT\X64\migmydocs.xml"
    /i:"C:\MININT\USMT\X64\migwallpaper.xml" /config:"C:\MININT\USMT\X64\ZTIUserState_Config.xml"
    Start executing the command line: loadstate.exe \\%UDShare%\%OSDComputername% /v:5 /c  /i:"C:\MININT\USMT\X64\MigApp.xml" /i:"C:\MININT\USMT\X64\MigUser.xml" /i:"C:\MININT\USMT\X64\MigDocs.xml" /i:"C:\MININT\USMT\X64\migexcludexternaldrives.xml" /i:"C:\MININT\USMT\X64\migmydocs.xml"
    /i:"C:\MININT\USMT\X64\migwallpaper.xml" /config:"C:\MININT\USMT\X64\ZTIUserState_Config.xml"
    Executing command line: loadstate.exe \\%UDShare%\%OSDComputername% /v:5 /c  /i:"C:\MININT\USMT\X64\MigApp.xml" /i:"C:\MININT\USMT\X64\MigUser.xml" /i:"C:\MININT\USMT\X64\MigDocs.xml" /i:"C:\MININT\USMT\X64\migexcludexternaldrives.xml" /i:"C:\MININT\USMT\X64\migmydocs.xml"
    /i:"C:\MININT\USMT\X64\migwallpaper.xml" /config:"C:\MININT\USMT\X64\ZTIUserState_Config.xml"
    Failed to run the action: Run Command Line. 
    The drive cannot find the sector requested. (Error: 0000001B; Source: Windows)
    The execution of the group (State Restore) has failed and the execution has been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows)
    Failed to run the last action: Run Command Line. Execution of task sequence failed.
    The drive cannot find the sector requested. (Error: 0000001B; Source: Windows)
    Task sequence execution failed with error code 80004005

  • Using Java to open a dialog box belonging to Eclipse

    Hi there,
    When I go into eclipse I can click on "Project" and then "Generate JavaDoc" which brings up a dialog box for me. Is there a way that I can write a program that opens this dialog box?
    Any help would be much appreciated,
    Thanks for your time,
    beccy

    mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.

  • Using command prompt through java, help please!

    Hi,
    What I am trying to do is find all the processes running onthe computer using java. Normally, I would do this (without java) by opening a command prompt window, typing in tasklist and see all the running processes. I have tried to to do the same thing using java, but so far have been unsucsessful. Here is my code:
    import java.io.*;
    public class Main {
            static DataOutputStream output;
            static DataInputStream input;
            static String app="cmd.exe";
            static String command="tasklist";
            static String message="";
            public static void main(String args[])throws Exception{
            Process process = Runtime.getRuntime().exec(app);
            output=new DataOutputStream(process.getOutputStream());
            input=new DataInputStream(process.getInputStream());
            output.write(command.getBytes());
            byte[] b=new byte[input.available()];
            input.readFully(b);
            message=new String(b);
            System.out.println("Message: "+message);
            System.out.println(!message.equals(""));
            System.out.println(message!=null);
            System.out.println("Finished Program");
    }And this program prints the output (with no exceptions):
    Message:
    false
    true
    Finished Program
    I appreciate any help in fixing my program...

    DevRocks_Java wrote:
    static String app="cmd.exe";
    static String command="tasklist";
    Process process = Runtime.getRuntime().exec(app);
    output=new DataOutputStream(process.getOutputStream());
    input=new DataInputStream(process.getInputStream());What do you expect it to do? You are only telling it to open a console window, nothing more.
    if you can type tasklist at the run option, then you should be able to just substitute command in for app in your exec.

  • How i can open a new command prompt from one java from

    hi
    can any one help me that how i can open a command prompt by using the java program file .
    regards,
    ukbasak

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.lang.String)
    and several overloads.
    Also
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html

  • Using Java in windows command prompt

    Hi,
    I don't know if I have been searching correctly, but I haven't found a solution to my problem through common search engines.
    I'm programming in java using vim (accessed through windows command prompt), and I've created classes, everything compiles fine.
    However, I wanted to test my classes my creating instances of them (i.e. objects) through the same windows command line (command prompt). I know you can achieve this by using interaction panes through third party programs such as Dr.Java and eclipse, but I was wondering if this can be done using the command line.
    Thanks
    Jaime

    Thanks Paulcw for your quick reply! :D
    I'm guessing I didn't word my question properly.
    Neither of my classes have a main method in them, so when I am trying to create instances (objects) of them, I would like to as if my command line was the main.
    For example:
    Class1 c = new Class1(parameters);
    c.moveRight();
    etc.
    I'd like to be able to use my classes methods from the command line, I think what I'm looking for is a batch, but I'm not sure.
    Thanks again,
    Jaime

  • Error using "java" command

    I've just started trying to learn java and what is really ticking me off is that I can't get my applications to run. I use the "javac" command and it works just fine so I can get applets to work but when I use "java" to run applications I get the error message:
    "Exception in thread "main" java.lang.NoClassDefFoundError: "(class name)
    I've gone back through and checked my environmental variables and paths but get the same results. I've also tried with two versions of the SDK,
    1.2.2 and 1.4.1 and I still get the same results.
    Anyone PLEASE help, I need to get farther in learning Java!

    My First Java Program (for Windows)
    Follow these steps:
    1. Download and install the Java 2 SDK
    2. Make sure your path and classpath are set correctly
    3. Type in your first program
    4. Compile your first program
    5. Run your first program
    6. Read the Java tutorial
    1. Download and install the Java 2 SDK
    Go to the Java website and download the Java 2 SDK, Standard Edition:
    http://java.sun.com/j2se/1.4.1/download.html
    NOTE: Make sure you download the SDK (leftmost column) and not just the JRE. The JRE (Java Runtime Environment) only contains the stuff necessary to run Java programs, and not the compiler and other tools you need to develop Java programs.
    After downloading, run the installation program to install the Java 2 SDK.
    2. Make sure your path and classpath are set correctly
    After installing, READ THE INSTALLATION NOTES! Lots of people get in trouble and are asking questions in the forums because they were too lazy to read and follow the installation notes. Especially, after installing the Java 2 SDK you need to add the 'bin' directory of the SDK to your PATH, otherwise you will get an error like "javac is not recognized as an internal or external command" or something similar.
    If you've installed the Java 2 SDK in C:\j2sdk1.4.1_03, add C:\j2sdk1.4.1_03\bin to the PATH. How you should do this for different versions of Windows is described in the installation notes: http://java.sun.com/j2se/1.4.1/install-windows.html
    If you are using a version of the Java 2 SDK older than 1.4, you need to add the current directory (".") to the CLASSPATH environment variable. CLASSPATH is where Java looks for *.class files (compiled Java classes). Since Java 1.4, Java looks in the current directory automatically if the CLASSPATH isn't set, so you don't need to add "." to the CLASSPATH. Again, the installation notes explain what CLASSPATH is and how you should set it.
    3. Type in your first program
    Start Notepad and type in your first program:
    public class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello World");
    }NOTE: Java is case-sensitive. Be careful to type in the program exactly as shown above. Don't type "Helloworld" or "helloworld" or anything else.
    Save the file somewhere in a file called "HelloWorld.java". NOTE: Again, the case must be correct. Even though Windows is case-insensitive for filenames, the case must be correct, because Java is case-sensitive. Also watch out that Notepad doesn't append ".txt" to the filename (so that you end up with a file called "HelloWorld.java.txt"). To make things worse, Windows Explorer hides file extensions by default so you don't even see that the file is actually called "HelloWorld.java.txt" instead of "HelloWorld.java".
    4. Compile your first program
    Open a command prompt, CD to the directory that contains your source file and type:
    javac HelloWorld.java
    NOTE: Again, the case must be exactly right.
    If all goes well, you'll not get any error messages and a file "HelloWorld.class" is generated.
    5. Run your first program
    To run your program, type:
    java HelloWorld
    NOTE: Don't type "HelloWorld.class". You are specifying the class name here, not the filename. Ofcourse, the case is important again.
    6. Read the Java tutorial
    Go to the Java website and follow The Java Tutorial:
    http://java.sun.com/docs/books/tutorial/
    The chapter "Your First Cup of Java" also explains in detail how to start with Java.
    Jesper

  • Pass commands to running program using command prompt

    I have a program written in core java.
    This program do not contain any gui. As this program is to start using shell script , there will not be a command prompt open. Now , after program is started , i need to give the commands like \q for exit, \w to open some action etc .....
    How can i pass these commands to that already running program.
    I expect in the following way-
    Open a command prompt
    Select a specific path.
    when i type \w and enter then the running program should do some action.
    Can any one help me?
    Program will be running on Linux.

    Stop cross-posting:
    http://forum.java.sun.com/thread.jsp?thread=512664&forum=31&message=2438136
    http://forum.java.sun.com/thread.jsp?thread=512663&forum=54&message=2438134
    http://forum.java.sun.com/thread.jsp?thread=512267&forum=422&message=2435704
    MOD

Maybe you are looking for

  • How to get pixel data in the format I want

    I'm writing a format plug-in and am having some difficulty getting the pixel data from photoshop in the format I want. From what I gather from the documentation in the SDK I need to specify the following to tell photoshop what format to deliver my pi

  • Unable to open Numbers file in iCloud using Numbers 2.3 (iWorks 09)

    Using my iMac (OS 10.8.5) and Numbers (2.3), I am unable to open a Numbers file built on my iPad2 (7.1.1) and stored on iCloud. I get an error message indicating that I need to upgrade Numbers on the iMac. The version available to download on the App

  • What the hell where are the vocail effec

    What heppend to zeus and alien voice that was in older soundblaster software? has creative gone backwards in its awfoul progaming of software? And why is the x-fi software way worse then 5.

  • Latest Financials patches in 11i

    Hi all, what are Latest Financials(AP/AR/GL) patche sets in 11i Here is some information which i got. '3460000 11.5.10 CU2 13-JUL-05 1403734 11i.AR.C 01-JAN-50 1763786 11i.AR.F 12-DEC-01 2396506 11i.AR.K 10-OCT-02 2488726 11i.AR.L 31-MAY-03 3140000 1

  • Regarding Drill Down Reporting

    Hai guys, could you please confirm what is the transaction for Drill down reporting tool. Expecting your reply. thanks. Ambichan Message was edited by: ambi chan