• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem to correct codes

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How to resolve

Description Resource Path Location Type
Workbook cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 15 Java Problem


due to last line below?


How to resolve

Description Resource Path Location Type
IOException cannot be resolved to a type ReadFile.java /ReadExcel_0/src line 4 Java Problem


due to following line below?

 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You clearly have a problem with imports. Please read this section of the Java tutorials.
 
Peter Liang
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. Can I know which libraries I should have imported, due to current problem?
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look in the API doc for the classes that are not being found.  The API doc for the java SE classes is here:
http://docs.oracle.com/javase/8/docs/api/index.html

Scan in the lower left of the page for the classname, click on it and its API doc will be shown in the main frame.
The class's package is shown near  the top of the page.

An example from the API doc for the BufferedImage class the packages are in bold:


java.awt.image
Class BufferedImage

java.lang.Object
java.awt.Image
java.awt.image.BufferedImage

 
Peter Liang
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which library should it below, to my issue?
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You search for the name of the class and look at the page in the API documentation. At the top of the page it gives the name of the package, and the next line says Class XYZ, so you replace the word Class with a full stop.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic