473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Proguard Error with ant/antenna

I get the following proguard error:
[wtkobfuscate] java.io.IOException: The output jar is empty. Did you specify
the proper '-keep' optons?
Any idea what is wrong?
Thanks,
earamsey

------- actual ant output: ------------
[wtkobfuscate] Obfuscating C:\Projects\J2ME\CellStory\bin\CellStory.jar with
ProGuard
[wtkobfuscate] ProGuard, version 3.2
[wtkobfuscate] Reading jars...
[wtkobfuscate] Reading program jar
[C:\Projects\J2ME\CellStory\bin\CellStory.jar]
[wtkobfuscate] Reading library zip
[C:\WTK22\wtklib\devices\Series_60_MIDP_SDK_2_1\lib \kmidp20.zip]
[wtkobfuscate] Removing unused library classes...
[wtkobfuscate] Original number of library classes: 305
[wtkobfuscate] Final number of library classes: 6
[wtkobfuscate] Shrinking...
[wtkobfuscate] Removing unused program classes and class elements...
[wtkobfuscate] Original number of program classes: 1
[wtkobfuscate] Final number of program classes: 0
[wtkobfuscate] java.io.IOException: The output jar is empty. Did you
specify the proper '-keep' options?

^^^^^___Error that I get is here
[wtkobfuscate] at proguard.ProGuard.shrink(ProGuard.java:474)
[wtkobfuscate] at proguard.ProGuard.execute(ProGuard.java:86)
[wtkobfuscate] at proguard.ProGuard.main(ProGuard.java:916)

Here is my build.xml file:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="MIDP2.0" default="n66xx" basedir=".">
  3. <description>
  4. Build file for MyLittleProject
  5. </description>
  6. <!-- predefined antenna tasks -->
  7. <taskdef resource="antenna.properties"/>
  8. <!-- ProGuard home -->
  9. <property name="wtk.proguard.home" value="C:\proguard3.2"/>
  10. <!-- RetroGuard home -->
  11. <property name="wtk.retroguard.home" value="C:\retroguard-v2.0.2"/>
  12. <property name="midlet.name" value="MyLittleProject"/>
  13. <property name="midlet.home" value="C:\Projects\J2ME\MyLittleProject"/>
  14. <target name="build" description="Builds everything">
  15. <antcall target="n66xx"/>
  16. </target>
  17. <target name="n66xx" description="Builds Nokia Models 6600 and 6620">
  18. <ant dir="devices/nokia66xx" inheritall="true" target="build"/>
  19. </target>
  20. <target name="cellstory_init" description="Create directory structure">
  21. <property name="src_pp" location="${preproc_dir}"/>
  22. <!-- set global properties -->
  23. <property name="src" location="src"/>
  24. <property name="bin" location="bin"/>
  25. <property name="res" location="res"/>
  26. <property name="classes" location="classes"/>
  27. <!-- Create the timestamp -->
  28. <tstamp/>
  29. <!-- Make directories -->
  30. <mkdir dir="${src}"/>
  31. <mkdir dir="${src_pp}"/>
  32. <mkdir dir="${bin}"/>
  33. <mkdir dir="${res}"/>
  34. <mkdir dir="${classes}"/>
  35. </target>
  36. <target name="cellstory" depends="cellstory_init" description="Build it
  37. all">
  38. <wtkjad
  39. jadfile="${bin}/${midlet.name}.jad"
  40. jarfile="${midlet.name}.jar"
  41. name="MyLittleProject"
  42. vendor="Wizzards and Lizzards"
  43. version="1.0.0">
  44. <midlet
  45. name="${midlet.name}"
  46. icon="${midlet.name}.png"
  47. class="${midlet.name}.class"/>
  48. <attribute
  49. name="deleteConfirm"
  50. value="Do you really want to delete me?"/>
  51. </wtkjad>
  52. <!-- do preprocessing -->
  53. <wtkpreprocess
  54. srcdir="${src}"
  55. destdir="${src_pp}"
  56. symbols="${symbols}"/>
  57. <!-- Compile the code -->
  58. <wtkbuild
  59. srcdir="${src_pp}"
  60. destdir="${classes}"
  61. deprecation="on"
  62. target="1.4"
  63. source="1.4"/>
  64. <!-- Package the classes -->
  65. <wtkpackage
  66. jarfile="${bin}/${midlet.name}.jar"
  67. jadfile="${bin}/${midlet.name}.jad"
  68. obfuscate="false"
  69. preverify="false">
  70. <fileset dir="${classes}" includes="**/*.class"/>
  71. <fileset dir="${res}" includes="**"/>
  72. </wtkpackage>
  73. <wtkobfuscate
  74. jarfile="${bin}/${midlet.name}.jar"
  75. jadfile="${bin}/${midlet.name}.jad"
  76. tojarfile="${bin}/${midlet.name}._jar"
  77. obfuscator="proguard">
  78. </wtkobfuscate>
  79. <wtkpreverify jarfile="${bin}/${midlet.name}.jar"/>
  80. <!-- run -->
  81. <wtkrun jadfile="${bin}/${midlet.name}.jad"
  82. device="Series_60_MIDP_SDK_2_1"/>
  83. </target>
  84. <target name="cleanbuild" description="Cleans and builds">
  85. <ant dir="devices/nokia66xx" inheritall="true" target="cleanbuild"/>
  86. </target>
  87. </project>
  88.  

Jul 18 '05 #1
0 6055

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
4
by: Joel Whitehouse | last post by:
Hello All, I have a Visual C++ 2003 dll solution in a directory called "Antenna Test Range Control", and when I comile it, I get the error LNK1104: cannot open file "antenna.obj". When I remove...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
7
by: Alan Pretre | last post by:
I have an application installed at a customer site that has been getting a general network error for a couple of years. I was hoping that .NET 2.0 would clear it up, but unfortunately it didn't. ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
0
by: Jean-François Michaud | last post by:
Hello, I was wondering if there was a way around leader-alignment. XSF V3.4 from Antenna House seems to be a very powerful FO -> PDF converter, but it doesn't support this particular attribute...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.