Re: Solution for CLASSPATH
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nicos Panayides <anarxia@gmx.net> wrote:
[...]
> I have created the classloader (extends java.net.URLClassLoader) and
> it works ok. deb-java is the wrapper script for the classloader. It
> sets the classpath only for the jar file with the classloader and
> does:
>
> java -Djava.system.class.loader=DebianClassLoader $@
>
> Examples:
> CLASSPATH is not set.
>
> ant can be invoked with:
> deb-java org.apache.tools.ant.Main
>
> argouml can be invoked with deb-java org.argouml.application.Main
>
> Package with the classloader and the sources are at:
> http://anarxia.dyndns.org:2180/debian/pool/
>
> What do you think?
Great idea but it does not work for me...
ant1.5.1-1, j2sdk1.3 - 1.3.1.02b-2 - Blackdown Java(TM) 2 SDK,
Standard Edition and debian-classloader are installed.
$ deb-java org.apache.tools.ant.Main
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
But ant is there... in /usr/share/java/ant.jar
$ jar tvf /usr/share/java/ant.jar |grep org/apache/tools/ant/Main.class
15029 Wed Oct 23 17:17:58 CEST 2002 org/apache/tools/ant/Main.class
Architecture is Linux debian 2.4.20-powerpc (G3)
Regards,
- -- arnaud @ home
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQE+oXXs4vzFZu62tMIRAkJJAKCkCYvDv0KN17+KBtmid4NXlKIhlwCfY5He
scEnav5t3qo34FNAVSrBU4Q=
=2sZ7
-----END PGP SIGNATURE-----
Reply to: