WTK2.2, error preverifying
Hi
I use WTK2.2 and JDK 1.4.2_06.
When I build in WTK I get the following error message:
"Error preverifying class FIPA OptDateTimeHilder
java lang/NoClassDefFoundError: org/omg/CORBA/portable/Streamable"
I do not have any clue how to resolve this.
Any help is very much appreciated.
Thanks,
Sami
I just found this error also.
Solution is just not package up this file in your MIDlet.
Since it only contains final statics these values where used are inserted directly into the other classes.
So you don't need this class in the MIDlet.
It's a bit poor the preverify fails though. Could have a more usful error message.
Similar Messages
-
3rd Party classes = Error preverifying class in WTK?
I am migrating a project done in Eclipse to WTK2.2, it uses 3rd party classes. It worked fine in Eclipse.
When I try to build i get
Error preverifying class com.philips.software.wireless.nfc.DeviceCapabilities
ERROR: native methods should not appear
Please adviceYou cannot use any 3rd pary classes, specially not if they use native methods!
-
Error preverifying class javax.xml.soap.Node
Hi everybody,
I want to send SOAP messages from a mobile phone. So I use the J2ME Wireless Toolkit 2.2 and the packages saaj-api.jar and dom.jar. But when I build the project, I always have that error:
Error preverifying class javax.xml.soap.Node
java/lang/NoClassDefFoundError: org/w3c/dom/Node
Build failedI don't understand because the class Node is well included in the package dom.jar. Could everyone can help me please?
Thanks in advancehi ,I am also having the same problem.If u got the solution for that please tell me what can i do for those preverifying class error
-
Hi all,
I am using JBuilder 9 Enterprise and have just loaded on the latest J2ME Wireless Tookit which includes CLDC 1.1. I have developed a project using a previous version. Now when I compile I get the following error:
Error preverifying Class blah
java/lang/VerifyError
Can anyone help me out on what setting to change in JBuilder? I have changed the SDK to the correct one. Also, I read that there is a problem with 1.4 as follows:
By default, version 1.4 of the development kit generates class files for version 1.2 of the Java Virtual Machine, while earlier versions of the development kit generated class files for JVM version 1.1. As of this writing, the preverify utility expects version 1.1 class files, so it fails when you give it version 1.2 files generated by the newer development kit. To solve this problem, simply use javac's -target flag to have it generate version 1.1 class files:
javac -target 1.1 -bootclasspath \j2mewtk\lib\midpapi.zip MyClass.java
The Wireless Toolkit sets the target to 1.1 automatically, so you shouldn't see this problem if you're using KToolbar for all your builds. If you're compiling by hand, or you're using KToolbar for all your builds. If you're compiling by hand, or you're using Ant or a make utility or an IDE, be sure to set the appropriate compiler flags.
I can't seem to locate where to change in Jbuilder though.
with regards
James
one answer I was told was:
(This is for JBuilder X, but it might be the same for 9):
Right click on your project .jpx on the top-left and select properties.
Go to the Build -> Java option
Then, there should be an entry for target JVM, change that to "All Java SDKs"
and I think that should do it.
Tried that but with no luck.
I also tried it with just selecting "java 2 SDK, Ver 1.4 and above" but that didn't work either.
The program builds ok but i still get that error..
I also found another hint I think. When I change my doubles to int's the error does not come up and the program builds fine. But, I thought CLDC 1.1 allowed doubles and floats?
Any suggestions would be more than welcome.
Jameswith netbeans, ask here:
I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:
To subscribe to the list, send a message to:
<[email protected]>
To remove your address from the list, send a message to:
<[email protected]>
Send mail to the following for info and FAQ for this list:
<[email protected]>
<[email protected]>
Similar addresses exist for the digest list:
<[email protected]>
<[email protected]>
To get messages 123 through 145 (a maximum of 100 per request), mail:
<[email protected]>
To get an index with subject and author for messages 123-456 , mail:
<[email protected]>
They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.
To receive all messages with the same subject as message 12345,
send an empty message to:
<[email protected]>
The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.
You can start a subscription for an alternate address,
for example "[email protected]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<nbusers-subscribe-john=[email protected]>
To stop subscription for this address, mail:
<nbusers-unsubscribe-john=[email protected]>
In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.
If despite following these instructions, you do not get the
desired results, please contact my owner at
[email protected] Please be patient, my owner is a
lot slower than I am ;-) -
Hello all,
I’m having a problem with projects generated by the LWUIT resource editor. I get a:
“Error preverifying class com.sun.lwuit.impl.midp.CanvasImplementation:” VERIFIER ERROR com/sun/lwuit/impl/midp/GameCanvasImplementation.paintVideo(Lcom/sun/lwuit/Component;ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V: Cannot find class javax/microedition/media/control/VideoControl”
when I run the Project_MIDP project.
I’m running Netbeans 7.0.1, ME 3.0.5, and LWUIT 1.5. I’ve got a trivial GUI that I made in the resource editor consisting of a very simple theme and one label. l generated the Netbeans projects from the resource editor, resolved the reference by pointing at the 3.0.5 in the project configuration. I’ve found that the problem goes away if I deselect the Mobile 3D Graphics Optional Package 1.1 checkbox in the Optional Packages of the Project configuration but I then run into a problem with being unable to find the animations. (I’m not using any animations or transitions, as I said, its a trivial GUI).
I would greatly appreciate any assistance anyone could provideNothing to do with Java ME SDK, which is the subject of this forum.
Moving to CLDC and MIDP
db -
Preverify ERROR for in Eclipse while using SATSA-crypto.jar
I have created simple application to encrypt the string using Cipher class like below:
This code snippet I got from the forums.nokia;
In this The string "THIS IS A SECRET MESSAGE" is encrypted and decrypted using the key "SECRET!!" .
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.ShortBufferException;
import javax.crypto.spec.SecretKeySpec;
public class FirstForm extends Form implements CommandListener {
TextField txtData=new TextField("Enter the Data","",10,TextField.ANY);
Command cmdEncrypt=new Command("Encrypt",Command.SCREEN,1);
public FirstForm(String arg0)
super(arg0);
this.append(txtData);
this.addCommand(cmdEncrypt);
this.setCommandListener(this);
public void commandAction(Command cmd, Displayable frm)
if(cmd==this.cmdEncrypt)
System.out.println("Command Is Pressed.......");
byte[] msg = "THIS IS A SECRET MESSAGE".getBytes();
byte[] enMsg = new byte[10000];
byte[] deMsg = new byte[10000];
//create new cipher using DES algorithm
try {
Cipher c = Cipher.getInstance("DES");
//our raw byte[] key - please note that since we use DES algorithm,
//the key must be 8 bytes long
byte[] b = "SECRET!!".getBytes();
//init the cipher to encrypt the data
c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
int numBytes = c.doFinal(msg, 0, msg.length, enMsg, 0);
System.out.println("Encrypted Message is"+enMsg);
//init the cipher to decrypt the data
c.init(Cipher.DECRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
numBytes = c.doFinal(enMsg, 0, numBytes, deMsg, 0);
String s = new String(deMsg,0,numBytes);
System.out.println("Decrypted Message is"+s);
} catch (InvalidKeyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchPaddingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ShortBufferException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalBlockSizeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (BadPaddingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}after clicking on command button the Encrypted and decrypted sting is shown on the console
I have tested this code with wtk2.5.2.
This code works fine with sun'sWTK 2.5.2
But when; I have created project with the eclippse and wtk22
1) I added the satsa-crypto.jar in projrct->Properties->java-Builder-Path in "Library tab"
2)I Had also checked the checkbox before satsa-crypto.jar "Order-Of-Export Tab"
I am using the Ant Built
After Building I got Error saying::
Buildfile: D:\nitins_workspace\Encrypt\build.xml
init:
j2mepolish:
[j2mepolish] info: the license attribute is no longer supported. Please place your license.key file either to ${project.home} or to ${polish.home}.
[j2mepolish] J2ME Polish 2.0-RC4 (GPL License)
[j2mepolish] Loading device database...
[j2mepolish] Using locale [de_DE]...
[j2mepolish] assembling resources for device [Generic/midp2].
[j2mepolish] preprocessing for device [Generic/midp2].
[j2mepolish] compiling for device [Generic/midp2].
[j2mepolish-javac-Generic/midp2] Compiling 24 source files to D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\classes
[j2mepolish] obfuscating for device [Generic/midp2].
[j2mepolish] proguard: ProGuard, version 3.5
[j2mepolish] proguard: Preparing output jar [D:\nitins_workspace\Encrypt\build\real\dest.jar]
[j2mepolish] preverifying for device [Generic/midp2].
[j2mepolish] preverify:Error preverifying class u
[j2mepolish] preverify: VERIFIER ERROR u.a(ILm;Lw;)V:
[j2mepolish] preverify:Cannot find class com/sun/midp/ssl/Key
[j2mepolish] Preverify call failed: 1
[j2mepolish] C:\WTK22\bin\preverify.exe -classpath D:\Java\J2ME-Polish\import\midp-2.0.jar;D:\Java\J2ME-Polish\import\cldc-1.0.jar; -d D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated -nofp -nofinalize -nonative D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated
BUILD FAILED
D:\nitins_workspace\Encrypt\build.xml:109: Unable to preverify for device [Generic/midp2] - preverify returned result 1
Total time: 7 seconds What may be the reason of this??I think you need to post the stack trace error message to get a response.
-
WTK 2.2+Proguard 3.07: Preverify Error?
I unjarred proguard.jar and added few lines to keep some classes and then jarred the folder back to wtk22/bin
When I also followed proguard's user manual to change the ktoolbar property file
obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
obfuscator.runner.classpath: \\bin\proguard.jar
Then I tried to obfuscated my project in WTK 2.2, I got following errors:
Building "DP"
ProGuard, version 3.0.7
Reading program jar [C:\WTK22\apps\DP\bin\DP.jar]
Reading library jar [C:\WTK22\lib\midpapi20.jar]
Reading library jar [C:\WTK22\lib\cldcapi10.jar]
Preparing output jar [D:\Profiles\E50008\LOCALS~1\Temp\DP.jar]
Copying resources from program jar [C:\WTK22\apps\DP\bin\DP.jar]
Error preverifying class ad
VERIFIER ERROR ad.f(Ljava/lang/String;)Z:
Mismatched stack types
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
com.sun.kvem.midletsuite.InvalidJadException: Reason = 31
The jar size value in the Application Descriptor does not match the real jar file size.
Then I tried to open a simpler project and obfuscated; it worked fine.
Any suggestion?
Thanks in advance.do anyone got the solve about it?
i just the same problem with you...
this is the following errors when i tried to obfuscated my project in WTK2.2, and i'm work with proguard3.3
Project settings saved
Building "RemoteExecMIDlet"
Build complete
Project settings saved
Building "RemoteExecMIDlet"
ProGuard, version 3.3
Reading program jar [srv/WTK2.1/apps/RemoteExecMIDlet/bin/RemoteExecMIDlet.jar]
Reading library jar [srv/WTK2.1/lib/midpapi20.jar]
Reading library jar [srv/WTK2.1/lib/wma.jar]
Reading library jar [srv/WTK2.1/lib/cldcapi10.jar]
Preparing output jar [tmp/RemoteExecMIDlet.jar]
Copying resources from program jar [srv/WTK2.1/apps/RemoteExecMIDlet/bin/RemoteExecMIDlet.jar]
Note: duplicate definition of library class [com.sun.cldc.i18n.j2me.UTF_8_Reader]
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
com.sun.kvem.midletsuite.InvalidJadException: Reason = 31
The jar size value in the Application Descriptor does not match the real jar file size.
Error preverifying class com.jcraft.jsch.A
VERIFIER ERROR com/jcraft/jsch/A.a(Lcom/jcraft/jsch/f;)Z:
Incompatible object argument for function call
i dont know what to do with these error...
thx.. -
JavaME SDK 3.0 EA Mac OSX: Preverify error :(
Hi,
Since my Windows box died on me recently I was extremely happy to learn that the JavaME SDK for Mac is in EA and downloaded and installed the whole thing. All went fine until I tried to compile my project and got preverification errors that don't make sense to me.
Below a snippet of the output. The weird thing is that on Windows all works fine and without problems.
If anybody has an idea on what's going on I'd appreciate some guidance and if you think it's a bug than I'll be happy to report it. Interestingly enough, this is only showing when doing a clean-build, just a build seems to work fine, until you deploy the application. Then the emulator complains about a corrupt JAR file.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- SNIP START -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Preverifying 309 file(s) into /Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/build/preverified directory.
Unexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC valueUnexpected CRC value
Error preverifying class com.sticktailgames.iff.frontend.comm.AsynchronousPlayerRetriever
VERIFIER ERROR com/sticktailgames/iff/frontend/comm/AsynchronousPlayerRetriever.run()V:
Unsorted lookup switch
/Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/nbproject/build-impl.xml:479: Preverification failed with error code 1.
BUILD FAILED (total time: 7 seconds)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- SNIP END -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
IwanIt sort of fixed the problem, now I get another preverification error:
Preverifying 309 file(s) into /Users/Iwan/NetBeansProjects/projects/FriendOrFoe/frontend/IFF_FrontEnd/build/JavaME_SDK_3_MSA_Phone1/preverified directory.
Error preverifying class com.sun.lwuit.animations.Transition3D
VERIFIER ERROR com/sun/lwuit/animations/Transition3D.initTransition()V:
Cannot find class javax/microedition/m3g/Node
Is there anywhere defined what is implemented in the EA? Or do I need to use another distribution of LWUIT? One of the sellingpoints of JavaME SDK 3.0 was out-of-the-box support of LWUIT.
Iwan -
Nokia Series 40 SDK, preverify error
When making my first project with JBuilder9 and Nokia Developer's Suite 2.2 for J2ME && Nokia Series 40 SDK, such an error appears:
ERROR: floating-point arguments should not appear
Error preverifying class java.lang.String
However I dont use any floating-point arguments, there are used in java.lang.String,
as I see.
So how can I solve this problem?i have the same problem with eclipse, i think that
eclipse isnt work so good in Nokia Developer's Suite
2.2 for J2ME(TM), but i attache the sdk 1.1 in
eclipse, and then run the stand alone version of
Nokia Developer's Suite 2.2 for J2ME(TM), and have
the same problem... how can i configure it there ?I had the same problem, but, when I turned on the built-in preverifier, the error dissapeared. What confuses me most is the fact that the error appeared suddenly after adding j2me-ws.jar to the build path and persisted even after I removed it from the class path. -
Preverify error when netbean 4.0 build classes that import device lib
ERROR: native methods should not appear
Error preverifying class com.sprintpcs.media.ClipHi,
BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
In general though, I would highly recommend this best practice:
1) Start by define the WSDL contract first
2) Then generate the server side skeleton to implement it
3) Use BPEL as the client to this contract.
By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
Edwin -
How to escape bluecove preverify error on mobile with javaFX?
Hi all, I'm finding a problem with an application that runs for a standard execution but not on mobile emulator. I am having the following error at execution.
Error preverifying class com.intel.bluetooth.btgoep.Connection
java/lang/NoClassDefFoundError: com/ibm/oti/connection/CreateConnection
ERROR: preverify execution failed, exit code: 1
I don't know how to go through. I'm using netbeans with javaFx plugins and the application seems to be working with standard execution but not on the mobile emulmator.
Should anyone have an idea of what is happening here I'll be strongly interested.. Thanks for help.The PC10 in vlan 10 can not ping the gateway (10.64.16.1) of vlan 20. It can only ping its own gateway 10.64.8.1
Both hosts are running Windows 7 professional with firewall turned off.
The same for the PC20 in vlan 20. It can only ping its own gateway (10.64.16.1) but not vlan10's gateway (10.64.8.1)
In fact, just for testing purposes.
I temporarily assign g0/1/2 (which was on vlan20) to vlan10 now. Changed the host (PC20) IP to 10.64.8.3.
After this change, the 2 hosts can ping each other (in the same vlan 10)....that's expected. So, the OSes and firewalls issues on the hosts are not the issue. They can ping each other when they are in the same vlan.
However, now that they are in the same vlan, they still can't ping out to G0/0 192.168.0.162.
So, the problem is how to ping from the layer 2 EHWIC to the built-in G0/0 and G0/1 router ports? -
Wtk preverifying error problem
hello j2me developers..
i m stuck up with the following:
i am using DB2everyplace api for synchronization..
placed the jar files in the lib folder..
but building the project leads to following error:
Building "J2MEDB2E"
Error preverifying class com.ibm.db2e.jdbc.DB2eBlob
java/lang/NoClassDefFoundError: java/sql/Blob
Build failed
seems it is not preverifying any of the classes from the libraries added..
any ideas plz respond...plz ..
anybody can provide me a way as to how can i get the jar files preverified .... -
Hi,
I want to obfuscate my jar file. for this purpose i followed the steps below.
1. Copied proguard.jar in C:\WTK2.5.2\bin
2. Now opened the file ktoolbar.vm , which is present in C:\WTK2.5.2\bin
my ktoolbar.vm looks like this
{color:#666699}C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
3. my project or my workspace is at location D:\workspace\WTK
4. Also my wtk is located at C:\WTK2.5.2
5 Now i renamed ktoolbar.vm to ktoolbar.bat and the edited the file then added 2 lines at the beginning of ktoolbar.bat
SET USER_HOME=D:\workspace\WTK
SET KVEM_HOME=C:\WTK2.5.2
6 Also i added -Duser.home=%USER_HOME% in the next line.
7 Now my ktoolbar.bat looks like this.
{color:#800080}SET USER_HOME=D:\workspace\WTK SET KVEM_HOME=C:\WTK2.5.2 C:\PROGRA~1\Java\JDK16~1.0_0\bin\java -Dkvem.home="%KVEM_HOME%" -Duser.home=%USER_HOME% -Djava.library.path="%KVEM_HOME%/bin" -Dsun.java2d.ddlock=true -Dsun.java2d.gdiblit=false -cp "%KVEM_HOME%/wtklib/kenv.zip";"%KVEM_HOME%/wtklib/ktools.zip";"%KVEM_HOME%/bin/JadTool.jar";"%KVEM_HOME%/bin/MEKeyTool.jar";"%KVEM_HOME%/wtklib/customjmf.jar";"%KVEM_HOME%/lib/j2me-ws.jar";"%KVEM_HOME%/lib/j2me-xmlrpc.jar";"%KVEM_HOME%/bin/schema2beansdev.jar";"%KVEM_HOME%/bin/j2me_sg_ri.jar";"%KVEM_HOME%/bin/jaxrpc-impl.jar";"%KVEM_HOME%/bin/jaxrpc-api.jar";"%KVEM_HOME%/bin/jaxrpc-spi.jar";"%KVEM_HOME%/bin/activation.jar";"%KVEM_HOME%/bin/mail.jar";"%KVEM_HOME%/bin/saaj-api.jar";"%KVEM_HOME%/bin/saaj-impl.jar";"%KVEM_HOME%/bin/xsdlib.jar";"%KVEM_HOME%/wtklib/nist-sip-1.2.jar";"%KVEM_HOME%/wtklib/JainSipApi1.1.jar";"%KVEM_HOME%/wtklib/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main{color}
8 Now i opened the command promt and i executed the bat file.
9 Now when i try to open the WTK toolkit it gives me the following error
Fatal error : File: C:\WTK.2.5.2\bin\ktoolbar.vm does not exist
Please help me to resolve this issue or suggest me some different way.
Also i would like to tell that my project is completely build using netbeans 6.5 . but when i try to make the obfuscation level high using the scroll that is provided by netbeans , it gives me following error.
{color:#ff0000}C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\nbproject\build-impl.xml:459: Error while expanding C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar
java.io.FileNotFoundException: C:\Documents and Settings\SShete\My Documents\NetBeansProjects\vtms_test_lwuit_Backup\build\obfuscated.jar (The system cannot find the file specified)
BUILD FAILED (total time: 8 seconds){color}
Also i dont know what changes are to be done to the build.xml so that obfuscation can be done .
Thats the reason why i am now opening the same project using wtk and trying to obfuscate it.hi....
i have tried another way out ,
i followed the procedure below
In order to integrate this plug-in in the toolkit, you'll have to put the following lines in the file {j2mewtk.dir}/wtklib/Linux/ktools.properties or {j2mewtk.dir}\wtklib\Windows\ktools.properties (whichever is applicable).
obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
obfuscator.runner.classpath: /usr/local/java/proguard/lib/proguard.jar
Please make sure the class path is set correctly for your system.
Once ProGuard has been set up, you can apply it to your projects as part of the build process. The build process is started from the WTK menu bar:
Project -> Package -> Create Obfuscated Package
The Toolkit obfuscates other sample projects
However now my project gets build without errors , but when i try to create a obfuscated package it gives me the following error
Error preverifying class bc
VERIFIER ERROR bc.a(Z)Lhx;:
Incompatible object argument for invokespecial
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
Please help.. -
Preverification error: Cannot find class com/sun/perseus/model/Viewport
Hi all,
I have a (previously) working Midlet to which I have added one line as follows:
SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
- and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
[wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
[wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
[wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
Many thanks for any ideas.Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).
-
Preverification failed with error code 255
Hello,
I am having some problems to run a simple Hello World MIDlet application on Ubuntu (2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux). I am using Netbeans 6 Beta 2 (with Mobility Pack 2.5.2 ).
I am getting an error in the preverification process:
Preverifying 1 file(s) into /home/brunogh/NetBeansProjects/MobileApplication3/build/preverified directory.
/home/brunogh/NetBeansProjects/MobileApplication3/nbproject/build-impl.xml:424: Preverification failed with error code 255.
I am not sure if it could be a WTK problem, Mobility Pack problem or anything else... I've googled and could not find anything with the error 255, just with the error 1... any ideas/suggestions?
The whole output is below
pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration :
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
ricoh-pre-init:
ricoh-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
nokiaS80-pre-init:
nokiaS80-init:
nsicom-pre-init:
nsicom-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
pre-clean:
clean-timestamp:
clean-preprocessed:
clean-classes:
Deleting directory /home/brunogh/NetBeansProjects/MobileApplication3/build/compiled
clean-obfuscated:
clean-preverified:
Deleting directory /home/brunogh/NetBeansProjects/MobileApplication3/build/preverifysrc
Deleting directory /home/brunogh/NetBeansProjects/MobileApplication3/build/preverified
clean-manifest:
clean-jar:
clean-jad:
clean-javadoc:
clean-j9:
clean-ricoh:
clean-semc:
clean-savaje:
post-clean:
do-clean:
deps-jar:
pre-preprocess:
do-preprocess:
post-preprocess:
preprocess:
pre-compile:
extract-libs:
Created dir: /home/brunogh/NetBeansProjects/MobileApplication3/build/compiled
do-compile:
Compiling 1 source file to /home/brunogh/NetBeansProjects/MobileApplication3/build/compiled
post-compile:
compile:
pre-obfuscate:
proguard-init:
proguard:
Building jar: /home/brunogh/NetBeansProjects/MobileApplication3/build/before-obfuscation.jar
ProGuard, version 4.0.1
Reading program jar [home/brunogh/NetBeansProjects/MobileApplication3/build/before- obfuscation.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/wma20.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr082.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/j2me-xmlrpc.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/satsa- jcrmi.jar]
Note: duplicate definition of library class [java.rmi.Remote]
Note: duplicate definition of library class [java.rmi.RemoteException]
Reading library jar [home/brunogh/WTK2.5.1/lib/satsa-apdu.jar]
Note: duplicate definition of library class [ com.sun.satsa.acl.ACEntry]
Note: duplicate definition of library class [com.sun.satsa.acl.ACFile]
Note: duplicate definition of library class [com.sun.satsa.acl.ACLFileReader]
Note: duplicate definition of library class [ com.sun.satsa.acl.ACLPermissions]
Note: duplicate definition of library class [com.sun.satsa.acl.ACList]
Note: duplicate definition of library class [com.sun.satsa.acl.APDUPermissions]
Note: duplicate definition of library class [ com.sun.satsa.acl.AccessControlManager]
Note: duplicate definition of library class [com.sun.satsa.acl.JCRMIPermission]
Note: duplicate definition of library class [com.sun.satsa.acl.JCRMIPermissions]
Note: duplicate definition of library class [ com.sun.satsa.acl.PINAttributes]
Note: duplicate definition of library class [com.sun.satsa.acl.PINData]
Note: duplicate definition of library class [com.sun.satsa.acl.PINEntryDialog]
Note: duplicate definition of library class [ java.lang.UnsupportedOperationException]
Reading library jar [home/brunogh/WTK2.5.1/lib/satsa-crypto.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr179.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/satsa- pki.jar]
Note: duplicate definition of library class [com.sun.satsa.acl.ACEntry]
Note: duplicate definition of library class [com.sun.satsa.acl.ACFile]
Note: duplicate definition of library class [com.sun.satsa.acl.ACLFileReader ]
Note: duplicate definition of library class [com.sun.satsa.acl.ACLPermissions]
Note: duplicate definition of library class [com.sun.satsa.acl.ACList]
Note: duplicate definition of library class [com.sun.satsa.acl.APDUPermissions ]
Note: duplicate definition of library class [com.sun.satsa.acl.AccessControlManager]
Note: duplicate definition of library class [com.sun.satsa.acl.JCRMIPermission]
Note: duplicate definition of library class [ com.sun.satsa.acl.JCRMIPermissions]
Note: duplicate definition of library class [com.sun.satsa.acl.PINAttributes]
Note: duplicate definition of library class [com.sun.satsa.acl.PINData]
Note: duplicate definition of library class [ com.sun.satsa.acl.PINEntryDialog]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr75.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr180.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr238.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr229.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/j2me-ws.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr234.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr226.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr184.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/mmapi.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr239.jar]
Note: duplicate definition of library class [ java.lang.UnsupportedOperationException]
Reading library jar [home/brunogh/WTK2.5.1/lib/jsr211.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/cldcapi10.jar]
Reading library jar [home/brunogh/WTK2.5.1/lib/midpapi10.jar]
Note: duplicate definition of library class [com.sun.cldc.i18n.j2me.UTF_8_Reader]
Note: there were 29 duplicate class definitions.
Preparing output jar [home/brunogh/NetBeansProjects/MobileApplication3/build/obfuscated.jar]
Copying resources from program jar [home/brunogh/NetBeansProjects/MobileApplication3/build/before-obfuscation.jar]
Created dir: /home/brunogh/NetBeansProjects/MobileApplication3/build/obfuscated
Expanding: /home/brunogh/NetBeansProjects/MobileApplication3/build/obfuscated.jar into /home/brunogh/NetBeansProjects/MobileApplication3/build/obfuscated
post-obfuscate:
obfuscate:
pre-preverify:
do-preverify:
Created dir: /home/brunogh/NetBeansProjects/MobileApplication3/build/preverifysrc
Copying 1 file to /home/brunogh/NetBeansProjects/MobileApplication3/build/preverifysrc
Created dir: /home/brunogh/NetBeansProjects/MobileApplication3/build/preverified
Preverifying 1 file(s) into /home/brunogh/NetBeansProjects/MobileApplication3/build/preverified directory.
/home/brunogh/NetBeansProjects/MobileApplication3/nbproject/build- impl.xml:424: Preverification failed with error code 255.
BUILD FAILED (total time: 5 seconds)
Thanks,
Brunopre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
init:
post-init:
pre-preprocess:
deps-jar:
conditional-clean:
pre-clean:
do-clean:
post-clean:
preprocess:
Created dir: C:\prakash\sip\build\preprocessed
Pre-processing 2 file(s) into C:\prakash\sip\build\preprocessed directory.
post-preprocess:
extract-libs:
Created dir: C:\prakash\sip\build\compiled
pre-compile:
compile:
Compiling 2 source files to C:\prakash\sip\build\compiled
Copying 1 file to C:\prakash\sip\build\compiled
post-compile:
obfuscate-check:
pre-obfuscate:
obfuscate:
Building jar: C:\prakash\sip\build\before-obfuscation.jar
Copying jar file (C:\prakash\sip\build\before-obfuscation.jar) to C:\prakash\sip\build\obfuscated.jar.
Created dir: C:\prakash\sip\build\obfuscated
Expanding: C:\prakash\sip\build\obfuscated.jar into C:\prakash\sip\build\obfuscated
post-obfuscate:
pre-preverify:
preverify:
Created dir: C:\prakash\sip\build\preverified
Preverifying 1698 file(s) into C:\prakash\sip\build\preverified directory.
Error preverifying class com.sun.midp.jadtool.AppDescriptor
VERIFIER ERROR com/sun/midp/jadtool/AppDescriptor.storeKeyStore(Ljava/lang/String;[C)V:
Cannot find class java/io/FileOutputStream
C:\prakash\sip\nbproject\build-impl.xml:269: Preverification failed with error code 1.
BUILD FAILED (total time: 1 minute 7 seconds)
Question:
how can i resolve this problem?
can anyone help me? .........
Maybe you are looking for
-
I converted my new computer from an old one about a week ago. Every time I open Firefox, it either crashes immediately or once I try to go between pages it crashes. I get a window that says Firefox quite Unexpectedly. Apple Care worked on this with m
-
I am having problems running the basic analog I/O with my 7833R card. I am getting an error -61024 with Possible reason(s): Labview FPGA: The device type that has been configured in ths function does not match the actual type of the device. I have tr
-
Cube Spin Transiton Shows Horizonal Blue and White Lines through out Poss BUG?
Don't know if this is a bug but I am seeing a 2 to 5 pixel Blue Line (the same colour as the CTI, CYAN) on the Cube Spin Transition when in use in Premiere Pro CC. I am on 8.0.1. I also notice that it appears on the renders and exported material. Ori
-
Re6500 connecting to Ipad Personal Hotspot --- disconnected.
Im trying to connect my re6500 to my ipad person hostspot. I select the ipad hotspot (verizon) in Site Survey and connect. After several seconds the web page refreshs then on Basic setting page it says status Disconnected. I have no problems us
-
SIGN IN PROBLEM WITH USER PROFILE
I AM TRYING THE DIFFERENT WAYS TO FIX USER ID/USER PROFILE SIGN IN TROUBLE/EITHER CORRUPT OR JUST STUCK? I GO TO SAFE MODE/GET IN REGEDIT, BUT I DONT KNOW WHICH S I D NUMBER IS THE CORRUPT OR INCORRECT NUMBER TO FIX OR RENAME OR REMOVE? AND NONE OF