none
java.lang.System exception for vjslib in c# RRS feed

  • Question

  • Hi there,

    In my C# window application I am using vjslib to unzip the file programmatically. Its working fine on development machine. When I am deploying this application on Production server I am getting

    “The type initializer for 'java.lang.System' threw an exception” error. Production machine has .net 2.0 framework installed.

    Can any body help me how to resolve this issue?

     

    Regards,

    Shailesh

    shailshukla@yahoo.com

    Wednesday, June 20, 2007 7:17 PM

Answers

  • I resolved this problem.

    Copy following dlls into bin folder and it should be fine.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjscor.dll & C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjslib.dll &
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjsnativ.dll

    Regards,
    Shailesh
    shailshukla@yahoo.com

    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:21 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:21 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:22 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:22 PM
    • Edited by Shailshukla Wednesday, October 15, 2008 2:31 PM
    Tuesday, October 14, 2008 2:21 PM

All replies

  • Hi,

    I don't know if it's stil relevant...

    You should install the 'Microsoft Visual J# 2.0 Restributable Package' into your production server.

    Good luck.

    Friday, February 8, 2008 12:55 PM
  • I resolved this problem.

    Copy following dlls into bin folder and it should be fine.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjscor.dll & C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjslib.dll &
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjsnativ.dll

    Regards,
    Shailesh
    shailshukla@yahoo.com

    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:21 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:21 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:22 PM
    • Marked as answer by Shailshukla Tuesday, October 14, 2008 2:22 PM
    • Edited by Shailshukla Wednesday, October 15, 2008 2:31 PM
    Tuesday, October 14, 2008 2:21 PM
  • Thank you so much.This Resolved my problem.

     

    Thanks,

    Sue

    Thursday, July 14, 2011 11:41 AM
  • You save the day. Successful unzipping. This solves my problem instantly. Thanks

    

    Friday, July 21, 2017 5:15 PM
  • Thanks.. you save the day.
    Tuesday, November 28, 2017 3:56 AM
  • Hi,

    I'm facing the same issue with one of my SSIS package under Script Task. For copying the dll into BIN folder can not be done in my case as the bin folder will be created during run time. Could any one suggest the solution for fixing this issue under SSIS package script task.

    Thanks,

    Sanjai.

    Tuesday, May 1, 2018 6:07 PM