belgattitude / soluble-japha

PHP Java integration
https://belgattitude.github.io/soluble-japha/
MIT License
69 stars 15 forks source link

Error: Class 'Soluble\Japha\Bridge\Adapter' not found #50

Closed BeachyHeadCode closed 5 years ago

BeachyHeadCode commented 5 years ago

I am trying to call the Adapter class and it is not found. All my other classes I have installed on composer are found when using get_declared_classes(). Even Psr/Log/NullLogger is found. I think you have something wrong in your composer.json file. I have mine set to "soluble/japha": "^2.6.4",

belgattitude commented 5 years ago

Hi @MrPlow254

Cannot reproduce... But can you double check if your composer install is fine...

Steps to try:

  1. Ensure you have well loaded composer autoload file require vendor/autoload.php. (I guess it's fine, most frameworks do it automatically. Otherwise you need to first include this file)
  2. Checks that the vendor/composer/autoloader_psr4.php have been generated and contains at least:
'Soluble\\Japha\\' => array($vendorDir . '/soluble/japha/src/Soluble/Japha'),

Let me know

BeachyHeadCode commented 5 years ago

Okay, just reinstalled composer. Seems to work now.