Hi,
I searched the List and Bugtracking System on this but to no avail..
System Specs
---------------------
OS: Kubuntu Linux (Breezy)
Eclipse Version: 3.2.0, Build id: M20060629-1905
EclipseME 1.5.4
Sun WTK-2.2
I installed the newest Eclipse Version and newest EclipseME today, and
wanted to import a J2ME project from an old Workspace (where it was
working fine). Everything compiles well, but the preverifyer gives me
the following error message: "Type java.lang.Class Error preverifying
class java.lang.Class"
Ok I thougth maybe there is something wrong with the project. I used
the Eclipse "New Project Wizard" to create a standard J2ME MidletSuite
Project (J2ME Wirless Toolkit 2.2, DefaultColorPhone). I then created
a "HelloWorld" dummy class (test/Main.java) :
public class Main extends MIDlet {
protected void destroyApp(boolean arg0) throws
MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
System.out.println("Hello World");
}
}
When I tried to build the project a got the same error as above. (The
Classes are compiled to the ./bin directory but the preverification
fails and the ./verified/classes directory stays empty).
I set eclipseme.dump.launch to "true" and had a look a the logfile: I
guess the important lines are these:
--- snip ---
!ENTRY eclipseme.core 1 0 2006-07-03 13:42:07.219
!MESSAGE Command line: /opt/WTK2.2/bin/preverify -target CLDC1.1
-nofinalize -nonative -classpath
"/home/soma/Eclipse-Workspaces/Workspace/MidletTest/bin:/opt/WTK2.2/lib/midpapi20.jar:/opt/WTK2.2/lib/cldcapi11.jar:/opt/WTK2.2/lib/wma20.jar:/opt/WTK2.2/lib/mmapi.jar:/opt/WTK2.2/lib/j2me-ws.jar:/opt/WTK2.2/lib/jsr75.jar:/opt/WTK2.2/lib/jsr082.jar:/opt/WTK2.2/lib/jsr184.jar"
-d "/home/soma/Eclipse-Workspaces/Workspace/MidletTest/verified/classes"
test.Main
--- snap (End of file. No error messages below here.) ---
The strange thing is, if I paste the above command to the shell, it
executes without an error, and creates the classes in
./verified/classes as one would expect. (Its even possible to launch
the Midlet using the "Run.." command in Eclipse once the command was
executed at the shell)
I am a little lost here. Am I doing something wrong or is this a bug?
Thanks in advance
Hannes
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users