MyEclipse8.0安装JBPM-gdp4.4

郁闷持续了两天了,今天下午终于解决了,松了一口气!

做个记号!

 

下载了JBPM,按照上面的说法安装

The installation of the GPD uses the Eclipse Software Update mechanism and is pretty straightforward. There is an archived update site included in the runtime installation of jBPM when you unzip it at install/src/gpd/jbpm-gpd-site.zip

To add the update site to eclipse:

  • Help --> Install New Software...
  • Click Add...
  • In dialog Add Site dialog, click Archive...
  • Navigate to install/src/gpd/jbpm-gpd-site.zip and click 'Open'
  • Clicking OK in the Add Site dialog will bring you back to the dialog 'Install'
  • Select the jPDL 4 GPD Update Site that has appeared
  • Click Next... and then Finish
  • Approve the license
  • Restart eclipse when that is asked

结合网上说的安装方法,我下载了Myeclipse8.5版本,使用软件升级,结果现象很奇怪,安装完了之后无法创建web project项目,而其可以创建的项目变少了,郁闷,有下载了MyEclipse8.6,心想,我自己安装了最新版本的,你就不用升级了吧,记过现象和8.5版本的一样。

 

看来是不能偷懒,按照文档上说的,下载了

You'll need Eclipse 3.5.0.

Use the demo setup or download eclipse manually: Eclipse IDE for Java EE Developers (163 MB).

The classic version of eclipse will not be sufficient as it does not have an XML editor. Eclipse for Java developers should also work.

再按照方法,很顺利的完成了。

 

灵机一动,直接把这个安装完成的使用plugins方法结合到我的MyEclipse8.0中,成功!

具体的方法:

 1:将eclispe中的 plugins 和features 中的关于org.jboss.tools的文件复制出来,放到相应的plugins 和features 中,然后放到插件管理的文件,命名jbpm-gdp文件夹中。

2:按照之前的

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class CreatePluginsConfig {

   public CreatePluginsConfig(){
    }

   public void print(String path){
        List list=getFileList(path);
       if(list==null){
           return;
        }

        int length=list.size();
       for(int i=0;i<length;i++){
            String result="";
            String thePath=getFormatPath(getString(list.get(i)));
            File file=new File(thePath);
            if(file.isDirectory()){
                String fileName=file.getName();
               if(fileName.indexOf("_")<0){
                    print(thePath);
                   continue;
               }
                String[] filenames=fileName.split("_");
               String filename1=filenames[0];
                String filename2=filenames[1];
                result=filename1+","+filename2+",file:/"+path+"//"+fileName+"//,4,false";
                System.out.println(result);
            }else if(file.isFile()){
                String fileName=file.getName();
                if(fileName.indexOf("_")<0){
                   continue;
               }
               int last = fileName.lastIndexOf("_");// 最后一个下划线的位置
                String filename1 = fileName.substring(0, last);
                String filename2 = fileName.substring(last + 1, fileName .length() - 4);
               result = filename1 + "," + filename2 + ",file:/" + path + "//" + fileName + ",4,false";
               System.out.println(result);
           }

        }
   }

    public List getFileList(String path){
        path=getFormatPath(path);
        path=path+"/";
       File filePath=new File(path);
        if(!filePath.isDirectory()){
           return null;
        }
        String[] filelist=filePath.list();
       List filelistFilter=new ArrayList();

       for(int i=0;i<filelist.length;i++){
           String tempfilename=getFormatPath(path+filelist[i]);
            filelistFilter.add(tempfilename);
        }
        return filelistFilter;
    }

    public String getString(Object object){
        if(object==null){
            return "";
        }
       return String.valueOf(object);
    }

    public String getFormatPath(String path) {
       path = path.replaceAll("", "/");
        path = path.replaceAll("//", "/");
       return path;
    }

    public static void main(String[] args){
        //插件文件所在目录designer下的目录结构是eclipse/features and plugins的形式
        String plugin = "D://plugins//jbpm-4.4//jbpm4.4-gpd";
        new CreatePluginsConfig().print(plugin);
   }
}


将打印出来的插件配置信息复制到
myeclipse安装路径下面的/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info中。然后重启MyEclipse8.0即可!

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值