I agree with wayne fay there's usually a default jdk installed on
Solaris.
   try to verify  your  JAVA_HOME and PATH just to be sure.
 

Wayne Fay wrote:
> You must have an older JDK installed on your server.
>
> Run "java -fullversion" on both machines and upgrade the Solaris JDK
> to the version you're running on Windows.
>
> Wayne
>
> On 5/25/06, vadimsh <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I use m2.0.4 and cobertura 2.0 for report generation. It works fine
>> under
>> windows , but under solaris i get follow error
>>
>> [INFO] [cobertura:instrument]
>> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
>> file
>> Instrumenting 30 classes to ....../target/generated-classes/cobertura
>>
>> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
>> java/util/TimerTask
>>         at java.lang.ClassLoader.defineClass0(Native Method)
>>         at java.lang.ClassLoader.defineClass0(Compiled Code)
>>         at java.lang.ClassLoader.defineClass(Compiled Code)
>>         at java.security.SecureClassLoader.defineClass(Compiled Code)
>>         at java.net.URLClassLoader.defineClass(Compiled Code)
>>         at java.net.URLClassLoader.access$1(Compiled Code)
>>         at java.net.URLClassLoader$1.run(Compiled Code)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.security.AccessController.doPrivileged(Compiled Code)
>>         at java.net.URLClassLoader.findClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClass(Compiled Code)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>>         at java.lang.Class.getFields0(Native Method)
>>         at java.lang.Class.getFields0(Compiled Code)
>>         at java.lang.Class.getDeclaredFields(Compiled Code)
>>         at java.io.ObjectStreamClass$1.run(Compiled Code)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:259)
>>         at
>> java.io.ObjectStreamClass.createLocalDescriptor(ObjectStreamClass.java:138)
>>
>>         at
>> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:84)
>>         at
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
>>         at
>> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:170)
>>
>>         at
>> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:136)
>>
>>         at
>> net.sourceforge.cobertura.instrument.Main.parseArguments(Compiled
>> Code)
>>         at net.sourceforge.cobertura.instrument.Main.main(Main.java:462)
>>
>> When i check generated-classes/cobertura directory i see that part of
>> the
>> classes were instrumented but others don't exist.
>>
>> This problem is not of one specific module but repits in all of them .
>>
>> Any help appreciated, thanks a lot !
>> -- 
>> View this message in context:
>> http://www.nabble.com/Cobertura+under+solaris-t1680318.html#a4556741
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to