-
Notifications
You must be signed in to change notification settings - Fork 37
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
Error opening zip file or JAR manifest missing :JavaMOPAgent.jar #245
Comments
For the first option it looks like you are not running your java command from the directory that contains the JavaMOPAgent.jar file. For the second option, it looks like you are missing aspectjweaver.jar and rv-monitor-rt.jar from your classpath. |
Thank you for replying. I ensure that they have been configured in my classpath ,but it still errors like this: |
There is a weird question. When I build a agent on a Unix-like system, there is also an error occurred that the aspectjweaver.jar missing. But I check my classpath or the aspectJ folder, it is exists! I can't understand why.Have you ever had this problem? |
This is my classpath : C:\aspectj1.8\lib\aspectjrt.jar;C:\aspectj1.8\lib\aspectjtools.jar;C:\aspectj1.8\lib\aspectjweaver.jar;C:\aspectj1.8\lib\org.aspectj.matcher.jar;C:\RV-Monitor\lib\rv-monitor-rt.jar;C:\RV-Monitor\lib\rv-monitor.jar;C:\RV-Monitor\lib\aspectjweaver.jar;%RV-Monitor%\lib\logicrepository.jar; %JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar; |
|
On windows: On Ubuntu(get in touch with this type system for the first time): $CLASSPATH |
Sorry to bother you, I understand why it is. Thank you for reading my comments。 |
Glad to hear that you got this to work. Would you mind to share what the problem was and how you fixed it? Thanks! |
5.rv-monitor -merge -d classes/mop/ HasNext.rvm |
A question about this topic. I'm trying to run a project implementing a load time weaving with AspectJ. I'm using STS and if I'm not wrong I should modify the VM arguments of the Run Configurations windows with something like this "-javaagent:aspectjweaver-1.8.8.jar". |
@donlaiq is this a JavaMOP-related question? I don't understand what you mean by |
No, it's not about JavaMOP. It's about AspectJ Weaver, a load-time weaver. |
same happen to me, how did you solve this? |
您好,您发给我的邮件已收到。
|
All the prepare step i have done,then i run my java application,and i set the VM arguments like this:
-javaagent:JavaMOPAgent.jar
and then get this issue
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : JavaMOPAgent.jar
if VM arguments are prepared as : -javaagent:E:\workspace\test1\src\com\luo\JavaMOPAgent.jar
the errors will be
java.lang.ClassNotFoundException: org.aspectj.weaver.loadtime.Agent
FATAL ERROR in native method: processing of -javaagent failed
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Exception in thread "main"
please help me.
The text was updated successfully, but these errors were encountered: