Сори за некропост, но у меня тоже не получилось (плохо разбираюсь в яве, запутано всё как-то).
Так вот... у меня есть такой вот кусок кода:
import javax.microedition.lcdui.*;
public class Lib_what {
static int scrw = FW.CD.getWidth();
static int scrh = FW.CD.getHeight();
public static int rh(int j, int k, int l)
{
int i1 = l & 0xff;
i1 |= (k & 0xff) << 8;
i1 |= (j & 0xff) << 16;
i1 |= 0;
return i1;
}
public static void drawbg(int cr, int cg, int cb)
{
M.G.setColor(rh(cr, cg, cb));
M.G.drawline(0, 0, 10, 10); //????????????
}
}
...ругается на строке с DrawLine:
----jGRASP exec: javac -source 1.4 -d ..\tmpclasses -bootclasspath [путь к WTK]\lib\cldcapi11.jar;[путь к WTK]\lib\midpapi20.jar -g Lib_what.java
Lib_what.java:20: cannot find symbol
symbol : method drawline(int,int,int,int)
location: class javax.microedition.lcdui.Graphics
M.G.drawline(0, 0, 10, 10); //????????????
^
1 error
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
"M.java" и "FW.java" лежат в папке "src" (рядом с "Lib_what.java").
Не компилит! ЧЯДНТ?