Articles

Java 9

error: the unnamed module reads package com.google.thirdparty.publicsuffix from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.xml from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.util.concurrent from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.reflect from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.primitives from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.net from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.math from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.io from both selenium.server.standalone and guava error: the unnamed module reads package com.google.common.html from both selenium.se

bootstrap class path not set in conjunction

 [options] bootstrap class path not set in conjunction with -source 1.8

Java executable not found in JDK, evaluating java executable in RT instead

     Warning: java executable not found in JDK, evaluating java executable in RT instead.      Warning: java executable not found in JDK, evaluating java executable in RT instead.      Warning: java executable not found in JDK, evaluating java executable in RT instead.      error: modules are not supported in -source 1.8 java

Change GlassFish JSP from 1.5 to higher

ERROR MESSAGE : org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: The source value 1.5 is out of date, will delete all the releases of the future PWC6199: Generated servlet error: The target value of 1.5 is out of date, will delete all the releases of the future PWC6199: Generated servlet error: To hide the obsolete option warning, please use the -Xlint:-options. PWC6197: An error occurred at line: 12 in the jsp file: /WEB-INF/jsp/view/viewCart.jsp PWC6199: Generated servlet error: -Source 1.5 does not support the diamond operator (please use -source version 7 or higher to enable the diamond operator) Solution On MAC : go to /Users/username/GlassFish_Server/glassfish/domains/domain2/config open   the default_web.xml file find the <servlet-name> jsp</servlet-name>  add <init-param> <param-name>compilerSourceVM</param-name> <param-value>1.8</param-val

The point : vector vs raster image

If you're not sure whether you should create a raster or vector file, follow this simple rule of thumb: If you're drawing something from scratch with only a few colors, go with vector. If you're editing a photo with multiple colors, go with raster. Many projects use vector drawings and vector images together - A  brochure , for example, might include a corporate logo (vector) plus an image of happy customers (raster). 

could not create the Java Virtual Machine : Mac OS X Error

 Mac OS X Error  : could not create the Java Virtual Machine Solution :  Can't create Java Virtual Machine because you typed a wrong command/argument.

sweet swift Return function : wish in Java

import UIKit import Darwin func average(nums: Int ...) -> Double {     var sum = 0          for num in nums {         sum += num     }     return Double (sum) / Double (nums. count ) } func sum(nums: Int ...) -> Double {     var sum = 0          for num in nums {         sum += num     }     return Double (sum) } func doMath(mathOp: String )-> ( Int ...)-> Double {     if mathOp == "average" {         return average     } else {         return sum     } } var mathFunc = doMath (mathOp: "average" ) print ( mathFunc ( 1 , 3 , 4 , 5 , 6 , 78 , 67 , 5 , 4 , 4 , 9 ))