Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

failed to map: 'memory=new byte[pages][bytesPerPage]' #76

Open
shimondoodkin opened this issue Feb 12, 2017 · 1 comment
Open

failed to map: 'memory=new byte[pages][bytesPerPage]' #76

shimondoodkin opened this issue Feb 12, 2017 · 1 comment

Comments

@shimondoodkin
Copy link

shimondoodkin commented Feb 12, 2017

C:/Users/user/Desktop/nfctools/nfctools-core/src/main/java/org/nfctools/mf/ul/MemoryMap.java
Conversion finished in 4781ms.
ERROR: <unknown>:26: failed to map: 'memory=new byte[pages][bytesPerPage]'
java.lang.IllegalArgumentException: <unknown>:26: failed to map: 'memory=new byte[pages][bytesPerPage]'

https://github.com/grundid/nfctools/blob/master/nfctools-core/src/main/java/org/nfctools/mf/ul/MemoryMap.java

solved this by adding a compiled version of the source as a jar as a dependency with -cp with the path to the jar
and renaming the file to have an extension other than java
also making a copy of the file with single dimension array, then fixing it manually

maybe it is still a bug. so I leave this open

@kymowang
Copy link

kymowang commented Jun 8, 2017

I meet the problem too. I have too many 2 dim arrays and don't know how to continue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants