Author Topic: java errors when building project  (Read 6222 times)

pa-gjerd@online.no

  • Newbie
  • *
  • Posts: 2
java errors when building project
« on: July 02, 2012, 03:58:21 PM »
I am getting the following errors when building project.
JDK  ADK HAC QT all installed and setup according to instructions on Win 7 64bit
Have tried on two different PC's - both give same problem

java.io.FileNotFoundException: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Tenerife.jfif.ap_ does not exist

Debug Key Enter Passphrase for keystore:
Debug Key jarsigner: unable to open jar file: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk

C:\Program Files (x86)\Java\jdk1.6.0_33\bin>jarsigner -J-Duser.language=en -verify  "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk"
jarsigner: java.util.zip.ZipException: error in opening zip file

------------------------
FULL LOG:

Android searching AVDs .....Android AVD searching...
C:\HyperNextAndroidCreator\HyperNext Android Creator>cd "C:\Android\android-sdk\tools\"

C:\Android\android-sdk\tools>android list avd

Android AVD searching... Available Android Virtual Devices:
    Name: Emulator1
    Path: C:\Users\pgj\.android\avd\Emulator1.avd
  Target: Android 2.2 (API level 8)
     ABI: armeabi
    Skin: HVGA
  Sdcard: 160M


  DONE
Android Device search starting.....Android Devices searching...
C:\HyperNextAndroidCreator\HyperNext Android Creator>cd "C:\Android\android-sdk\platform-tools\"

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached
SH0CFPL05768   device



  DONE
1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....Android searching AVDs .....Android AVD searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\tools\"

C:\Android\android-sdk\tools>android list avd

Android AVD searching... Available Android Virtual Devices:
    Name: Emulator1
    Path: C:\Users\pgj\.android\avd\Emulator1.avd
  Target: Android 2.2 (API level 8)
     ABI: armeabi
    Skin: HVGA
  Sdcard: 160M


  DONE
Android Device search starting.....Android Devices searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\platform-tools\"

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached
SH0CFPL05768   device



  DONE
Android searching AVDs .....Android searching AVDs .....Android AVD searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\tools\"

C:\Android\android-sdk\tools>android list avd

Android AVD searching... Prosessen f†r ikke tilgang til filen fordi den brukes av en annen prosess.

Android AVD searching... Available Android Virtual Devices:
    Name: Emulator1
    Path: C:\Users\pgj\.android\avd\Emulator1.avd
  Target: Android 2.2 (API level 8)
     ABI: armeabi
    Skin: HVGA
  Sdcard: 160M


  DONE
Android Device search starting.....Android Devices searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\platform-tools\"

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached
SH0CFPL05768   device



  DONE
Android searching AVDs .....Android searching AVDs .....Android AVD searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\tools\"

C:\Android\android-sdk\tools>android list avd

Android AVD searching... Available Android Virtual Devices:
    Name: Emulator1
    Path: C:\Users\pgj\.android\avd\Emulator1.avd
  Target: Android 2.2 (API level 8)
     ABI: armeabi
    Skin: HVGA
  Sdcard: 160M


  DONE
Android Device search starting.....Android Devices searching...
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\platform-tools\"

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached
SH0CFPL05768   device



  DONE
1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....  DONE
PH_2 Android_CopyStack....  DONE
PH_3 Android Updating Manifest ... DONE
PH_4 Android Repackaging.....
PH_4 aapt package -f -v --version-code 1 -M "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Android\android-sdk\platforms\android-9\android.jar" -0 stk -F "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Tenerife.jfif.ap_" -A "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.tenerife.jfif
Repackaging..
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\platform-tools\"

C:\Android\android-sdk\platform-tools>aapt package -f -v --version-code 1 -M "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Android\android-sdk\platforms\android-9\android.jar" -0 stk -F "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Tenerife.jfif.ap_" -A "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.tenerife.jfif

Repackaging.. Found 27 custom asset files in C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets
Configurations:
 (default)

Files:
  assets\Local\SAM_1784.JPG
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\SAM_1784.JPG
  assets\Local\blank.mov
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\blank.mov
  assets\Local\hnr_icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\hnr_icon.jpg
  assets\Local\icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\icon.jpg
  assets\Local\vvpict_1_3_1
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\vvpict_1_3_1
  assets\Pictures\SAM_1784.JPG
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Pictures\SAM_1784.JPG
  assets\Pictures\vvpict_1_3_1
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Pictures\vvpict_1_3_1
  assets\black800x600.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\black800x600.jpg
  assets\hnr_icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\hnr_icon.jpg
  assets\icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\icon.jpg
  assets\splash.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\splash.jpg
  assets\stack.stk
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\stack.stk
  assets\test1.txt
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\test1.txt
  assets\zz589x4_beep1.ogg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.ogg
  assets\zz589x4_beep1.wav
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.wav
  assets\zz589x4_btn_check_off.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off.png
  assets\zz589x4_btn_check_off_disable.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off_disable.png
  assets\zz589x4_btn_check_on.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on.png
  assets\zz589x4_btn_check_on_disable.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_disable.png
  assets\zz589x4_btn_check_on_pressed.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_pressed.png
  assets\zz589x4_btn_radio_off.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_off.png
  assets\zz589x4_btn_radio_on.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on.png
  assets\zz589x4_btn_radio_on_pressed.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on_pressed.png
  assets\zz589x4_btn_square_disabled.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_disabled.png
  assets\zz589x4_btn_square_normal.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_normal.png
  assets\zz589x4_btn_square_pressed.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_pressed.png
  assets\zz589x4_cursor1.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_cursor1.png
  drawable\hnr_icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg
  drawable\hnr_icon.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
  drawable\icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.jpg
  drawable\icon.png
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
  drawable\notification_icon.jpg
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.jpg
 
Repackaging..  layout\card.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
  layout\main.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
  layout\menu.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
  layout\settings.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml
  layout\splash.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml
  raw\testh1
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  values\integers.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
  values\strings.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
  AndroidManifest.xml
    Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\hnr_icon.jpg
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg
    drawable\hnr_icon.png
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    drawable\icon.jpg
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.jpg
    drawable\icon.png
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    drawable\notification_icon.jpg
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.jpg
  Type layout
    layout\card.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
    layout\main.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
    layout\menu.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
    layout\settings.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml
    layout\splash.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml
  Type raw
    raw\testh1
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  Type values
    values\integers.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
    values\strings.xml
      Src: () C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
Including resources from package: C:\Android\android-sdk\platforms\android-9\android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    (processed image C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png: 97% size of source)
Processing image: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    (processed image C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png: 95% size of source)
    (new resource id hnr_icon from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg)
    (new resource id hnr_icon from drawable\hnr_icon.png #generated)
    (new resource id icon from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.jpg)
    (new resource id icon from drawable\icon.png #generated)
    (new resource id notification_icon from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.jpg)
    (new resource id card from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml)
    (new resource id main from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml)
    (new resource id menu from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res
Repackaging.. \layout\menu.xml)
    (new resource id settings from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml)
    (new resource id splash from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml)
    (new resource id testh1 from C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1)
    (skipping index file 'C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Thumbs.db')
    (skipping index file 'C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\Thumbs.db')
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
res\drawable\hnr_icon.png:0: error: Resource entry hnr_icon is already defined.
res\drawable\hnr_icon.jpg:0: Originally defined here.
res\drawable\icon.png:0: error: Resource entry icon is already defined.
res\drawable\icon.jpg:0: Originally defined here.


  DONE
PH_5 Android BuildAPK.....
Rebuild Data
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Android\android-sdk\tools\"

C:\Android\android-sdk\tools>apkbuilder "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk" -u -z "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Tenerife.jfif.ap_" -f "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\classes.dex"

Rebuild Data
THIS TOOL IS DEPRECATED. See --help for more information.

java.io.FileNotFoundException: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Tenerife.jfif.ap_ does not exist


  DONE
PH_6 Android_SignAPK .....TYPE:---   debug.keystore
Debug Key
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Program Files (x86)\Java\jdk1.6.0_33\bin\"

C:\Program Files (x86)\Java\jdk1.6.0_33\bin>jarsigner -J-Duser.language=en -keystore "C:\Users\pgj\AppData\Roaming\HAC_Data\data\debug.keystore" "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk" androiddebugkey

Debug Key Enter Passphrase for keystore:
Debug Key jarsigner: unable to open jar file: C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk

Debug Data
  DONE
PH_7 Android_SignVerifyAPK .....-
C:\Data\HyperNext\Tenerife.jfif>cd "C:\Program Files (x86)\Java\jdk1.6.0_33\bin\"

C:\Program Files (x86)\Java\jdk1.6.0_33\bin>jarsigner -J-Duser.language=en -verify  "C:\Users\pgj\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Tenerife.jfif.apk"
jarsigner: java.util.zip.ZipException: error in opening zip file
-
shell jar verify failed

tigabyte

  • Administrator
  • Newbie
  • *****
  • Posts: 54
Re: java errors when building project
« Reply #1 on: July 03, 2012, 05:30:35 AM »
Hello

Thank you for your log again.

Please see my reply here and questions so that I can help you:-

http://www.tigabyte.com/forum/index.php?topic=186.msg433#msg433


By the way - this forum is for HyperNext Studio (Windows and Mac apps) - blue background
HyperNext Android forums - green background :)

Malkom
« Last Edit: November 10, 2015, 06:13:21 AM by Malkom »

pa-gjerd@online.no

  • Newbie
  • *
  • Posts: 2
Re: java errors when building project
« Reply #2 on: July 03, 2012, 06:21:30 PM »
Hi

Thank you very much for your quick reply.

The icon.jpg / icon.png issue was the cause of the problem.  Made sure that duplicate file names disregarding extension did not exist and it worked.  Thanks a lot!!

Regards
Pål

tigabyte

  • Administrator
  • Newbie
  • *****
  • Posts: 54
Re: java errors when building project
« Reply #3 on: July 04, 2012, 05:08:00 AM »
Hi Pål

Thats great you got it working and thank you for letting us know what the problem was.

Malkom