--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
I use to write the classpath before the jar file containing the main.
java doc says :
java [ options ] -jar file.jar [ argument ... ]
(options includes the classpath)
Could it be the problem ?
Michaël
On 27 jan, 20:20, Kerry Sainsbury <ke...@fidelma.com> wrote:
> Not really, but I'd check you've running the same version of java as you
> used when compiling "myJar.jar".
>
> Perhaps explictly specify the full path to the java.exe in your JDK
> directory....? (Just a guess!)
>
> On Thu, Jan 28, 2010 at 4:44 AM, moshi <mosh...@gmail.com> wrote:
> > Hi,
> > I developed a jar file that has h2.jar in the classpath.
> > I run the program in eclipse and everything goes well.
> > When I execute jar out of my project, and put it in c:
> > including the h2.jar, and call:
> > C:\>java -jar myJar.jar classpath c:\h2.jar
> > I get: Ljava.lang.StackTraceElement .
> > AnyBody has a clue ?
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "H2 Database" group.
> > To post to this group, send email to h2-da...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > h2-database...@googlegroups.com<h2-database%2Bunsu...@googlegroups.com>
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
> > > > h2-database...@googlegroups.com<h2-database%2Bunsubscribe@googlegroups.com>
> > <h2-database%2Bunsu...@googlegroups.com<h2-database%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/h2-database?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "H2 Database" group.
> > To post to this group, send email to h2-da...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > h2-database...@googlegroups.com<h2-database%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/h2-database?hl=en.- Hide quoted text -
>
> - Show quoted text -
> > >http://groups.google.com/group/h2-database?hl=en.-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
I guess what you wanted is (Windows):
java -cp h2.jar;myJar.jar -jar myJar.jar
or for Linux / OS X:
java -cp h2.jar:myJar.jar -jar myJar.jar
Regards,
Thomas
2010/01/30 4:25 "Thomas Mueller" <thomas.to...@gmail.com>:
-- You received this message because you are subscribed to the Google Groups "H2 Database" group. ...