android - java dx utility: UNEXPECTED TOP-LEVEL ERROR java.lang.ExceptionInInitializerError -


i'm trying convert normal java application library use on android. library dates java 1.1 , has been maintained, improved, etc, time, , in service on other platforms it's unlikely source code involved.

normally, due details of deployment, library not encapsulated in jar, merely kept in tree classpath magic. however, purposes of putting on android, jar created. went fine - no warnings or errors.

as there new development - , therefore debugging - step of processing through proguard skipped - time come later.

the error comes in next step, running dx convert use android. processing proceeds without error until fatal 1 described here. (there's 1 minor warning.)

the error splash:

unexpected top-level error: java.lang.exceptionininitializererror         @ java.io.bytearrayoutputstream.expand(bytearrayoutputstream.java:91)         @ java.io.bytearrayoutputstream.write(bytearrayoutputstream.java:201)         @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244)         @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:136)         @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:113)         @ com.android.dx.command.dexer.main.processone(main.java:247)         @ com.android.dx.command.dexer.main.processallfiles(main.java:183)         @ com.android.dx.command.dexer.main.run(main.java:139)         @ com.android.dx.command.dexer.main.main(main.java:120)         @ com.android.dx.command.main.main(main.java:89)         @ com.spartacusrex.spartacuside.external.dx.main(dx.java:14)         @ dalvik.system.nativestart.main(native method) caused by: java.lang.unsatisfiedlinkerror: native_get         @ android.os.systemproperties.native_get(native method)         @ android.os.systemproperties.get(systemproperties.java:47)         @ com.htc.profileflag.profileconfig.<clinit>(profileconfig.java:168)         ... 12 more 

the development environment terminal-ide. (google code site here.)

i'm running terminal-ide v 2.02 - latest. android versions are:

android 4.0.3 software version 2.14.531.3 71ord (the rest aren't pertinent, more on request) 

edit - new information

with idea there missing terminal-ide environment, set trying run dx on windows 7 box running eclipse. eclipse is running dx somehow converting on code plain .jar runs part of android application. however, not able dx run command line - complains can't find source input file! (any clues?)

meanwhile, @ someones' suggestion, set doing whole build in terminal-ide environment. meant little hacking simplify scenario, , kept failing on not finding java.rmi, commented sections out - presume there's android-ready rmi library can point to? ...continuing on, worked without error until got dx again , had similar error reported above:

unexpected top-level error: java.lang.exceptionininitializererror         @ com.android.dx.util.fileutils.readfile(fileutils.java:72)         @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:139)         @ com.android.dx.cf.direct.classpathopener.processdirectory(classpathopener.java:196)         @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:127)         @ com.android.dx.cf.direct.classpathopener.processdirectory(classpathopener.java:196)         @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:127)         @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:113)         @ com.android.dx.command.dexer.main.processone(main.java:247)         @ com.android.dx.command.dexer.main.processallfiles(main.java:183)         @ com.android.dx.command.dexer.main.run(main.java:139)         @ com.android.dx.command.dexer.main.main(main.java:120)         @ com.android.dx.command.main.main(main.java:89)         @ com.spartacusrex.spartacuside.external.dx.main(dx.java:14)         @ dalvik.system.nativestart.main(native method) caused by: java.lang.unsatisfiedlinkerror: native_get         @ android.os.systemproperties.native_get(native method)         @ android.os.systemproperties.get(systemproperties.java:47)         @ com.htc.profileflag.profileconfig.<clinit>(profileconfig.java:168)         ... 14 more 

that bug means jni call made , couldn't find native function trying tie to. looks android.os.systemproperties.get trying call native library function called native_get work. have library included in project?


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -