Solved

Error Trying to reference vjslib.dll in .net

Posted on 2007-11-26
6
7,555 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

15 Experts available now in Live!

Get 1:1 Help Now