Reputation: 53
I have a homework assignment and the instructor has emailed me a .class file.
I have unsuccessfully attempted:
I have spent a good part of my day without any luck. I know it is something super simple I have overlooked.
I have added a screen shot of my computer to show you what I have tried.
Thank you for your help.
Netbeans project, attempt to use existing class
Upvotes: 1
Views: 343
Reputation: 21
A class is not a code file, it's a compiled file (it uses Java bytecode), so there is no point in doing that. NetBeans creates .class files automatically when it executes a project. Tell the instructor to email you the code file. Never try to execute something you don't know what it is.
Upvotes: 1