Quantcast
Channel: zeroturnaround.com » All Posts
Viewing all articles
Browse latest Browse all 2540

Reply To: Spaces in the JVM options

$
0
0

/necrobump

I’m running into this same error. I followed the instructions to install JRebel via the IntelliJ plugin and opting for running my server via command line (through maven) I had thought it had something to do with the spaces (I, too, had a dir named “Application Support” where the .dylib file was under in my MAVEN_OPTS), but after symlinking the file to a dir w/o the space, I still run into this error.

The exact error I get after trying to start my server (via mvn -T8 jetty:run -Dno-test -Dno-static -o -P dev -Dpackage.type=jar) is:

Could not find agent library '/Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib' in absolute path, with error: dlopen('/Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib', 1): image not found

Here’s some more info:

$echo $MAVEN_OPTS
> -Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2,TLSv1.1 -Djdk.tls.client.protocols=TLSv1.2,TLSv1.1 -agentpath:'/Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib'

$ls -l /Users/djlb/Library/ | grep Application
> drwx------+  49 djlb  staff  1666 Jul 13 14:52 Application Support
lrwxr-xr-x    1 djlb  staff    48 Jul 14 16:02 ApplicationSupport -> /Users/djlb/Library/Application Support/

$ls /Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib
> /Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib

$otool -L /Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib
/Users/djlb/Library/ApplicationSupport/IntelliJIdea14/jr-ide-idea/lib/jrebel6/lib/libjrebel64.dylib:
	libjrebel64.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)

$java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

Please help!


Viewing all articles
Browse latest Browse all 2540

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>