java.lang.ClassFormatError: Extra bytes at end of class file

前端 未结 6 1577
鱼传尺愫
鱼传尺愫 2021-01-04 11:23

I\'m getting an odd error when I try and run this program. The class compiles fine into multiple .class files and I compiled it last week (before editing it) just fine. But

6条回答
  •  抹茶落季
    2021-01-04 12:08

    The problem was solved by removing all Line Feeds from the .java file and properly renaming it(OpenVMS defaults to all lower case unless told not to)

    Sadly a failure on my part by not testing between each but at least it works.

    In short:

    -Line Feeds are bad AND Name files properly (Java standards not OS standards)

提交回复
热议问题