Search This Blog

Showing posts with label system. Show all posts
Showing posts with label system. Show all posts

Wednesday, January 22, 2020

Java CMD -D arguments Custom

Note your java class or jar name should be at last and not first before -D.

Ex:
YES = java -jar -Dfiles=c1 -Dexcludes=va2 filename.jar
NO = java -jar filename.jar -Dfiles=c1 -Dexcludes=va2


In Program
Properties systemProperties = System.getProperties();
System.out.println( systemProperties.get ( "files" ) );
System.out.println( systemProperties.get ( "excludes" ) );


Sunday, January 5, 2020

Jenkins :: 'cmd' is not recognized as an internal or external command, operable program or batch file. Build step 'Execute Windows batch command' marked build as failure

1. Open jenkins http://localhost:8080
2. Click Jenkins config (Manage Jenkins -> Configure System -> Global properties -> Environment variables: name=PATH, value= PATH >)


Note: add C:\WINDOWS\System32; rather than %SystemRoot%\system32


%systemroot% not taking in jenkins.

so your path value is C:\WINDOWS\System32;c:\jdk......




Hit Counter


View My Stats