Archived
This forum has been archived. Please start a new discussion on GitHub.
problems with J2ME preverifying
Hello I have added all the things required to the path, my ant version si coorect but this message is shown when I try to build an Ice project:
Error preverifying class Ice.Communicator
ERROR: finalize methods should not appear
Build failed
If I execute the build in IceEJ-1.0.0\demo\IceE\midp\hello this error that is similar happened:
BUILD FAILED : build.xml 77: Execute failed : java.IO.Exception: Create Process ....(in preverify).
How can I solve this?
Thanks
Error preverifying class Ice.Communicator
ERROR: finalize methods should not appear
Build failed
If I execute the build in IceEJ-1.0.0\demo\IceE\midp\hello this error that is similar happened:
BUILD FAILED : build.xml 77: Execute failed : java.IO.Exception: Create Process ....(in preverify).
How can I solve this?
Thanks
0
Comments
-
Hi,
Could you please set your signature? See [thread=1697]this thread[/thread] for more information on how to set your signature and our support policy on the forum.
Cheers,
Benoit.0 -
ok, i have my signature now
ok, i have my signature now0 -
Sorry but your signature doesn't contain the information requested on this [thread=1697]thread[/thread] (complete full name, company name, organization or university and eventually the name of the Ice projects you're working on). Please add this information to your signature if you want the ZeroC staff to answer your question.
It would also be helpful to see the exact error messages from the ant build, as well as more information on the platform, J2ME version you're using.
Thanks,
Benoit.0 -
My signature is now correct
Hello, my signature is now correct. Could you solve my problem please?Is urgent.
Thanks a lot0 -
Hi César,
Since you want to use J2ME, you should use Ice-E instead of Ice: see http://www.zeroc.com/icee/java.html.
Best regards,
Bernard0 -
bernard wrote:Since you want to use J2ME, you should use Ice-E instead of Ice: see http://www.zeroc.com/icee/java.html.
You're already using Ice-E, sorry for not reading your post more carefully!
Cheers,
Bernard0 -
A bit more information will help us identify what the problem is:
- What J2ME development tools are you using?
- Where is the 'preverify' utility coming from? (e.g. Java Wireless Toolkit, Nokia SDK)
- Can you run ant in verbose mode (ant -v) and check all your classpaths?
If it is not possible to configure around the error, you can most likely comment out the offending finalize() methods without too much trouble.
Cheers0 -
problem with preverifying
Hello again,I´m using WTK 2.2.My ant version is 1.6.5, the last version.
This is the procedure that I follow:
I execute ant in the directory :IceEJ-1.0.0\demo\IceE\midp\hello in MS-DOS(this is the example that is given). And this is the failure:
H:\rfranco\Ice\IceEJ-1.0.0\demo\IceE\midp\hello\build.xml:77: Execute failed: ja
va.io.IOException: CreateProcess: H:WTK22\bin\preverify -classpath H:\WTK22\lib\
cldcapi11.jar;H:\WTK22\lib\midpapi20.jar -d . tmp/HelloClient.jar error=3
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.Main.start(Main.java:150)
at org.apache.tools.ant.Main.main(Main.java:240)
Caused by: java.io.IOException: CreateProcess: H:WTK22\bin\preverify -classpath
H:\WTK22\lib\cldcapi11.jar;H:\WTK22\lib\midpapi20.jar -d . tmp/HelloClient.jar e
rror=3
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
... 13 more
--- Nested Exception ---
java.io.IOException: CreateProcess: H:WTK22\bin\preverify -classpath H:\WTK22\li
b\cldcapi11.jar;H:\WTK22\lib\midpapi20.jar -d . tmp/HelloClient.jar error=3
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.Main.start(Main.java:150)
at org.apache.tools.ant.Main.main(Main.java:240)
thanks a lot!!0 -
Help please
Hello, have you advanced with my preverifying problems??I need your help because I´m desperate with my problem!!
Thanks a lot0 -
Hi,
I believe I have duplicated your problem. I expect that your setting for WTK in config/build.properties is as follows:
WTK = H:WTK22
Please change this to the following and try again:
WTK = H:/WTK22
Let us know if this solves your compile issues.
Regards,
Dwayne0 -
Thanks A Lot!!
Hello!!The problem is fixed!!Thanks a lot0