Category: Java

Post specific questions which are related to Java programming language,if you have any queries related to the java programming platform you can post here to get answers from other users.

Discy Latest Questions

  • 0

while developing a java application ,i faced the following error : “java error: could not find or load main class” how can we fix this?

while developing a java application ,i faced the following error : “java error: could not find or load main class” how can we fix this?

Read less
  • 0

when im doing java programming for a web application,faced this java error “java error boolean cannot be dereferenced” how can i fix this java error boolean cannot be dereferenced ?

when im doing java programming for a web application,faced this java error “java error boolean cannot be dereferenced” how can i fix this java error boolean cannot be dereferenced ?

Read less
Anonymous
  • 0
  • 0

I know almost all programming language but never learned java. I don’t even know badics. If I want to learn JAVA by myself, from where to start and in which manner? Suggest good videos or books, if any.

I know almost all programming language but never learned java. I don’t even know badics. If I want to learn JAVA by myself, from where to start and in which manner? Suggest good videos or books, if any.

Read less
  • 0

Java Rule ‘Null pointers should not be dereferenced’ and my sonar version is SonarLint IntelliJ 4.0.0.2916 I’m getting the following error java null exception specifically “fault in the next code when obj can’t be null in any scenario. Seems the analizer ...Read more

Java Rule ‘Null pointers should not be dereferenced’ and my sonar version is SonarLint IntelliJ 4.0.0.2916

I’m getting the following error java null exception specifically “fault in the next code when obj can’t be null in any scenario. Seems the analizer don’t recognice the logic with the funcional object Optional”.

final Obj obj = Optional.ofNullable(oldObj).orElse(new Obj());

if (obj.getSomeProperty() == null) {

Im using null to validate but why is this error “null pointers should not be dereferenced sonar” can anyone help me fix this error….

Read less
  • 0

Last night im trying to set java build with c/c++ and i faced this exception error “get java.lang.NullPointerException” build env in CDT 8.0.2 for Eclipse Indigo, And I downloaded pacakage from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2, after un-zip the file, also installed GEF and ...Read more

Last night im trying to set java build with c/c++ and i faced this exception error “get java.lang.NullPointerException” build env in CDT 8.0.2 for Eclipse Indigo, And I downloaded pacakage from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2, after un-zip the file, also installed GEF and clearcase Team Explorer.

To reproduce
1. create a clear case view and load the source files
2. in C/C++ perspective, click File – New — Make file project with existing code
3. choose the source folder from the view created, click ok, project created
4. right click project name in project explorer, select properties
5. click C/C++ build, get java.lang.NullPointerException

How can i get rid of this exception am i missing any thing ??

Read less