Model.xml所有错误,无法运行我的jar文件 [英] Model.xml all errors and can't run my jar file

查看:129
本文介绍了Model.xml所有错误,无法运行我的jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行任何.jar文件时出现问题,它告诉我丢失或无法加载Main类,我发现我的module_rec.XML文件看起来像这样:

[我的module.xml截图]



是否相关?如果不是我怎么能解决这个问题?

我正在研究Intillij Idea

ps所有的红字都是错误的!



我尝试了什么:



我删除了jre和jdk然后下载并再次安装它们仍然没有工作

i'm having a problem running ANY .jar file it tells me missing or can not load Main class, i found my module_rec.XML file looking like that:
[screenshot from my module.xml]

is that's relevant ? and if it's not how can I fix this run issue
i'm working on Intillij Idea
ps all the red words are errors!

What I have tried:

I deleted the jre and the jdk then downloaded and installed them again and didn't still didn't work

推荐答案

错误信息是目标'register.custom.compilers'未知。



在将目标用作依赖项之前,必须已定义目标。示例:

The error message is "Target 'register.custom.compilers' is unkown".

The target must have been defined before using it as dependancy. Example:
<target name="register.custom.compilers">
    <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
    <taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
</target>



我对Idea不是很熟悉,但在设置项目时应该创建(和其他设置) (指定JDK和co你的项目要使用的mpiler)。


I'm not very familiar with Idea, but that (and other settings) should have been created when setting up your project (specifying the JDK and compiler to be used by your project).


这篇关于Model.xml所有错误,无法运行我的jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆