From: Erik V. <eri...@hc...> - 2006-04-28 08:19:04
|
I have no problem running it from a jar with the below command: java -classpath \projects\Rails\18xx\rails.jar;\projects\Rails\18xx test.GameTest where the second part of the classpath is needed to make LocalisedText.properties visible.=20 I just threw the whole current structure into the jar. I cannot pursue this further now, as I am about to leave for a week vacation, but I'll send some stuff to Brett separately now. Erik. > -----Original Message----- > From: rai...@li...=20 > [mailto:rai...@li...] On Behalf Of=20 > brett lentz > Sent: 28 April 2006 00:57 > To: rai...@li... > Subject: [Rails-devel] Makings of a JAR >=20 > Over the past couple weeks, I've been pounding my head up against the > problem of constructing a JAR. >=20 > The fundamental problem is that resources within a JAR are accessed a > wee bit differently than they are when they're laying about on the > local filesystem. >=20 > I can't seem to find any worthwhile information that tells me how to > deal with accessing arbitrary files outside of the jar's classpath. >=20 > So, for the sake of not driving myself insane, the easiest option > seems to be relocating the /data and /tiles directories to beneath > /game . >=20 > If nobody has any alternative methods, as soon as I get my changes > working, I'll commit 'em. >=20 > ---Brett. >=20 >=20 > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel >=20 >=20 |