Schmelly
10-11-2006 14:05:31
Hello together,
right now im experimenting how to develop Mogre based Applications with Java. For this i use the ikvm java virtual machine. The ikvm project provides tools for generating java stubs with which you can call .NET assemblies from java.
I wrote a minimal test application in java that tries just to create an Ogre Root object (i put the java classes directly in the OgreSDK/bin/release folder). The rather simple code is shown below:
When i now try to run my little application out of the OgreSDK/bin/release folder i get the following exception:
However everything works as expected when i use the .NET Console as follows:
Im a little bit confused here since i started my application right out of the bin/release folder and thought the appropriate Mogre dlls should be found... The next thing i tried was to install the Mogre.dll in the .NET assembley cache but this failed with the following error:
Im a little bit stucked here since i dont know .NET enough. Does anybody have an idea where the problem might lie?
thanks in advance,
David
right now im experimenting how to develop Mogre based Applications with Java. For this i use the ikvm java virtual machine. The ikvm project provides tools for generating java stubs with which you can call .NET assemblies from java.
I wrote a minimal test application in java that tries just to create an Ogre Root object (i put the java classes directly in the OgreSDK/bin/release folder). The rather simple code is shown below:
package test;
import cli.Mogre.Root;
public class Test {
public static void main(String[] args) {
new Root();
}
}
When i now try to run my little application out of the OgreSDK/bin/release folder i get the following exception:
Could not load file or assembly 'Mogre, Version=0.1.7.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
However everything works as expected when i use the .NET Console as follows:
package test;
import cli.System.Console;
public class Test {
public static void main(String[] args) {
Console.get_Out().Write("test");
}
}
Im a little bit confused here since i started my application right out of the bin/release folder and thought the appropriate Mogre dlls should be found... The next thing i tried was to install the Mogre.dll in the .NET assembley cache but this failed with the following error:
Unable to add the selected assembly. The assembly must have a strong name (name, version and public key).
Im a little bit stucked here since i dont know .NET enough. Does anybody have an idea where the problem might lie?
thanks in advance,
David