简体   繁体   中英

How to import .class files in eclipse?

I have a project which I want to import in eclipse and it has all files in .class format, If I create any file in eclipse its in .java format.

The application is created in the spring framework.

I tried to import the project by .war file. But It dose not show the .class files in that. I can not open the .class file and cant see the code.

It looks like this :

在此处输入图片说明

If I explore these folders through file explorer I can see all the .class files.

I want to check the code and run the application. How can it be done?

I am new into eclipse and web development. Can anyone help me out with this please? Thank you..

.class is a binary file . You cannot view the source code in a .class file. You need the .java file to view and edit code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM