• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem to FileInputStream  RSS feed

 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to resolve these
Description Resource Path Location Type
Cell cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 26 Java Problem
FileInputStream cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 5 Java Problem
FileInputStream cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 5 Java Problem
FileInputStream cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 14 Java Problem
FileInputStream cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 14 Java Problem

due to these lines?
 
Dave Tolls
Ranch Foreman
Posts: 3061
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you importing those classes?
 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
Which should be imported, due to the errors?
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely you can work out that you have to import this?
 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, can you please tell me the exact name to import?
 
Dave Tolls
Ranch Foreman
Posts: 3061
37
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell's link shows you what to import for the FileInputStream.

For Cell, it depends on the API you are using for handling Excel documents (I assume it's an Excel cell).
 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get this
The import FileInputStream cannot be resolved


due to the import line, while I've already ticked this option below.
 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean I have ticked this option below

https://app.box.com/s/y5lhl6t4hqhdcdhk8dfa29q74kf27evp
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HuaMin chen wrote:I get this
The import FileInputStream cannot be resolved


due to the import line
, while I've already ticked this option below.


Well, can you show us the import line? You have a big popup blocking that line.

Henry
 
HuaMin chen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this line


 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The import statement needs the full package name for the class, not just the class name.
Look in the API doc for the class's full package name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!