Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] JUnit classpath issues

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] JUnit classpath issues
  • Date: Sat, 24 Feb 2018 16:19:51 -0500

OK, likely an issue with a 1.8 VM trying to run 1.6 code:

http://www.draconianoverlord.com/2014/04/01/jdk-compatibility.html


Now I need to figure out how to configure any to avoid this.



On Sat, Feb 24, 2018 at 4:14 PM, Elliotte Rusty Harold
<elharo AT ibiblio.org> wrote:
> What's really weird is that the compiler, both ant and Eclipse, finds
> JUnit but at runtime I get this error.
>
> On Sat, Feb 24, 2018 at 4:08 PM, Elliotte Rusty Harold
> <elharo AT ibiblio.org> wrote:
>> Now that I've finally got https working, I'm trying to make some small
>> fixes that have accumulated over the last few years.
>>
>> ATM the tests are all failing though, due to some weird JUnit classpath
>> issue:
>>
>> Can anyone look at the git repo and see what the problem is? Maybe the
>> old bundled junit.jar is borked somehow in modern VMs?
>>
>> java.lang.NoClassDefFoundError: junit/framework/TestCase
>> at java.lang.ClassLoader.deefineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142))
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java::361)
>> at java.lang.ClassLoader.loaadClass(ClassLoader.java:424)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:4111)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:3331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java::357)
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoaader.defineClass(ClassLoader.java:760)
>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>> at java.net.URLClassLoader.defineClass(URLClassLoader..java:467)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>> at java.security.AccessController.doPrivileged(Native Method))
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:3661)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:264)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:3881)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at java.lang.ClassLoader.loaadClass(ClassLoader.java:357)
>>
>>
>>
>> --
>> Elliotte Rusty Harold
>> elharo AT ibiblio.org
>
>
>
> --
> Elliotte Rusty Harold
> elharo AT ibiblio.org



--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page