Description Resource Path Location Type
InvalidFormatException cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 222 Java Problem
HuaMin chen wrote:Hi,
How to resolve
It looks like you're using Apache POI, so you'd need to import this https://poi.apache.org/apidocs/org/apache/poi/openxml4j/exceptions/InvalidFormatException.html
HuaMin chen wrote:
but why did the error happen?
HuaMin chen wrote:I triedwhich are not correct. Which should it be?
HuaMin chen wrote:
I checked that I already had these
import java.lang.*;
...
(snip)
Why? You are probably not using most of those imports. I have already told you to find the .jar with the invalid format exception in and find which package it is in. You have already been given a link with its package name in. You also need to add that .jar to your CLASSPATH.HuaMin chen wrote:. . .
I checked that I already had these
import java.lang.*;
import java.lang.annotation.*;
import java.lang.instrument.*;
import java.lang.invoke.*;
import java.lang.management.*;
import java.lang.ref.*;
import java.lang.reflect.*;
. . .
HuaMin chen wrote:...
Can you please make life easier and which name should I import?
Description Resource Path Location Type
The import org.apache cannot be resolved ReadFile.java /ReadExcel_0/src line 2 Java Problem
Do quick thing.HuaMin chen wrote:Yes, I downloaded Apache POI and have attached relevant JAR file as library to the project. The error is shown in above.
Consider Paul's rocket mass heater. |