本文介绍了在使用Java的AWS SWF中,AspectJ加载时间编织失败了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Installed jre中添加了Default VM参数

I added Default VM argument at Installed jre

-javaagent:E:\ eclipse-jee-juno-SR2-win32-x86_64 \ aws-java-sdk \ aspectj-1.7.3.jar

此处的说明

但是仍然低于错误

Error occurred during initialization of VM
agent library failed to init: instrument
Failed to find Premain-Class manifest attribute in E:\eclipse-jee-juno-SR2-win32-x86_64\aws-java-sdk\aspectj-1.7.3.jar

推荐答案

现在,我按照AWS提供的文档包含路径,该路径为此处

Working Now, I included the the path as per document provided by AWS which is here

需要将此路径更改为 aspectj-1.7.3 \ lib

现在我的新路径是

-javaagent:"E:\eclipse-jee-juno-SR2-win32-x86_64\aws-java-sdk\aspectj-1.7.3\lib\aspectjweaver.jar"

现在可以正常工作

[AppClassLoader@4f1799e7] info AspectJ Weaver Version 1.6.12 built on Tuesday Oct 18, 2011 at 17:52:06 GMT
[AppClassLoader@4f1799e7] info register classloader sun.misc.Launcher$AppClassLoader@4f1799e7
[AppClassLoader@4f1799e7] info using configuration /F:/AWS%20Workspace/HelloWorldWeb/build/classes/META-INF/aop.xml
[AppClassLoader@4f1799e7] info register aspect com.amazonaws.services.simpleworkflow.flow.aspectj.AsynchronousAspect
[AppClassLoader@4f1799e7] info register aspect com.amazonaws.services.simpleworkflow.flow.aspectj.ExponentialRetryAspect

,还包括 aspectj-1.7.3.jar

  1. 点击项目属性.
  2. 单击 AspectJ构建,然后单击 Aspect Path 标签.
  3. 点击添加外部JAR .
  1. Click Project Properties.
  2. Click AspectJ Build and then click the Aspect Path tab.
  3. Click Add External JARs.

瓶子在位置

E:\eclipse-jee-juno-SR2-win32-x86_64\aws-java-sdk\aspectj-1.7.3.jar

这篇关于在使用Java的AWS SWF中,AspectJ加载时间编织失败了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 18:56