[Java-gnome-developer] Problems generating .jar
Brought to you by:
afcowie
From: <pab...@ho...> - 2006-09-19 13:53:28
|
<html><div style='background-color:'><DIV class=RTE>Hi all,</DIV> <DIV class=RTE> </DIV> <DIV class=RTE dir=ltr>I'm developing an application under eclipse with an interface designed on glade, when I generate the .jar file into workspace project, I can run it without problems, but, when I generate the .jar file out of the workspace and I run it, I obtain a FileNotFounException when program try to obtain the .glade file:</DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=RTE dir=ltr>...</DIV> <DIV class=RTE>glade = new LibGlade("./gui/project.glade"), this)</DIV> <DIV class=RTE>...</DIV> <DIV class=RTE> </DIV> <DIV class=RTE> </DIV></BLOCKQUOTE> <DIV class=RTE dir=ltr>It looks like java can`t read the file location when it's into a jar File, how should I define this file location to read it correctly?</DIV> <DIV class=RTE dir=ltr> </DIV> <DIV class=RTE dir=ltr>Thanks.</DIV> <DIV class=RTE dir=ltr>Pablo.</DIV></div><br clear=all><hr>Tu horóscopo diario, semanal y gratuito. <a href="http://g.msn.com/8HMBESES/2728??PS=47575" target="_top">Cartas, tarot y predicciones en MSN Horóscopo</a> </html> |