Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carga de librerías desde applet #196

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

Carga de librerías desde applet #196

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

La carga de librerías desde applet da fallo si se hace con el método al que 
le pasamos un String (el típico fallo de seguridad/permisos por no poder abrir 
ficheros).

Con el método al que se le pasa una URL, va bien pero el problema es cómo 
obtener esa URL. Con world.getGlobalResource() no sirve porque eso carga 
recursos que están dentro del jar (en el classpath) pero no en el directorio 
actual de AGE.

O meter el directorio actual en el classpath, o bien meter las librerías bsh 
dentro del jar.


Original issue reported on code.google.com by komoku on 16 Jun 2011 at 2:43

@GoogleCodeExporter
Copy link
Author

I think this issue was fixed but I forgot to mark it as fixed. If the include 
command is passed a string rather than an URL, then we capture 
SecurityException and we use getGlobalResource to obtain the library. We 
recommend to load AGE libraries with URLS obtained by getGlobalResource(), and 
world libraries with URLs obtained by getResource().

The problem with libraries outside the jar seems a non-issue, this seems to 
currently work, but needs more testing to make 100% sure.

Original comment by komoku on 16 Mar 2013 at 12:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant