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

Is it possible to add all jars in a directory as soot class path in windows? #1289

Open
jl0x61 opened this issue Feb 13, 2020 · 2 comments
Open
Assignees

Comments

@jl0x61
Copy link

jl0x61 commented Feb 13, 2020

I use this command:

java -cp sootclasses-trunk-jar-with-dependencies.jar soot.tools.CFGViewer --soot-classpath .;"C:\Program Files\Java\jre1.8.0_241\lib\rt.jar";"D:\jdt_jar\org.eclipse.jdt.core_3.20.0.v20191203-2131.jar";"D:\tmp\hbase-2.2.3\lib\*" -process-dir "D:\tmp\hbase-2.2.3\lib\hbase-zookeeper-2.2.3.jar"

but the error message is:

soot.CompilationDeathException: Couldn't resolve classpath entry D:\tmp\hbase-2.2.3\lib\*: java.io.IOException: Invalid argument
        at soot.SourceLocator.explodeClassPath(SourceLocator.java:167)
        at soot.SourceLocator.getClassSource(SourceLocator.java:178)
        at soot.Scene.tryLoadClass(Scene.java:959)
        at soot.Scene.loadBasicClasses(Scene.java:1700)
        at soot.Scene.loadNecessaryClasses(Scene.java:1799)
        at soot.Main.run(Main.java:241)
        at soot.Main.main(Main.java:141)
        at soot.tools.CFGViewer.main(CFGViewer.java:101)

Any help will be appreciated!

@anddann anddann self-assigned this Feb 21, 2020
@Ablustrund
Copy link

hi,
i also want to add all jars in a directory, have you find a way to resolve it?

@mbenz89
Copy link
Contributor

mbenz89 commented Feb 27, 2020

Hi.

This is unfortunately not implemented to this day. The classpath is processed in soot.Scene#getSootClassPath.

We would be happy to accept a pull request on this feature if you want to implement it :).

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

No branches or pull requests

4 participants