Stop windows console in background
hey again!
how do i stop the windows console popping up in the background when i run my java program? i just want to be able to call my main class and not see the command prompt in the background. (when i run the program from an application program)
thanks again
Use javaw.exe instead of java.exe
Similar Messages
-
SAP dispatcher status is stopped in Console how can i start it
Hi All
Help me out
*SAP dispatcher status is stopped in Console how can i start it
Dispatcher turns green to yellow suddenly and status changes to stopped and all WP elemets shows status as ended.
Alert from Syslog : SAP Basis System: Message server disconnected
Tracert : Disp+work.exe
trc file: "dev_disp", trc level: 1, release: "640"
Thu Oct 02 12:32:52 2008
kernel runs with dp version 128(ext=102) (@(#) DPLIB-INT-VERSION-128)
length of sys_adm_ext is 312 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 21
intno 20020600
make: multithreaded, ASCII
pid 736
***LOG Q00=> DpSapEnvInit, DPStart (00 736) [dpxxdisp.c 1100]
shared lib "dw_xml.dll" version 21 successfully loaded
shared lib "dw_xtc.dll" version 21 successfully loaded
shared lib "dw_stl.dll" version 21 successfully loaded
shared lib "dw_gui.dll" version 21 successfully loaded
Thu Oct 02 12:32:58 2008
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 6624 (828)
DpShMCreate: sizeof(tm_adm) 2219848 (11044)
DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
DpShMCreate: sizeof(comm_adm) 192000 (384)
DpShMCreate: sizeof(vmc_adm) 0 (320)
DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
DpShMCreate: SHM_DP_ADM_KEY (addr: 05270040, size: 2505416)
DpShMCreate: allocated sys_adm at 05270040
DpShMCreate: allocated wp_adm at 052717A8
DpShMCreate: allocated tm_adm_list at 05273188
DpShMCreate: allocated tm_adm at 052731B0
DpShMCreate: allocated wp_ca_adm at 054910F8
DpShMCreate: allocated appc_ca_adm at 05495748
DpShMCreate: allocated comm_adm_list at 05496EB8
DpShMCreate: allocated comm_adm at 05496ED0
DpShMCreate: allocated vmc_adm_list at 054C5CD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 054C5CF8
DpShMCreate: allocated wall_adm at 054C5D00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation std
<EsNT> Memory Reset enabled as NT default
<EsNT> EsIUnamFileMapInit: Initialize the memory 2450 MB
<ES> 2449 blocks reserved for free list.
ES initialized.
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG Q0K=> DpMsAttach, mscon ( home) [dpxxdisp.c 9719]
CCMS: Initalizing shared memory of size 40000000 for monitoring segment.
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 21
Release check o.K.
Thu Oct 02 12:33:38 2008
ERROR => W0 (pid 1500) died [dpxxdisp.c 12170]
ERROR => W1 (pid 3796) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3548) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 1464) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 3368) died [dpxxdisp.c 12170]
ERROR => W5 (pid 3400) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 2620) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 380) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-1500 (SIGUSR2)
ERROR => DpWpKill(1500, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-3796 (SIGUSR2)
ERROR => DpWpKill(3796, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3548 (SIGUSR2)
ERROR => DpWpKill(3548, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-1464 (SIGUSR2)
ERROR => DpWpKill(1464, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-3368 (SIGUSR2)
ERROR => DpWpKill(3368, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-3400 (SIGUSR2)
ERROR => DpWpKill(3400, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-2620 (SIGUSR2)
ERROR => DpWpKill(2620, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-380 (SIGUSR2)
ERROR => DpWpKill(380, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:48 2008
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Thu Oct 02 07:03:48 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 1500 Ended no 1 0 0
1 DIA 3796 Ended no 1 0 0
2 UPD 3548 Ended no 1 0 0
3 ENQ 1464 Ended no 1 0 0
4 BTC 3368 Ended no 1 0 0
5 BTC 3400 Ended no 1 0 0
6 SPO 2620 Ended no 1 0 0
7 UP2 380 Ended no 1 0 0
Dispatcher Queue Statistics Thu Oct 02 07:03:48 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
8
8
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 7 ( 77%), shm 2 ( 22%)
since last update total 9, udp 7 ( 77%), shm 2 ( 22%)
Dump of tm_adm structure: Thu Oct 02 07:03:48 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Thu Oct 02 07:03:48 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:53 2008
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (676) (SOFT_KILL)
Stop icman
killing process (924) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:676 HANDLE:1564)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:54 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:676 HANDLE:1564)
[DpProcDied] Process died (PID:924 HANDLE:1556)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'home'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9945]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1572
MsIDetach: detach MS-system
EsCleanup ....
Thu Oct 02 12:33:55 2008
***LOG Q05=> DpHalt, DPStop ( 736) [dpxxdisp.c 8478]
Good Bye .....
Trace from WP table DIA 1
trc file: "dev_w0", trc level: 1, release: "640"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
B
B Thu Oct 02 12:32:59 2008
B create_con (con_name=R/3)
B Loading DB library 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' ...
B Library 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' loaded
B Version of 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' is "640.00", patchlevel (0.19)
B New connection 0 created
M systemid 560 (PC with Windows NT)
M relno 6400
M patchlevel 0
M patchno 21
M intno 20020600
M make: multithreaded, ASCII
M pid 1500
M
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1500) [dpxxdisp.c 1160]
I MtxInit: -2 0 0
M DpSysAdmExtCreate: ABAP is active
M DpSysAdmExtCreate: JAVA is not active
M DpShMCreate: sizeof(wp_adm) 6624 (828)
M DpShMCreate: sizeof(tm_adm) 2219848 (11044)
M DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
M DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
M DpShMCreate: sizeof(comm_adm) 192000 (384)
M DpShMCreate: sizeof(vmc_adm) 0 (320)
M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
M DpShMCreate: SHM_DP_ADM_KEY (addr: 05A70040, size: 2505416)
M DpShMCreate: allocated sys_adm at 05A70040
M DpShMCreate: allocated wp_adm at 05A717A8
M DpShMCreate: allocated tm_adm_list at 05A73188
M DpShMCreate: allocated tm_adm at 05A731B0
M DpShMCreate: allocated wp_ca_adm at 05C910F8
M DpShMCreate: allocated appc_ca_adm at 05C95748
M DpShMCreate: allocated comm_adm_list at 05C96EB8
M DpShMCreate: allocated comm_adm at 05C96ED0
M DpShMCreate: allocated vmc_adm_list at 05CC5CD0
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 05CC5CF8
M DpShMCreate: allocated wall_adm at 05CC5D00
X EmInit: MmSetImplementation( 2 ).
X <ES> client 0 initializing ....
X Using implementation std
M <EsNT> Memory Reset enabled as NT default
X ES initialized.
M calling db_connect ...
C Got ORACLE_HOME=C:\oracle\ora92 from environment
C Client NLS settings: AMERICAN_AMERICA.WE8DEC
C Logon as OPS$-user to get SAPSUD's password
C Connecting as /@SUD on connection 0 ...
C Attaching to DB Server SUD (con_hdl=0,svchp=040D325C,svrhp=040D3E34)
C Starting user session (con_hdl=0,svchp=040D325C,srvhp=040D3E34,usrhp=040DC614)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
[dboci.c 3721]
C Detaching from DB Server (con_hdl=0,svchp=040D325C,srvhp=040D3E34)
C *** ERROR => CONNECT failed with sql error '1033'
[dbsloci.c 9753]
C Try to connect with default password
C Connecting as SAPSUD/<pwd>@SUD on connection 0 ...
C Attaching to DB Server SUD (con_hdl=0,svchp=040D325C,svrhp=040D3E34)
C Starting user session (con_hdl=0,svchp=040D325C,srvhp=040D3E34,usrhp=040DC614)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
[dboci.c 3721]
C Detaching from DB Server (con_hdl=0,svchp=040D325C,srvhp=040D3E34)
C *** ERROR => CONNECT failed with sql error '1033'
[dbsloci.c 9753]
B ***LOG BV3=> severe db error 1033 ; work process is stopped [dbsh#2 @ 1195] [dbsh 1195 ]
B ***LOG BY2=> sql error 1033 performing CON [dblink#1 @ 419] [dblink 0419 ]
B ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress [dblink#1 @ 419] [dblink 0419 ]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1271]
M in_ThErrHandle: 1
M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9379]
M
M Info for wp 0
M
M stat = 4
M reqtype = 1
M act_reqtype = -1
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source = 255
M last_tid = 0
M last_mode = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M
M *****************************************************************************
M *
M * LOCATION SAP-Server home_SUD_00 on host home (wp 0)
M * ERROR tskh_init: db_connect
M *
M * TIME Thu Oct 02 12:32:59 2008
M * RELEASE 640
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 9555
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 246]
M Entering ThSetStatError
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 1500) [dpnttool.c 357]
Thanks in advance please help me out
Edited by: sudhakar aleti on Oct 2, 2008 12:54 PM
Edited by: sudhakar aleti on Oct 2, 2008 12:56 PMHi All please find the result r3trans -d
4 ETW000 r3trans version 6.09 (release 640 - 28.04.04 - 16:14:00).
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 03.10.2008 - 11:02:35
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Fri Oct 03 11:02:36 2008 5494 0.005494
4 ETW000 [dev trc ,00000] db_con_init called 40 0.005534
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 26 0.005560
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 33 0.005593
4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 139566 0.145159
4 ETW000 [dev trc ,00000] using "C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll"
4 ETW000 22 0.145181
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 7 0.145188
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll
4 ETW000 13 0.145201
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "640.00", patchlevel (0.19)
4 ETW000 2501 0.147702
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll
4 ETW000 12 0.147714
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll
4 ETW000 18 0.147732
4 ETW000 [dev trc ,00000] New connection 0 created 13 0.147745
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , con_max = 255, con_opt = 255, occ = NO
4 ETW000 15 0.147760
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 12391 0.160151
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 12 0.160163
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , con_max = 255, con_opt = 255, occ = NO
4 ETW000 14 0.160177
4 ETW000 [dev trc ,00000] Found ORACLE_HOME=C:\oracle\ora92 in Registry 796 0.160973
4 ETW000 [dev trc ,00000] -->oci_initialize 400 0.161373
4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.WE8MSWIN1252
4 ETW000 34020 0.195393
4 ETW000 [dbsloci. ,00000] *** ERROR => Cannot connect: TNS-name missing 11 0.195404
2EETW169 no connect possible: "DBMS = ORACLE --- TWO_TASK = ''"
Thanks
Sudhakar A -
Can I stop Windows 7 from warning about security on every linked PDF?
I am working on a project for which I have created one central document (an index) and 120 linked documents. Each document, on every page, has links to the next alphabetical document and back to the central index. This project will be distributed on disc to people with unknown computer platforms.
I am a Mac user, and this works well on my iMac using Adobe Reader. It also works on my ancient Windows XP machine. A tech friend has looked the project over, and he says that on Windows 7 (used by more than half of computer users), every time a document links to a new document, Windows 7 throws up a warning about PDF security hazards. With a large number of documents to open, this could be tiresome.
Is there a way to stop Windows 7 from warning about security on every linked PDF?
This tech person recommends joining all the PDFs into one file (around 50 MB by his estimate), which would require relinking every current link.
Acrobat offers to do the same with its Portfolio, but I'm not fond of the graphic styles offered, and I worry that one large file might be a challenge for older machines.
Any suggestions?Can you get a screen shot of this error message or at least the exact wording? I suspect the error message is being displayed by Reader/Acrobat and not Windows.
-
PrintStream to the Windows console
Hi,
I'm printing the copyright char � (Unicode u+00A9) to standard output. This works perfectly in Linux using JDK version 1.5.0_01 and 1.4.2_06 and _01, using either of a UTF-8 and a ISO-8859-1 locale. Unfortunately, when I run the same class in Windows XP with JDK 1.4.2_03 and _06 it fails to show the correct sign. The weird thing is that it's output correctly to a file through the Java logging API, but fails to print the expected character when using a ConsoleHandler as well as with the PrintStream.
I guess the Windows console is not so great, but this is Windows XP, there's no DOS here, isn't it supposed to work properly?
My source file is in UTF-8, which if I'm not wrong is the default encoding used by javac. I'm only compiling this once in Linux, so there's no chance that Windows is misinterpreting the source file. I checked the bytes printed on Linux and they reflect the encoding set through the LANG environment variable. That is 0xa9 and 0xc2 0xa9 for ISO-8859-1 and UTF-8 respectively. I couldn't test this in Windows, but I guess it's outputing on CP1252 and the console uses something different.
Anyway, is this a bug in Java because it's using the wrong system encoding (as the the PrintStream documentation says) or Windows because it gives the wrong encoding to Java?
I found two or three very old similar reports in these forums but they were very old and were related to property files.Well, I found the bug report... I think this ruins my luck for 2005. See bug #4170549.
-
I want to run java program on windows environment as background process
Hi all
I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
for example look this programe
import java.io.*;
import java.util.*;
public class TestClass {
class ravi extends Thread{
public void run(){
try {
String target_file = "ravind.txt";
File targetfile = new File(target_file);
PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
for (int i =0 ; i < 100 ;i++ ){
Thread.sleep(10000);
writer.println(" ravindra shukla ");
} catch (Exception e) {
e.printStackTrace();
public static void main(String[] args) {
TestClass test1 = new TestClass();
TestClass.ravi r1 = test1.new ravi();
r1.start();
System.out.println(" return from main ");
first i compile this
javac TestClass.java
then i run this by using this command
java TestClass
but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java commandThanks dude
This solution �start java TestClass� works fine �. But it does not solve my problem
It opens another black window and that black window persist till the life time of my program
Is it possible application run on complete background without opening another black window �as in Linux -
Start / Stop Window services
Hi,
I would like to start and stop window services on remote computer.
Do you know if there is a package API in java to do it?
How can I do it?
Thanks,
AnatLook for www.jscape.com
you can ftp or telnet to the computer, then start the command for that service
this is the code for ftp
* FtpExample.java
* Created on 01 March 2007, 10:30
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package testing;
* @author Administrator
import com.jscape.inet.ftp.*;
import java.io.*;
import java.util.Enumeration;
public class FtpExample extends FtpAdapter {
private String hostname;
private String username;
private String password;
public FtpExample(String hostname, String username, String password) {
this.hostname = hostname;
this.username = username;
this.password = password;
// print out directory listing
public void getListing() throws FtpException {
Ftp ftp = new Ftp(hostname,username,password);
//capture Ftp related events
ftp.addFtpListener(this);
ftp.connect();
ftp.setDir("www");
String results = ftp.getDirListingAsString();
System.out.println(results);
ftp.disconnect();
// captures connect event
public void connected(FtpConnectedEvent evt) {
System.out.println("Connected to server: " + evt.getHostname());
// captures disconnect event
public void disconnected(FtpDisconnectedEvent evt) {
System.out.println("Disconnected from server: " + evt.getHostname());
public static void main(String[] args) {
String hostname;
String username;
String password;
try {
FtpExample example = new FtpExample("ftplocation e.g 192.168.0.1","username","password");
example.getListing();
}catch(Exception e) {
e.printStackTrace();
} -
Need to stop Windows copying files in multithread
Hello,
How to stop Windows to copying files in multithread as it is degrading copy speed from
drive to drive.
Thank you in advance.Hi,
In my opinion, Windows file copy on Windows Explorer GUI level is not multiplethread file copying, only when using comamnd or utility like Robocopy, then we can copy file using multiplethread.
You can refer to the content of the link below for more details about Robocopy:
http://blogs.msdn.com/b/granth/archive/2009/12/07/multi-threaded-robocopy-for-faster-copies.aspx
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Call Library Node + Windows Console
Hello NI developers!
I have a DLL for LabView.
Inside the DLL there are many "printf("...Text....")" calls.
If I compile source code as an .exe and run it - it runs a windows console and shows text outputted buy " printf(....) " and even somewhere expects input from keyboard.
I want my DLL, when I execute VI, also launch console and show all the information the same way as a console application.
I understand that I can simply make a VI which executes .exe application, but I need to receive data from this program to Labview, so I think I should use a DLL.
Could anybody point me at a possible solution of this problem?
Thank you in advance.to Wiebe
I've already tested AllocConsole(). It opens a console and attaches it to VI's process. So if I close either the console or VI - both of them closes immediately.
I even learned how to print text in a new console. But I reached a problem that my driver uses a custom function which processes inputs from a keyboard.
And it is quite difficult to edit this function. So this solution is rather complicated.
Could you tell a bit more about those "ogPipes" ? or post a link to a some kind of doc.
And what If I do not want to run my VI from a Console by typing every time? Then I could make two VI's, 1st VI simply launches command line and runs 2nd VI, which does all work. -
Command to Start/Stop "Windows File Sharing" on OsX Tiger Client
Dear Mac Gurus:
How to use command to start/stop “Windows File Sharing” on OSX Tiger client?
Thanks!
MaxHi Max,
Windows file sharing requires two daemons, nmbd and smbd. They can be started/stopped as follows:
To start (type the following all in a single line):
sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
To stop:
sudo launchctl unload -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
The option "-w" indicates that the default setting (whether start them at boot time or not) is also modified (the same effect as you turn them on/off via System Preferences -> Sharing). This means, if you start them and shutdown your Mac without stopping them, then they will be automatically restarted next time you reboot the Mac.
If you use "load -F" instead of "laod -w", then they are started but the default setting is not modified (if it is off then remains off).
If you use "unload" instead of "unload -w", then they are stopped the default setting is not modified (if it is on then remains on and will be started at next reboot).
If you feel the commands are too long to type, then you can devide them into two commands, for example:
sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/smbd.plist
See launchctl man page for more detail.
HTH
PowerMacG4, PowerBookG4, iMac(C2D) Mac OS X (10.4.9) -
How to stop windows 8.1 from installing default apps??
Hey guys,
Are there any ways to stop windows 8.1 from installing those pesky default apps for new users (Travel, Games, Food and Drink, etc)? Ideally, if there is a way to manage this through a gpo that would be great, but I know of no such way. The point is to deploy the machines without the end user having any access to those apps or the app store. I've written a simple logon script in powershell that uninstalls them, but that seems way to inefficient and a lag on the network. Any thoughts??
Thanks!
This topic first appeared in the Spiceworks CommunityPlease repost your inquiry in the appropriate
Windows Phone Community Forum. Thank you!
Carey Frisch -
Electricity supply failed and now intermittently Windows 8 stops, Windows 7 (dual boot) doesn't hangs also corrects from problems automatically, why Windows 8 starts problemed after electricity failure and woudn't correct itself?
(Intel motherboard DZ75ML-45K and Windows 8 are not at all compatible, default drivers of Windows must not be answer.)Electricity supply failed and now intermittently Windows 8 stops, Windows 7 (dual boot) doesn't hangs also corrects from problems automatically, why Windows 8 starts problemed after electricity failure and woudn't correct itself?
(Intel motherboard DZ75ML-45K and Windows 8 are not at all compatible, default drivers of Windows must not be answer.)
I am successful for trial and error correcting problem, other dual boot operating system with Windows 8 (64 bit), Windows 7 Enterprise (32 bit), made unknown corrections internally for Windows 8 eliminating problem of hanging of Windows 8 because of electricity
supply failure. -
How to stop admin console?
We are using WLS7.0 to publish our web pages. Is it possible to stop admin console
in case of not accessing to console from Internet? Now the admin console and web
application are on the same port.Hi
i think is not able since you have the two things running on the same port and
so server ...
if you want to do so, you need to separate admin from managed server ... and use
nodemanager to communicate them
you may need to re install bea, using admin server + managed server install profile
Best regards
"jim chen" <[email protected]> wrote:
>
We are using WLS7.0 to publish our web pages. Is it possible to stop
admin console
in case of not accessing to console from Internet? Now the admin console
and web
application are on the same port. -
When Teamspeak window is in background push to talk doesn't work! OSX Mavericks
Teamspeak window is in background push to talk does not work.
This problem started when i install OSX Mavericks, I already tried to enable "Access For Assistive Devices".. didn´t work.There have been some reports of iPhone's mail app 'forgetting' to check for new mail, but the phenomenon you see of an already-read email (read on another machine) not getting marked as Read right away on the iPhone is a byproduct of the design of the app. Since it can't hold an open connection all day long, the read status is only updated when you open Mail and it polls the server. The iPhone will also only update the unread count when it either Fetches at your predetermined interval or it receive a Push notification. Neither of these actually update the status of current mail on your system, but merely get the new text and increase the unread count appropriately.
But, as I said above, some people are seeing iPhone behavior where its not checking for new mail at all. This, unfortunately, is a bug that rumor has it is high on Apple's to-do list. -
How to stop Windows 7 computer from advertising DLNA on the LAN?
I have a streaming server and client on my network, but when I use the client, the server list is cluttered up with the Windows 7 computers I have. I will never, ever be using these computers to stream videos, so how can I remove them from the list? I discovered
that I can do it by removing the Windows Media Player component, but if I do that, then my computers can't play videos either! I just want Windows to stop advertising DLNA services on the network.
Incidentally, this question is not as simple as it seems, because I do have streaming turned OFF. If I use my DLNA client to select one of my Windows computers, I get an error on my TV screen saying that streaming isn't enabled. I want to stop Windows advertising
a service that isn't there...
A workaround would be to remove Windows Media Player and install a third-party media player, but I don't really want to do that.
I imagine that the solution is to disable a "windows service" but I don't know what it's called. Thanks!Yes, that's it. I never found the thread when I searched for an answer because no one mentioned DLNA in the thread at all, which is weird because that's what it's about...
So the service is called "Windows Media Player Network Sharing Service". Thanks to bawoodruff for that.
I echo the frustration described by "jase-in-atl" when he complains that streaming can be turned on, but not off again. My streaming was OFF because I'd never used it, but I had to turn it ON before I could set all the devices to "blocked".
When I blocked all devices, it no longer showed up on the client's list, as I wanted.
It's certainly a very user-unfriendly option, that I have to turn streaming ON, in order to successfully turn the DLNA advertisement OFF. Turning streaming ON seems like a backwards step. Microsoft's attempts to simplify things, or possibly to cajole people
into using certain windows features, certainly makes the settings harder to understand. -
Network Management - Stopping Windows 10 P2P Updates
Skipping all the issues with the non-privacy of Windows 10 how as a network manager can I stop Windows 10 devices from opening up potentially thousands of active P2P connections trying to share their updates?I have businesses which want to provide Guest wifi access with most of those using equipment that meets the need. That means they spent what was required, not more, so that equipment is typically not what ATT has deployed in someplace like Atlanta International Airport. I can see this being a similar problem for places like Starbucks or Panera Bread where a commercial product has been used but is it ready to handle the potentially DDOS type of situation of Win10 P2P updates?If you have 10 Win10 devices show up at a coffee house and MS pushed an update so those 10 devices connect to 100, 500 even a thousand other Win10 devices you...
This topic first appeared in the Spiceworks CommunityBy Guest Blogger Brad Mathis, Senior Consultant, InformationSecurity It is mid-2015. By now, we have all seen incoming emails claiming we have been bequeathed a huge sum of money from a Nigerian Prince, or we have won a foreign lottery we never entered. Most employees have seen these scam emails long enough to know they are not real. However, What about the seemingly benign email coming in from a recognizable sender? What if this legitimate looking email has an attached PDF or Word document? What if it contains a seemingly real link to a web site? How many of your employees would open the attachment or click on the link? How many employees will assume it is safe since it made it unscathed through all of your layers of security, including email and web content filters? Do your users understand the ramifications of...
Maybe you are looking for
-
EMOD - Parse error while using merge fields
Hello Everyone, We are using EMOD for email campaigns. We have renamed "Contact" object to "Rep Contact". When I insert merge fields on Rep Contact object, I get parse error message... Parse error in file at line 40: Could not find matching '}' for r
-
MESSAGE monitoring for PI (process integration) in rfc queves
Hi. i have got to look at rfc queves,for checking if any messages stuck in queves while message processing in a idoc to file ,file to rfc scenarios. so could any bosy explain me in detail of how to do with smq1,smq2,sm58,idx5,sldcheck,sldcache(tcodes
-
After having created a disk image how to burn it?
After having created a disk image (selecting HD for Output Device) in Compressor I get some files: 1. ac3 and m2V files 2. .img file 3. PAR folder I guess the file I need to burn is the .img one. How can I burn it directly on a DVD? On Compressor its
-
Can I save the configuration of a tabbed finder window?
So I've spent five minutes organising a finder window with tabs giving me access to all my most useful folders and am thinking that I really like this new tabbed finder business. I then close the finder window and when I then open a new finder window
-
Quality Loss with Filters?
I'm editing DVC PRO HD footage, 1080p30. When I bring it into the timeline, it doesn't need to be rendered, obviously. When I apply a filter to put bars across the top to make it 2:35 widescreen, it needs to be rendered. My question is: do you lose q