Menu

Exception in thread "main" java.lang.Error: Unresolved compilation problem

2021-01-07
2021-01-08
  • Alfirus Ahmad

    Alfirus Ahmad - 2021-01-07

    I install Eclipse IDE, I try to run but facing problem below

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    SubstanceSkin cannot be resolved to a type
    SubstanceLookAndFeel cannot be resolved
    SubstanceSkin cannot be resolved to a type

    at com.openbravo.pos.forms.StartPOS.main(StartPOS.java:94)
    

    Can anyone help me to guide me?

     
  • paddy downey

    paddy downey - 2021-01-07

    What java are you using 1.8.251

     
  • Hugh

    Hugh - 2021-01-07

    @alfirus remove the look and feel iin the unicentaopos.properties and you should be sorted.

    swing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel
    
     
    • Alfirus Ahmad

      Alfirus Ahmad - 2021-01-08

      now

      Exception in thread "main" java.lang.Error: Unresolved compilation problem:

      at com.openbravo.pos.forms.StartPOS.main(StartPOS.java:59)
      

      Is there any clean source copy i can download?

       
  • paddy downey

    paddy downey - 2021-01-08

    main reasons for this error are;
    1 Same JRE version is used to compile and run the java program
    2 You are running java class from the classes directory and package is provided as directory.
    3Your java classpath is set properly to include all the dependency classes
    4You are using only file name without .class extension while running a java program
    5Java class main method syntax is correct
    As I asked above what java version are you using?

     

Log in to post a comment.