Solved

Error Trying to reference vjslib.dll in .net

Posted on 2007-11-26
6
7,597 Views
Last Modified: 2013-12-16
I'm trying to reference vjslib.dll using vb.net, and it work fine locally but when i try to publish on a server i get the following error i.e.
please see below

I'm sre this is an implmentation issue so what do i need to install on the server to get this working?

The type initializer for 'java.lang.System' threw an exception.
stack trace:   at java.io.File.getCanonicalPath()
   at java.io.FileOutputStream.commonConstruct(File file, Boolean append)
   at java.io.FileOutputStream..ctor(String path, Boolean append)
   at Framework1.Compression.PkZip.Zip(String zipFileName, List`1 sourceFiles)

Open in new window

0
Comment
Question by:paulCardiff
  • 3
  • 2
6 Comments
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 20349186
Have you copied the dll to your bin folder on the server?
0
 

Author Comment

by:paulCardiff
ID: 20349215
Yes first thing i did but still getting the error - shouldn't make a difference but for the record its a windows service
0
 
LVL 21

Expert Comment

by:MogalManic
ID: 20349267
Check to see if the exception contained an inner exception.  There may be more detail that will explain the EXACT problem.

It might be a security exception.  Meaning that the server is trying to access a file that it is not allowed access.
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:paulCardiff
ID: 20349374
Here the inner exception, seems to be moaning about a dependency - so i have to install anything on the server?

Or alternativly what dlls will i need in total?
The type initializer for 'java.lang.System' threw an exception.
stack trace:java.lang.UnsatisfiedLinkError: Unable to load DLL 'vjsnativ': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Open in new window

0
 

Author Comment

by:paulCardiff
ID: 20349382
* so i have to install anything on the server? = so do i have to install anything on the server?

0
 
LVL 21

Accepted Solution

by:
MogalManic earned 400 total points
ID: 20349918
It looks like you need to install the J# distributable package.  It is located at:
  http://msdn2.microsoft.com/en-us/vjsharp/bb188598.aspx

The package install will install certain libraries in the GAC.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question