Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual j# not working in .net 4

Tags:

.net-4.0

j#

I tried to convert a project that relies on the vjs runtime to vs2010, but it errors out when trying to run.

It's giving the error that "Could not load file or assembly 'vjslib' or one of its dependencies. An attempt was made to load a program with an incorrect format."

I reinstalled the vjs runtime, but it didn't seem to help.

Is there any way to get get .net 4 to work with this?

like image 240
Arthurdent510 Avatar asked Apr 13 '10 18:04

Arthurdent510


People also ask

What is J# used for?

J# is a programming language that provides developers with a set of tools for developing Java applications that can run on Microsoft's . NET runtime platform. This term is also known as Visual J# (often pronounced as "Jay-Sharp").

What is Visual Java?

Visual J# (pronounced "Jay Sharp") is a Microsoft language whose syntax is close to Java, part of the . NET Framework. Visual J# is part of the Microsoft Visual Studio . NET product suite and is designed to help developers and programmers migrate from J++ (or Java) to the . NET Framework.

Is J ++ a programming language?

Visual J++ is Microsoft's implementation of the Java programming language.

What is Microsoft Visual J# 2.0 redistributable package?

Description: The Microsoft Visual J# Redistributable Package Version 2.0 Redistributable Package includes utilities and functionalities for running Visual J# applications on a computer. This technology allows developers to use Java-language syntax to build applications and services on the . NET Framework.


1 Answers

I got this to work by copying C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjsnativ.dll (for 64 bit Microsoft.NET\Framework64\v2.0.50727\vjsnativ.dll) to my application's debug/release directory.

I suspect Microsoft will need to release another j# redistributable package to work with .net 4.0. Meanwhile, this work-around does a fine job.

like image 167
Jimmy Avatar answered Sep 19 '22 08:09

Jimmy