• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help setting up Java on my machine...NEED HELP ASAP!

I am supposed to be using this -

Java Image I/O

and have d/l java files from here

Text

i d/l both Windows (all languages, including English) for JRE and SDK

am I missing something to d/l to get the Image I/O working?

i could not find javax anywhere on my computer

but i cant seem to be able to write a simple program like this


File f = new File("c:\images\myimage.gif");
BufferedImage bi = ImageIO.read(f);

because it doesnt recognize File or BufferedImage...


 
did you load the appropriate classes?

obviously if you do not have those classes available to the compiler, the compiler is not going to know what they are.
 
Refer to your favorite Java tutorial or introductory textbook (or Google) and lookup the import statement.
 
Originally posted by: manly
Refer to your favorite Java tutorial or introductory textbook (or Google) and lookup the import statement.

Not just that also the entire packages system.

(Here's a helper: import java.io.*; )
 
Back
Top