db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <rick.hille...@oracle.com>
Subject Re: Should sysinfo be in derbynet.jar
Date Mon, 11 Oct 2010 13:14:20 GMT
I think the intention is that you should be able to run sysinfo on any 
jar file by itself. Don't remember the motivation for that behavior, but 
that seems to be the expectation.

Regards,
-Rick


Kathey Marsden wrote:
>  I had thought that sysinfo was in all the jars, but see the actual 
> sysinfo class is not in derbynet.jar (Although supporting classes and 
> resources are.).  Should it be there? If it is alone in a directory I 
> get:
>
> $ java -cp derbynet.jar org.apache.derby.tools.sysinfo
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org.apache.derby.tool
> s.sysinfo
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.derby.tools.sysinfo
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
> Could not find the main class: org.apache.derby.tools.sysinfo.  
> Program will exi
> t.
>
>
>   2833 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/loc/sysinfoMessages.propert
> ies
>    584 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$1.c
> lass
>    758 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$2.c
> lass
>    874 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$3.c
> lass
>    828 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$4.c
> lass
>    808 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$5.c
> lass
>   1044 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$6.c
> lass
>   1581 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main$7.c
> lass
>  20374 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/Main.cla
> ss
>   1554 Tue Sep 28 14:30:14 PDT 2010 
> org/apache/derby/impl/tools/sysinfo/ZipInfoP
> roperties.class
>
>


Mime
View raw message