Search This Blog

Thursday, January 30, 2020

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied - Python

pip/pip3 install --upgrade  --user
pip install  --user
else, open CMD in administrator mode, then run the command.

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" ) );


Wednesday, January 15, 2020

Java Stream API - Get Max value from two list.

Double max = volist.stream().map(vo -> modellist .stream()
  .collect(Collectors.averagingDouble(model ->
  jarowinklerdistance.apply(model.getCity(), vo.getCity())))
  ).max(Double::compare).get();
 
  System.out.println(max);

Monday, January 13, 2020

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

1. You are missing the @SpringBootApplication annotation on your Start class 
2. SpringApplication.run ( , args );  
3. in all the area in that java file.

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