Skip to main content

You must include the platform port before the LWUIT in the classpath

2 replies [Last post]
tdgs
Offline
Joined: 2011-03-31
Points: 0

Hello.

I recently started using LWUIT. Great job and great programm.I'm using Netbeans 6.9.1, S60 SDK and the webstart version of LCWUIT.

The first problem I faced was that I couldn't preverify Transiotions3D.java file , however that was not an issue. I just removed that part of the code and recompiled the library from scratch. So I created a simple form with a "Hello World" Label and tried the "Create Netbeans Project" option of the resource editor. I did a Clean Build at the test_MIDP (where test is the name of my project) and tried to run it on the emulator. However I'm receiving this error message:

TRACE: , startApp threw an Exception
java.lang.RuntimeException: You must include the platform port before the LWUIT in the classpath
at com.sun.lwuit.impl.ImplementationFactory.createImplementation(ImplementationFactory.java:67)
at com.sun.lwuit.Display.init(Display.java:400)
at userclasses.MainMIDlet.startApp(MainMIDlet.java:15)
at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
at com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
java.lang.RuntimeException: You must include the platform port before the LWUIT in the classpath
at com.sun.lwuit.impl.ImplementationFactory.createImplementation(ImplementationFactory.java:67)
at com.sun.lwuit.Display.init(Display.java:400)
at userclasses.MainMIDlet.startApp(MainMIDlet.java:15)
at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
at com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26

You must include the platform port before the LWUIT in the classpath.

Any ideas on how to fix this error? I tried to run the MIDLET with both S60 and JavaME SDK 3.0 emulator and I received the same error.

Also Another issue. I'm working on a chat application so I tried to download the LWUIT incubator code as suggested in the block.I'm using tortoise. However when I'm giving Tortoise this link

https://svn.java.net/svn/lwuit-incubator~svn

It asks for authentication. I insert my Java.net credentials however they are not accepted. Any ideas?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
wangjiwei1

# include < > iostream. H
Scale-up date
{
Int the year;
Int month;
Int /;
Public:
Date (int y, int j, int d)
{
The year = y; Month = m; / = d;
}
Use void disp ()
{
< < the year cout. "< < < month." < < < / endl;
}
Int count_day (date & is int), d;
Int leap (int is year);
Int subs (date d1 stuck, date d2);
};
Int count_day (date & d, int flag)
{
Static int day_tab [2] [12] = {{31,28,31,30,31,30,31,31,30,31,30,31}, {31,29,31,30,31,30,31,31,30,31,30,31}};
Int p, I, s;
If (leap (d.y ear))
P = 1;
else
P = 0;
If (flag)
{
S = d.d ay;
For (I = 1; I < d.m onth i++);
S + = day_tab [p] [I - 1];
}
else
{
S = day_tab [p] [d.m onth] - d.d ay;
For (I = d.m onth + 1; I < = 12; i++)
S + = day_tab [p] [I - 1];
}
Pressing (s);
}
Int int leap (year)
{
If (the year % 4 = = 0 & & the year % 100! = 0 | | year % 400 = = 0)
Pressing 1;
else
Pressing 0;
}
Int subs (date d1, date d2)
{
Day2 day1, int, then, y;
If (d1. The year < d2. The year)
{
Count_day (d1, doing = 0);
For (y = d1. The year + 1 year; y < d2. Y++);
If (leap (y))
366L; doing + =
else
365L; doing + =
Count_day (d2 doing + =, 1);
}
Else if (d1. The year = = d2. The year)
{
Day1 = count_day (d1, 1);
Day2 = count_day (d2, 1);
Day2 - day1; doing =
}
else
{
Count_day (d2, doing = 0);
For (y = d2. The year + 1 year; y < d1. Y++);
If (leap (y))
366L; doing + =
else
365L; doing + =
Count_day (d1 doing + =, 1);
}
Doing pressing;
}
Use void main ()
{

Date d1 (2000,1,1), d2 (2005,10,1);
Int ds1s = subs (d1, d2), ds2 = subs (d2, d1);
Cout < < "date d1:";D1. Disp ();
Cout < < "date d2:";D2. Disp ();
Cout < < "d1 and d2 apart" < < ds1s < < "days" < < endl;
Cout < < "d2 and d1 ds2 apart" < < < < < < "day" endl;
}
Maggie Sottero Wedding Dresses

tdgs
Offline
Joined: 2011-03-31
Points: 0

bump! Anyone?