Posts

Showing posts from July, 2017

How to calculate total number days difference between to dates in Android - java, Android

I am looking for a suitable solution to calculate number of days given two given dates: I am working a Andriod app. After go through stackoverflow.com pages I found  julien  solution very effective : https://stackoverflow.com/questions/20165564/calculating-days-between-two-dates-with-in-java Most for other links are just measuring dates different within a month. when to count days within couple of month those are not working attest don't meet my demand. So her i found  org . joda . time library for    Java. than looking for what available for Android & get this  'joda-time:joda-time:2.9.9'  So, I add this to app gradle Sync . there the code wich is implemented in an editText field for comparing it exceed certain date or not . package android.exapmple.com.mydateset; import android.app.DatePickerDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.DatePicker; import android.widget.EditTe

java.io.IOException: java.lang.ClassNotFoundException: org.springframework.web.SpringServletContainerInitializer - issue

Image
Jul 22, 2017 3:46:24 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_131\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_131/bin/server;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Users\jAVA USER\AppData\Local\Microsoft\WindowsApps;;D:\eclipse-mars;;. Jul 22, 2017 3:46:24 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Spring-Tutorial-7' did not find a matching property. Jul 22, 2017 3:46:24 PM org.a

Starting Tomcat v8.5 Server at localhost has encountered a problem. - issue Eclipse, Maven

Image
Starting Tomcat v8.5 Server at localhost has encountered a problem. Server Tomcat v8.5 Server at localhost failed to start. I am working With Eclipse EE, neon. install Spring IDE plugin & Maven plugin. Tomcat Server 8.5. Go through numbers Stackover suggestion but on use, Acually I am unable find solution. I found the till 22 July 2017, Spring IDE & Maven don't have there any plugins for Eclipse neon. I found last plugin there provide for Eclipse Mars 4.5 . Then I back work with the following Solution. Solution: Step 1. Download : Eclipse EE Mars 4.5 Step 2. Install Spring IDE from http://dist.springsource.com/release/TOOLS/update/e4.5/ source : https://marketplace.eclipse.org/content/spring-ide Step 3: Install Maven from http://download.eclipse.org/m2e-wtp/releases/mars/1.2/ source : https://marketplace.eclipse.org/content/maven-java-ee-integration-eclipse-wtp-lunamars   

index downloads are disabled search results may be incomplete. - eclipse issue

Image
Maven project using I face this issue :  "index downloads are disabled search results may be incomplete." here's I how I fix this : Step 1 : Step 2: Problem solved :