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

Doesn't work when not run from within the exploded zip/tar #8

Closed
dwijnand opened this issue Feb 7, 2017 · 4 comments
Closed

Doesn't work when not run from within the exploded zip/tar #8

dwijnand opened this issue Feb 7, 2017 · 4 comments

Comments

@dwijnand
Copy link

dwijnand commented Feb 7, 2017

$ opt/jvm-mon-0.1/bin/jvm-mon
objc[39393]: Class JavaLaunchHelper is implemented in both /Users/dnw/.jenv/versions/1.8/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

node.js:376
        callback();
        ^
module.js:341: Error: Cannot find module '/Users/dnw/opt/jvm-mon-0.1/bin/src/dist/jvm-mon.js'

$ cd opt/jvm-mon-0.1
$ bin/jvm-mon
objc[39418]: Class JavaLaunchHelper is implemented in both /Users/dnw/.jenv/versions/1.8/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.~
$ # that worked
@ajermakovics
Copy link
Owner

I suspected this was the case. Ideally the bin/jvm-mon script would handle this by changing current working directory. Unfortunately that script is generated by Gradle on every build and tweaking it is tricky

@sergiotudela
Copy link

The same for here.

$ cd opt/jvm-mon-0.1
$ bin/jvm-mon

It worked for me.

@ajermakovics
Copy link
Owner

Added a fix in the new version (0.2) to allow running from other directories

@dwijnand
Copy link
Author

dwijnand commented Feb 8, 2017

Works great. Thanks @ajermakovics.

@dwijnand dwijnand closed this as completed Feb 8, 2017
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

3 participants