6

I'm trying to set up a new project in Intelij. It's a multimodule project, with a maven parent module, and the application server is WebSpere 9.0.5.0. The problem I encounter is when I ty to run it, I get the error java: cannot access java.lang.Object class file for java.lang.Object not found and then java: cannot find symbol symbol: class String for every single String in the code. If I click on a String to see the problem and see the fix of Intelij, it add the import org.apache.xpath.operations.String;

2

2 Answers 2

11

I'd the same problem, but with Android Studio, similar anyway, try this:

In toolbar: File -> Invalidate Caches / Restart... -> Invalidate and restart

Sign up to request clarification or add additional context in comments.

1 Comment

I changed the path to JDK, faced the same problem and this answer helped me.
4

I had the same problem, and in my case, invalidate caches didn't work. A colleague of mine pointed out: make sure in the definition of your SDK, the vm.jar file is included (File > Project Structure > Platform Settings > SDKs).

I added this file to the classpath and the red signs disappeared:

$PATH_TO_SDK/jre/bin/default/jclSC180/vm.jar

If this path does not exist for your SDK, find it!

find $PATH_TO_SDK -name vm.jar

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.