You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jolyon Holdstock <jo...@ogt.co.uk> on 2004/09/07 16:23:16 UTC
RE: running a JAR file
Hi,
Sorry for my late reply - been away.
I have resolved the problem by specifying the Velocity jar in the
command line -classpath option. I have been using JBuilder and had
believed that it
automatically included it in the build - not so.
Cheers,
Jolyon
-----Original Message-----
From: Shinobu Kawai [mailto:shinobu@ieee.org]
Sent: 30 August 2004 02:18
To: Velocity Users List
Subject: Re: running a JAR file
Hi Jolyon,
> I am using Velocity to format the output for an application I have
> written and very nice it is to. I will releasing my app via a jar
file.
Very nice!
> I have created the jar file and am tying to run it but I now get a
null
> pointer exception. I believe this is caught when I initialize
Velocity.
> System.out.println("Initialising velocity"); //this prints
>
> Velocity.init();
>
> System.out.println("Velocity initialized"); //this does not
> printed
Can you supply us with a stack trace? The content of the jar
(especially
the MANIFEST file) and the command line used to run the jar would help
solve the problem, too.
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <shinobu@ieee.org, shinobu@computer.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org