Error: Main method not found in class

Could you please let me know why i see below error? program is working if i not obfuscate the class. any lead for this issue?

Error: Main method not found in class com.techm.cdo.automation.buildAutomation, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application

Please find below config

~/eclipse-workspace/test/lib] java -jar proguard.jar @myconfig.pro
ProGuard, version 7.2.3
Printing configuration to [standard output]…
-injars /Users/bj9306/eclipse-workspace/test/lib/automation-0.0.1-SNAPSHOT.jar
-outjars /Users/bj9306/eclipse-workspace/test/lib/out-automation-0.0.1-SNAPSHOT.jar

-libraryjars /Users/bj9306/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
-libraryjars /Library/Java/JavaVirtualMachines/jdk1.8.0_333.jdk/Contents/Home/jre/lib/rt.jar

-printmapping /Users/bj9306/eclipse-workspace/test/lib/proguard.map
-verbose
-printconfiguration

Ignore this question. i got this working.

1 Like