Hello! Help me to understand! How to add a .class file to eclipse in a java-project? If I do through the 'Add Class Folder ...', then the folder with the classes is added to the project. And since it is a folder, not a package, then I cannot contact the connected class in any way from the program.

  • I'm not quite sure that you need to add .class to your project at all, describe why you need it? - Bohdan Korinnyi
  • I have a java project exported from one program. There are .jar files and a .class file. I need to build and run this project (I do this in eclipse). I connected the jar files, but the .class file cannot be connected. - Natalya
  • the project should work without .class but only with .jar , do you get an error when compiling? - Bohdan Korinnyi
  • I have an AS.class file. The project has the creation of an object of type AS: ascode = new AS (fLib); Since I cannot add an AS.clas file to a project, creating an object of class AS results in an error. - Natalya
  • all this is strange, something is wrong here, but if only one file, then you can create your own AS class and insert the code with AS.class into it - Bohdan Korinnyi

0