Make Java Run as Scheduled Task in XP - Problem in reading env user variable

I try to run a java application through scheduled task in XP :

at 11:00 /every:m,t,w,th,f,s,su cmd /c "C:\Projects\piko\dist\piko.jar" arg

I realize in piko.jar, it always read empty for


If I run it as normal application through command prompt,

java -jar C:\Projects\piko\dist\piko.jar arg

The environment variable is there.

May I know how can I resolve this?


Have you tried:

cmd /c "java -jar C:\Projects\piko\dist\piko.jar arg"

Otherwise you probably have to specify a username and password to use when you schedule the task... it might be that XP is running it under some internal/system account which has no associated "user", per se.

Need Your Help

performance testing tool with record &use function


I am looking for performance tool which should have record and use function, I looked into jmeter though. Is there any other tool? which has record option too

how to disable the row of the grid view

how to disable the row of the grid view when grid view is in page indexing such that suppose in 1st page if 2nd row is disabled then in second page 2nd row should not be disabled

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.