-1

I have an Ear file. I took a Java class file out, decompiled it and edited it.

I now want to recompile the new Java source file and re-add the resulting class file to my new Ear.

When I tried to recompile the new Java source file, the compiler complained about unrecognised classes, imports etc. I expected this.

My question is, can I recompile this new class and add it to my new Ear?

TheCoder
  • 8,413
  • 15
  • 42
  • 54

3 Answers3

0

Perhaps the classes needed are also in the EAR. If not, you need to create stubs for all the classes, it needs.

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130
0

Yes, you'll need to add all the dependencies to the classpath

0

I abandoned the idea of decompile, recompile and readd. I rebuilt the entire Ear from scratch.

TheCoder
  • 8,413
  • 15
  • 42
  • 54