Solved

Error Trying to reference vjslib.dll in .net

Posted on 2007-11-26
6
7,512 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
Comment Utility
Have you copied the dll to your bin folder on the server?
0
 

Author Comment

by:paulCardiff
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:paulCardiff
Comment Utility
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
Comment Utility
* 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now