Skip to content

Path added with addClassPath ignored by init(opts) method #59

@nicolaspayette

Description

@nicolaspayette

I tried to do something like this:

JavaCall.addClassPath("/mypath/*")
JavaCall.init(["-Xmx512M"])

It took me a while to understand why my class path was ignored.

You need to do either:

JavaCall.init(["-Xmx512M", "-Djava.class.path=/mypath/*"])

or:

JavaCall.addClassPath("/mypath/*")
JavaCall.addOpts("-Xmx512M")
JavaCall.init()

It would be nice if init(opts) honored paths added via addClassPath (though this raises the question of what to do if the user also includes "-Djava.class.path=..." in opts). Short of that, maybe the docs could mention the possible gotcha.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions