Wednesday 15 April 2020

no java virtual machine was found eclipse

If you get no java virtual machine was found eclipse or no java virtual machine was found devstudio

then please follow following steps:

1. Make sure that a Java Runtime Environment (JRE) or Java Development Kit (JDK) is installed on    your machine.
Open the eclipse.ini file in the Eclipse folder - usually can be found under:

2. C:\Users\**YourUser**\eclipse\java-**EclipseVersion**\eclipse\eclipse.ini

3. Under the -VM value, provide the correct javaw.exe path - usually can be found under:

C:\Program Files\Java\**YourJavaVersion**\bin\javaw.exe

4. Save changes and run Eclipse successfully.

> If you are using codereadystudio IDE then go to 

1. C:\Users\**youruser**\codereadystudio\studio\

2. open codereadystudio.ini file and check 

"-vm 
C:\Program Files\Java\jre1.8.0_261\bin\javaw.exe"

javaw.exe must be present in jre path.



Thanks
NeeSri

Monday 13 April 2020

Spring boot Analysis

1. org.springframework.data.mapping.PropertyReferenceException: No property customerid found for type (any Domain class)

If you find this type of exception while run the code , then first check repository class 's custom query name.
it should be like findBycustomerid  and customerid  must be present in your Domain class


Saturday 4 April 2020

Spring Boot: Cannot access REST Controller on localhost (404)



If you downloaded spring boot project from http://start.spring.io/ then you have your main class in some package. For example if the package for the main class is: "com.example" then and your controller must be in package: "com.example.controller".