“Code too large” compilation error in Java

A single method in a Java class may be at most 64KB of bytecode. But you should clean this up! Use .properties file to store this data, and load it via java.util.Properties You can do this by placing the .properties file on your classpath, and use: Properties properties = new Properties(); InputStream inputStream = getClass().getResourceAsStream(“yourfile.properties”); … Read more