Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 15:26:06 +0800
From:      Li Ye <Ye.Li@Sun.COM>
To:        grarpamp <grarpamp@gmail.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: java jar invocation
Message-ID:  <1253517966.17130.9.camel@moonocean>
In-Reply-To: <d2e731a10909202352g2b13f2e7q73e5a249022fd129@mail.gmail.com>
References:  <d2e731a10909202352g2b13f2e7q73e5a249022fd129@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Did you set your class path correctly?
Do your jar files require any additional libraries?

在2009年09月21日的14:52,grarpamp写道:
> Hi. Figured it was time to try out java on unix.
> Am I completely missing something about java or should these jars be
> firing off like applications with this invocation?
> Maybe I need a simpler app to test with?
> 
> 
> RELENG_8 i386 built 20090901 [installworld from RELENG_7]
> 
> # pkg_add
> diablo-jre-1.6.0.07.02
>  javavmwrapper-2.3.3
>  xextproto-7.0.5
>  xproto-7.0.15
>  xtrans-1.2.3
> 
> java -jar ./Azureus4.2.0.8.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/cli/ParseException
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.cli.ParseException
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 
> java -jar ./freenet7-freenet-build01232.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sleepycat/je/DatabaseException
> Caused by: java.lang.ClassNotFoundException: com.sleepycat.je.DatabaseException
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1253517966.17130.9.camel>