Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error Trying to reference vjslib.dll in .net

Posted on 2007-11-26
6
Medium Priority
?
7,780 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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 1600 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Integration Management Part 2
Screencast - Getting to Know the Pipeline

783 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