MyEclipse10破解replaceJar一步报错解决方案

MyEclipse10破解replaceJar一步报错解决方案

前段时间MyEclipse10到期了,于是去找破解。网上倒是有一个给力的破解器——MyEclipse 9.x Crack。不过在按照步骤破解时却意外的报了一个错误:在进行到replaceJar这一步时,按照步骤的说明应该会弹出一个文件选择框,然后选中MyEclipse目录->Common->plugins目录。但是这里却无法弹出文件选择器,此时查看控制台会发现错误信息:
这里写图片描述

似乎和操作系统有关?
看看按下replaceJar按钮后的处理代码:

        JFileChooser jf = new JFileChooser();
        jf.setDialogTitle("Please Choose Myeclipse --> Plugin Folder");
        jf.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        jf.setMultiSelectionEnabled(false);
        jf.setFileFilter(dirctoryFileFilter);
        int returnVal = jf.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = jf.getSelectedFile();
            meReplacer.replace(file);
        }

这里在new FileChooser()这一步时就已经报错了。看起来应该是和操作系统有关。不过我们可以用个变通的方法,就是手动输入plugins目录的路径,而不用FileChooser来选择。将上面那段代码注释掉,改成如下:

        // some errors occur, so change to this manual way
        String path = JOptionPane.showInputDialog("please input the path in a manual way...");
        if (path != null) {
        File file = new File(path);
        if (file.exists()) {
            meReplacer.replace(file);
        } else {
            JOptionPane.showMessageDialog(this, "The path is not exsit!Please try again", "error", JOptionPane.ERROR_MESSAGE);
        }

改完之后运行如下图:
改完后的界面

最后给出改版后的下载地址:
下载地址

这里再补充一个问题,如何寻找MyEclipse的common目录呢?
可以查看myeclipse.ini文件:

-startup
C:/Users/Shuang/AppData/Local/Genuitec/Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值