Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to work at all (Version 0.92) #2

Closed
GoogleCodeExporter opened this issue Aug 20, 2015 · 2 comments
Closed

Fails to work at all (Version 0.92) #2

GoogleCodeExporter opened this issue Aug 20, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

In the Hello World example the command line parameters are said to be as 
such:
java -jar smali.jar --dex HelloWorld.smali

The above fails to do anything, just outputs the help screen

It seems that in version 0.92, the command line parameter has changed so 
that it's this instead:
java -jar smali.jar -- HelloWorld.smali
or
java -jar smali.jar HelloWorld.smali

In this case, the above seems to be doing something, but it crashes with 
this error:

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
        at org.antlr.runtime.DFA.unpackEncodedString(DFA.java:191)
        at org.jf.smali.smaliLexer.<clinit>(smaliLexer.java:20013)
        at org.jf.smali.main.assembleSmaliFile(main.java:206)
        at org.jf.smali.main.main(main.java:138)

Original issue reported on code.google.com by zippyco...@gmail.com on 3 Jul 2009 at 4:45

@GoogleCodeExporter
Copy link
Author

Confirmed. I'll change the comments to reflect the new usage. As for the memory
error, I'm curious what your default heap size is. I wouldn't think you would 
run
into heap space issues with just the HelloWorld code, unless you have a tiny 
heap or
something. In any case adding an -Xmx512m option should do the trick.

Original comment by JesusFre...@gmail.com on 7 Jul 2009 at 12:46

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

fixed

Original comment by JesusFre...@gmail.com on 7 Jul 2009 at 1:48

  • Changed state: Fixed

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

No branches or pull requests

1 participant