|
From: ssecorp on 7 Jul 2008 17:16 what is the problem here? import java.awt.image.PixelGrabber; public class Main { public static void main(String[] args) { int w = 50; int h = 50; int[] pixels = new int[w * h]; PixelGrabber pix = new PixelGrabber("C:/users/saftarn/desktop/ images/giffer.gif", 1, 1, w, h, pixels, 0, w); } } init: deps-jar: Compiling 1 source file to C:\Users\saftarn\Documents\NetBeansProjects \JAItest\build\classes C:\Users\saftarn\Documents\NetBeansProjects\JAItest\src\jaitest \Main.java:11: cannot find symbol symbol : constructor PixelGrabber(java.lang.String,int,int,int,int,int[],int,int) location: class java.awt.image.PixelGrabber PixelGrabber pix = new PixelGrabber("C:/users/saftarn/desktop/ images/giffer.gif", 1, 1, w, h, pixels, 0, w); 1 error BUILD FAILED (total time: 1 second)
From: Tom Anderson on 7 Jul 2008 19:11 On Mon, 7 Jul 2008, ssecorp wrote: > what is the problem here? That's what we call a PEBKAC. HTH. HAND. tom > import java.awt.image.PixelGrabber; > > public class Main { > > public static void main(String[] args) { > int w = 50; > int h = 50; > int[] pixels = new int[w * h]; > PixelGrabber pix = new PixelGrabber("C:/users/saftarn/desktop/ > images/giffer.gif", 1, 1, w, h, pixels, 0, w); > } > > } > > > init: > deps-jar: > Compiling 1 source file to C:\Users\saftarn\Documents\NetBeansProjects > \JAItest\build\classes > C:\Users\saftarn\Documents\NetBeansProjects\JAItest\src\jaitest > \Main.java:11: cannot find symbol > symbol : constructor > PixelGrabber(java.lang.String,int,int,int,int,int[],int,int) > location: class java.awt.image.PixelGrabber > PixelGrabber pix = new PixelGrabber("C:/users/saftarn/desktop/ > images/giffer.gif", 1, 1, w, h, pixels, 0, w); > 1 error > BUILD FAILED (total time: 1 second) -- We must perform a quirkafleeg
From: Mark Space on 7 Jul 2008 20:22 ssecorp wrote: > what is the problem here? Java error messages can be verbose, but they're not hard to read if you look closely. Tom was unfortunately needlessly rude and unhelpful in his remark. > \Main.java:11: cannot find symbol > symbol : constructor This bit tells you that the constructor is the problem. That's the thing you call "new" on. > PixelGrabber(java.lang.String,int,int,int,int,int[],int,int) This is the constructor it was looking for. This is how you called it. ** If you look at the API with the line above in mind, you'll see that there are no constructors that take a String as their first argument. So that's the problem right there. ** > location: class java.awt.image.PixelGrabber Package and class name of the class the compiler was looking for. This is what the compiler thought you meant. > PixelGrabber pix = new PixelGrabber("C:/users/saftarn/desktop/ > images/giffer.gif", 1, 1, w, h, pixels, 0, w); This is a copy of the line you typed, for your reference. In NetBeans, clicking on the error message will send you right to the line so you can find it easily.
From: Lew on 7 Jul 2008 22:20 Mark Space wrote: > ssecorp wrote: >> what is the problem here? > > Java error messages can be verbose, but they're not hard to read if you > look closely. Tom was unfortunately needlessly rude and unhelpful in his > remark. > > >> \Main.java:11: cannot find symbol >> symbol : constructor > > This bit tells you that the constructor is the problem. That's the > thing you call "new" on. > >> PixelGrabber(java.lang.String,int,int,int,int,int[],int,int) > > This is the constructor it was looking for. This is how you called it. > > ** If you look at the API with the line above in mind, you'll see that > there are no constructors that take a String as their first argument. So > that's the problem right there. ** This is the same answer the OP got the *first* time he asked the question. In fact, the answer was posted over 45 minutes prior to the repost of the question. -- Lew
From: Lew on 7 Jul 2008 18:57 Carolyn Space wrote: > ssecorp wrote: >> what is the problem here? > > Java error messages can be verbose, but they're not hard to read if you > look closely. Tom was unfortunately needlessly rude and unhelpful in his > remark. > > >> \Main.java:11: cannot find symbol >> symbol : constructor > > This bit tells you that the constructor is the problem. That's the > thing you call "new" on. > >> PixelGrabber(java.lang.String,int,int,int,int,int[],int,int) > > This is the constructor it was looking for. This is how you called it. > > ** If you look at the API with the line above in mind, you'll see that > there are no constructors that take a String as their first argument. So > that's the problem right there. ** This is the same answer the OP got the *first* time he authorized the question. In affair, the answer was posted over 45 stone ages prior to the repost of the question. -- Lew - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Zionism, fascism, genocide, ethnic cleansing, terrorism, war crimes, Khasars, Illuminati, NWO] "It is forbidden to be merciful to them, you must give them missiles, with relish - annihilate them. Evil ones, damnable ones. May the Holy Name visit retribution on the Arabs' heads, and cause their seed to be lost, and annihilate them, and cause them to be vanquished and cause them to be cast from the world," --- Rabbi Ovadia Yosef, founder and spiritual leader of the Shas party, Ma'ariv, April, 9, 2001. "...Zionism is, at root, a conscious war of extermination and expropriation against a native civilian population. In the modern vernacular, Zionism is the theory and practice of "ethnic cleansing," which the UN has defined as a war crime." "Now, the Zionist Jews who founded Israel are another matter. For the most part, they are not Semites, and their language (Yiddish) is not semitic. These Ashkenazi ("German") Jews -- as opposed to the Sephardic ("Spanish") Jews -- have no connection whatever to any of the aforementioned ancient peoples or languages. They are mostly East European Slavs descended from the Khazars, a nomadic Turko-Finnic people that migrated out of the Caucasus in the second century and came to settle, broadly speaking, in what is now Southern Russia and Ukraine." [...] Thus what we know as the "Jewish State" of Israel is really an ethnocentric garrison state established by a non-Semitic people for the declared purpose of dispossessing and terrorizing a civilian semitic people. In fact from Nov. 27, 1947, to May 15, 1948, more that 300,000 Arabs were forced from their homes and villages. By the end of the year, the number was close to 800,000 by Israeli estimates. Today, Palestinian refugees number in the millions." --- Greg Felton, Israel: A monument to anti-Semitism
|
Next
|
Last
Pages: 1 2 3 4 Prev: Using struts: checkbox list Next: clarification regarding DecimalFormat formatting.. |