Solved

Error Trying to reference vjslib.dll in .net

Posted on 2007-11-26
6
7,628 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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