Error "java.lang.NoClassDefFoundError: Could not initialize class internal.GlobalVariable"

Hello Guys ,
I am trying to launch my test, but i get this error :
java.lang.NoClassDefFoundError: Could not initialize class internal.GlobalVariable

P.S : i have this Line on my code , " GlobalVariable.data = findTestData(‘DR_test_data/myData’) "

Any help Please

Thank youuuu

2 Likes

Please check in the <project>/bin/lib folder if there is a file named internal/GlobalVariable.class.

If there isn’t, you need to recreate it. Try the following steps:

  1. remove the <project>/bin folder
  2. remove the <project>/Libs folder
  3. close the project and reopen it

The bin and Libs will be automatically recreated

1 Like

Perfect !!! thank youuuu

2 Likes