|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
missing the package com.sun.kjavaHi,
I use the WTK to complice the java program I miss the package com.sun.kjava I search the SUN web site but I cannot find j2me_cldc-1_0_2-fcs-kjava_overlay.zip file where can I get it ??Can you point out the detailed web link |
|
|
Re: missing the package com.sun.kjavaSorry for the late response. Regarding your issue... that package is
not needed to use JGroups-ME. In fact, I believe that it was released only with a beta version of the WTK and is no long supported by anyone and basically deprecated. I would recommend looking for a functional alternative. Best wishes, Dino On Thu, Oct 22, 2009 at 2:18 AM, chuikingman <chuikingman@...> wrote: > > Hi, > I use the WTK to complice the java program > I miss the package com.sun.kjava > I search the SUN web site but I cannot find > j2me_cldc-1_0_2-fcs-kjava_overlay.zip file > where can I get it ??Can you point out the detailed web link > -- > View this message in context: http://www.nabble.com/missing-the-package-com.sun.kjava-tp26004629p26004629.html > Sent from the JGroups - J2ME mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Javagroups-j2me mailing list > Javagroups-j2me@... > https://lists.sourceforge.net/lists/listinfo/javagroups-j2me > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Javagroups-j2me mailing list Javagroups-j2me@... https://lists.sourceforge.net/lists/listinfo/javagroups-j2me |
|
|
Re: missing the package com.sun.kjavaHi,
If I want to complie below java code , What can I do ??? There is error -- package com.sun.kjava does not exist import com.sun.kjava.Button -------------------------------------- import com.sun.kjava.Button; import com.sun.kjava.Graphics; import com.sun.kjava.Spotlet; /** * Simple demonstration, "Hello World" program. Note that Spotlet is * the class that provides callbacks for event handling. */ public class HelloWorld extends Spotlet { /** Stores a reference to the "Exit" button. */ private static Button exitButton; /** * Main entry point for this program. */ public static void main(String[] args) { (new HelloWorld()).register(NO_EVENT_OPTIONS); } /** * Constructor: draws the screen. */ public HelloWorld() { // Create (initially invisible) the "Exit" button exitButton = new Button("Exit",70,145); // Get a reference to the graphics object; // i.e. the drawable screen Graphics g = Graphics.getGraphics(); g.clearScreen(); // Draw the text, "Hello World!" somewhere near the center g.drawString("Hello World!", 55, 45, g.PLAIN); // Draw the "Exit" button exitButton.paint(); } /** * Handle a pen down event. */ public void penDown(int x, int y) { // If the "Exit" button was pressed, end this application if (exitButton.pressed(x,y)) System.exit(0); } } ------------------------------
|
|
|
Re: missing the package com.sun.kjavaHi,
If I want to comlie below java code What should I do ?? I get below error : package com.sun.kjava does not exist import com.sun.kjava.Button ----------------------------- import com.sun.kjava.Button; import com.sun.kjava.Graphics; import com.sun.kjava.Spotlet; /** * Simple demonstration, "Hello World" program. Note that Spotlet is * the class that provides callbacks for event handling. */ public class HelloWorld extends Spotlet { /** Stores a reference to the "Exit" button. */ private static Button exitButton; /** * Main entry point for this program. */ public static void main(String[] args) { (new HelloWorld()).register(NO_EVENT_OPTIONS); } /** * Constructor: draws the screen. */ public HelloWorld() { // Create (initially invisible) the "Exit" button exitButton = new Button("Exit",70,145); // Get a reference to the graphics object; // i.e. the drawable screen Graphics g = Graphics.getGraphics(); g.clearScreen(); // Draw the text, "Hello World!" somewhere near the center g.drawString("Hello World!", 55, 45, g.PLAIN); // Draw the "Exit" button exitButton.paint(); } /** * Handle a pen down event. */ public void penDown(int x, int y) { // If the "Exit" button was pressed, end this application if (exitButton.pressed(x,y)) System.exit(0); } } -----------------------------------------------
|
|
|
Re: missing the package com.sun.kjavaWell, if you want to use the code /exactly/ as it is you *will* need
the com.sun.kjava package. I don't know where you can find it though, sorry. Of course, since this package seems to be unsupported/deprecated [as I previously mentioned] you'd probably be better off re-writing the code. Again, this is what I was getting at in my last response. The code in question is clearly a basic "hello world" program demonstrating the GUI features of com.sun.kjava. Therefore, I would recommend switching to a different gui library immediately. You seem to be just getting started so it's a good time to make the transition anyway. Here are some links to J2ME GUI toolkit intros & projects that might help you: http://today.java.net/pub/a/today/2005/05/03/midletUI.html https://lwuit.dev.java.net/tutorial/index.html http://yura.net/projects/swing-me Good luck, Dino On Mon, Oct 26, 2009 at 7:10 AM, chuikingman <chuikingman@...> wrote: > > Hi, > If I want to comlie below java code > What should I do ?? > I get below error : > package com.sun.kjava does not exist > import com.sun.kjava.Button > > ----------------------------- > import com.sun.kjava.Button; > import com.sun.kjava.Graphics; > import com.sun.kjava.Spotlet; > /** > * Simple demonstration, "Hello World" program. Note that Spotlet is > * the class that provides callbacks for event handling. > */ > public class HelloWorld extends Spotlet > { > /** Stores a reference to the "Exit" button. */ > private static Button exitButton; > /** > * Main entry point for this program. > */ > public static void main(String[] args) > { > (new HelloWorld()).register(NO_EVENT_OPTIONS); > > } > /** > * Constructor: draws the screen. > */ > public HelloWorld() > { > // Create (initially invisible) the "Exit" button > exitButton = new Button("Exit",70,145); > // Get a reference to the graphics object; > // i.e. the drawable screen > Graphics g = Graphics.getGraphics(); > g.clearScreen(); > // Draw the text, "Hello World!" somewhere near the center > g.drawString("Hello World!", 55, 45, g.PLAIN); > // Draw the "Exit" button > exitButton.paint(); > } > /** > * Handle a pen down event. > */ > public void penDown(int x, int y) > { > // If the "Exit" button was pressed, end this application > if (exitButton.pressed(x,y)) > System.exit(0); > } > } > ----------------------------------------------- > > signal3 wrote: >> >> Sorry for the late response. Regarding your issue... that package is >> not needed to use JGroups-ME. In fact, I believe that it was released >> only with a beta version of the WTK and is no long supported by anyone >> and basically deprecated. I would recommend looking for a functional >> alternative. >> >> Best wishes, >> Dino >> >> On Thu, Oct 22, 2009 at 2:18 AM, chuikingman <chuikingman@...> >> wrote: >>> >>> Hi, >>> I use the WTK to complice the java program >>> I miss the package com.sun.kjava >>> I search the SUN web site but I cannot find >>> j2me_cldc-1_0_2-fcs-kjava_overlay.zip file >>> where can I get it ??Can you point out the detailed web link >>> -- >>> View this message in context: >>> http://www.nabble.com/missing-the-package-com.sun.kjava-tp26004629p26004629.html >>> Sent from the JGroups - J2ME mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Javagroups-j2me mailing list >>> Javagroups-j2me@... >>> https://lists.sourceforge.net/lists/listinfo/javagroups-j2me >>> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Javagroups-j2me mailing list >> Javagroups-j2me@... >> https://lists.sourceforge.net/lists/listinfo/javagroups-j2me >> >> > > -- > View this message in context: http://www.nabble.com/missing-the-package-com.sun.kjava-tp26004629p26057796.html > Sent from the JGroups - J2ME mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Javagroups-j2me mailing list > Javagroups-j2me@... > https://lists.sourceforge.net/lists/listinfo/javagroups-j2me > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Javagroups-j2me mailing list Javagroups-j2me@... https://lists.sourceforge.net/lists/listinfo/javagroups-j2me |
|
|
Re: missing the package com.sun.kjavaHi
I follow the guide in this link http://today.java.net/pub/a/today/2005/05/03/midletUI.html I complie the DateTimeApp.java and get below error in WTK Project setting saved Building "DateTimeApp" /product1/WTK2.5.1/bin/previerify1.1:/lib/tls/libc.so.6:version"GLIBC_2.4" not found (required by /product1/WTK2.5.1/bin/preverify1.1) com.sun.kvem.ktools.ExecutionException:Preverifier returned 1 Build failed. What is wrong ??Please advice
|
|
|
Re: missing the package com.sun.kjavaI copy the DateTimeApp.java in here
------------------------ package com.j2me.part1; import java.util.Date; import javax.microedition.lcdui.Alert; import javax.microedition.lcdui.Display; import javax.microedition.midlet.MIDlet; public class DateTimeApp extends MIDlet { Alert timeAlert; public DateTimeApp() { timeAlert = new Alert("Alert!"); timeAlert.setString(new Date().toString()); } public void startApp() { Display.getDisplay(this).setCurrent(timeAlert); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } } ----------------------------------------------
|
|
|
Re: missing the package com.sun.kjavaYou really should start running a more recent version of Linux ;-)
If you don't want to upgrade to a more contemporary distribution then you can try upgrading your current glibc. Search google for something like "upgrading glibc_2.4". Perhaps you should concatenate a space along w/ your distribution name onto the search string too? Best wishes On Tue, Oct 27, 2009 at 2:50 AM, chuikingman <chuikingman@...> wrote: > > Hi > I follow the guide in this link > http://today.java.net/pub/a/today/2005/05/03/midletUI.html > > I complie the DateTimeApp.java and get below error in WTK > Project setting saved > Building "DateTimeApp" > /product1/WTK2.5.1/bin/previerify1.1:/lib/tls/libc.so.6:version"GLIBC_2.4" > not found (required by /product1/WTK2.5.1/bin/preverify1.1) > com.sun.kvem.ktools.ExecutionException:Preverifier returned 1 > Build failed. > > What is wrong ??Please advice ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Javagroups-j2me mailing list Javagroups-j2me@... https://lists.sourceforge.net/lists/listinfo/javagroups-j2me |
| Free embeddable forum powered by Nabble | Forum Help |