反编译的Jar文件的Classpath [英] Classpath of a decompiled Jar file

查看:105
本文介绍了反编译的Jar文件的Classpath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我不是CS专业或任何东西,我只是在寻找一些可以练习我从视频观看的Java技能的东西。我知道这不是主要的方法,但请允许我。

So I'm not CS major or anything and I've been just poking around stuff to practice some Java skills I watched from a video. I know this isn't the major way to do it but please, let me.

所以我提取了一个.jar文件: http ://www.zenlunatics.com/quizcards/ (我也有其彻底的源代码版本)。这是开源的我使用JD gui来获取源代码,并得到.java中的所有内容。但是,一旦我导入它,并尝试在Eclipse中运行它,它说没有主要类型。

So I extracted a .jar file of this: http://www.zenlunatics.com/quizcards/ (i also have its outright source version). It's open source. I used JD gui to get the source code and got everything in .java. However, once I imported it and tried to run it in Eclipse, it says there is "no main type."

我已经搜索,似乎有是一个public static ... String [] args,我没有看到任何生成的.java文件。

I've searched around and it seems there has to be a public static ... String[] args and I don't see that in any of the generated .java files.

我尝试在YouTube上搜索它,他得到.class而不是.java文件。所以说,我将.jar重命名为.zip和提取的类文件,我只是编辑主.class并构建?任何提示,请。

I tried searching about it on youtube and he's getting .class instead of .java files. So, say I renamed .jar to .zip and extracted class files, do I just edit the main .class and build? Any tips, please.

谢谢!

推荐答案

源代码下载 main 方法在 QuizCards 类( QuizCards.java )。

Looking in the source code download the main method is in the QuizCards class (QuizCards.java).

由于有一个源代码下载,你应该使用它。

Since there is a source code download you should use that.

这篇关于反编译的Jar文件的Classpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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