db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayaram Subramanian <rsjay1...@gmail.com>
Subject Re: [jira] Commented: (DERBY-4616) SysinfoTest prints permission errors when printing sysinfo
Date Wed, 29 Sep 2010 04:02:17 GMT
Hi All,
Thanks for your suggestions.. As suggested i removed java.exe from
c:\windows\system32 folder and then i think the system started picking
up the IBM JVM..But i started getting a different issue when i tried
executing

java -Dderby.tests.trace=true junit.textui.TestRunner
org.apache.derbyTesting.functionTests.tests.derbynet.SysinfoTest >
runoutputSept26.out 2>&1

Exception

Exception in thread "main" java.lang.NoClassDefFoundError:
junit.textui.TestRunner
Caused by: java.lang.ClassNotFoundException: junit.textui.TestRunner
	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: junit.textui.TestRunner.  Program will exit.

Please find the results of java-version command after pointng to IBM JVM

$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr8fp1-20100624_01(SR8 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows Vista x86-32 jvmwi3260sr8ifx
20100609_59383 (JIT enabled, AOT enabled)
J9VM - 20100609_059383
JIT  - r9_20100401_15339ifx2
GC   - 20100308_AA)
JCL  - 20100624_01

With Regards
Jayaram


On Mon, Sep 27, 2010 at 11:22 PM, Bryan Pendleton
<bpendleton.derby@gmail.com> wrote:
>> Java home:       C:\Program Files\Java\jre6
>>
>>
>> Should i have to modify any other thing for the sysinfo to pick up the IBM
>> JVM?
>
> Two possibilities occur to me:
>
> 1) Check your ant.properties, to see what your settings are for the 'jdk16'
> variable,
> and see if you can reset that variable to point to your IBM JRE.
>
> 2) You may be getting bitten by something called the "public JRE". I think
> that
> the JDK installer for the Sun version of Java installs a special extra
> copy of the JRE in a location that is automatically picked up by programs. I
> think
> you can use the 'add/remove programs' technique to uninstall the public JRE,
> but
> I think I've generally just poked around in C:\windows\system32 looking for
> things
> like 'java.exe' there, and deleted them, so that the actual java
> installation that
> I use comes from elsewhere on my path rather than from the windows system
> directory.
>
> Hope this helps,
>
> bryan
>

Mime
View raw message