I just code my server extension with hibernate without using maven. I copy hiberante, mysql connector... jars file to my libs folder and put hibernate.cfg.xml like this below picture
https://imgur.com/a/TBZYFeO
then i configure jar file like
https://imgur.com/a/srPhAdD
Then I built artifact in Window OS. My extension have run without any error, it was successfully done
But when I copy whole my project to Mac. Opened it and rebuilt artifact, run smartfox and it trace that "Cant not found hibernate.cfg.xml".
Code: Select all
private static final SessionFactory SESSION_FACTORY =
new Configuration().configure("/resources/hibernate.cfg.xml").buildSessionFactory();
I tried to replace "/resources/hibernate.cfg.xml" with relative path but it still false
What did I wrong?
Sorry, I dont know how to upload images
Thank you
p/s: I use IntelliJ to code and build artifact