Community

Hi. I have created a model which is database connected. All my files are in the same folder, so if I change this folder to a different path everything works ok. The problem comes when exporting it as an applet. If I change my folder to a different path, it stops working. Is it any way in which i can tell the programm to look for my database locally?(i mean in the current folder). I would appreciate any advice. Thank you.
to Igor: This is a typical problem with Java Applets. Please refer to the next topic where the same problem is discussing: http://www.xjtek.com/support/forum/anylogic6/150.
Actually you may put your applet to a web server and connect a databases located at the same host * JDBC should not allow untrusted applets access to local database data * An untrusted applet will normally only be allowed to open a database connection back to the server from which it was downloaded See JDBC Security considerations: http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame5.html
I think it is not a security problem, I have already signed my applet and if i put my database in the same absolute path i told anylogic it would be, everything works ok. But is there anyway i can tell my applet to look for my database in a relative path? When working in anylogic that does not matter because anylogic changes your databse path each time you run it. But the problem comes working with applets. Could someone help me please? My problem is: how to tell anylogic to loof for my database in a relativ path. Thank you all.
Using relative path for Access/Excel database will be available in next AnyLogic build (6.1.1)