Re: [Ikvm-developers] Using IKVM as a JRE with Eclipse
Brought to you by:
jfrijters
From: Volker B. <vol...@go...> - 2011-02-07 20:41:58
|
What is "gdk-sharp"? This is not an assembly from IKVM. Is it your own dll or jar file? Is the stacktrace completly. I am missing the caller of forName. Volker > -----Ursprüngliche Nachricht----- > Von: Paul Gray [mailto:pau...@sc...] > Gesendet: Montag, 7. Februar 2011 21:18 > An: ikv...@li... > Betreff: Re: [Ikvm-developers] Using IKVM as a JRE with Eclipse > > It looks like I can get it to work. I have to exit from > eclipse and run it again before I can put enter the ikvm > folder on preferences. (No idea why). Anyway, now my > application won't run. I get the message > > > Exception in thread "main" > cli.System.IO.FileNotFoundException: File or assembly name > gdk-sharp, or one of its dependencies, was not found. > at > IKVM.Internal.DotNetTypeWrapper.MakeMethodDescriptor(Unknown Source) > at > IKVM.Internal.DotNetTypeWrapper.LazyPublishMembers(Unknown Source) > at IKVM.Internal.TypeWrapper.GetMethodWrapper(Unknown Source) > at > IKVM.Internal.ClassFile+ConstantPoolItemMethodref.Link(Unknown Source) > at IKVM.Internal.ClassFile.Link(Unknown Source) > at > IKVM.Internal.DynamicTypeWrapper+JavaTypeImpl.Finish(Unknown Source) > at IKVM.Internal.DynamicTypeWrapper.Finish(Unknown Source) > at IKVM.NativeCode.java.lang.Class.forName0(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:265) > > > What do I do here? > > -----Original Message----- > From: Tardito, David (US SSA) [mailto:dav...@ba...] > Sent: Monday, February 07, 2011 2:52 PM > To: Paul Gray; Volker Berlin; ikv...@li... > Subject: RE: [Ikvm-developers] Using IKVM as a JRE with Eclipse > > This worked for me: > > install IKVM in a directory, for example c:\ikvm > > create directory c:\ikvm\bin and c:\ikvm\lib > > mv ikvm*.exe to c:\ikvm\bin > > Copy c:\ikvm\bin\ikvm.exe to c:\ikvm\bin\java.exe. > > Copy rt.jar from your favorite real Java runtime to > c:\ikvm\lib. Don't worry because, of course, it will not > really be used. > > In Eclipse, pull down the Window menu option and select > Preferences - Java - Installed JRE's. Click the Add... > button. Leave the type as "Standard VM". A suggested "JRE > name" is "IKVM". Point the "JRE home directory" to c:\ikvm. > > When you want to run it, select Run - Run ... In the JRE tab, > click the "Alternate JRE" option and select IKVM from the > pulldown. If you want to be clear, in the "Java executable" > select Alternate and type in "ikvm" (that is the ikvm.exe program). > > Now run the program. It will run under IKVM, but it is > indistinguishable from Java. > > Hope this helps, > Dave > > From: Paul Gray [mailto:pau...@sc...] > Sent: Monday, February 07, 2011 2:39 PM > To: Volker Berlin; ikv...@li... > Subject: Re: [Ikvm-developers] Using IKVM as a JRE with Eclipse > > I tried that. For me, ikvm is installed at d:\ikvm-0.36.0.11. > so I copied ikvm.exe as java.exe (Does it matter if it's > copied or renamed?) and I created a folder > d:\ikvm-0.36.0.11\bin and copied rt.jar from C:\Program > Files\Java\jre6\bin. Then I went to "installed jres" under > "preferences" in eclipse. When entering the > d:\ikvm-0.36.0.11 folder, I got the message "Target is not a > JDK root. System library was not found." . Now I'm stuck. > Sent: Monday, February 07, 2011 2:23 PM > To: ikv...@li... > Subject: Re: [Ikvm-developers] Using IKVM as a JRE with Eclipse > > You need to emulate the file structure of a standard JRE. > Rename ikvm.exe to java.exe. And parallel to the bin > directory you create a lib directory and copy a rt.jar. > Eclipse check if java.exe and rt.jar are valid files. > > Volker > > ________________________________________ > Von: Paul Gray [mailto:pau...@sc...] > Gesendet: Montag, 7. Februar 2011 17:56 > An: Jeroen Frijters; ikv...@li... > Betreff: [Ikvm-developers] Using IKVM as a JRE with Eclipse > I was trying to use IKVM through eclipse and found some > instructions but they seem to be way out of date. I found > them at > http://weblog.ikvm.net/PermaLink.aspx?guid=c2e84d9d-f369-4b85- > ac6b-4fa931d2b006 > > (I am using ikvm version 0.36.0.11 as it's the last version > to support .net 1.1) > > > The instructions say to either put c:\ikvm\lib into rt.jar > (Does this mean to add a blank folder to the jar archive? I > am confused). Also it says you can use ikvmstub on > ikvm.gnu.classpath.dll, but this file doesn't exist anywhere > (I'm guess this is because I'm looking at instructions from 6 > years ago.) How should I proceed? > > Thanks > > Paul > > Paul Gray > Senior Software Developer > > Financial Guidance Solutions > A Division of Scivantage > > 10 Exchange Place, 13th Floor > Jersey City, New Jersey 07302 > T 646.452.3175 > F 646.452.0049 > pau...@sc... > http://www.financialguidance.com > http://www.scivantage.com > > > Automate > Connect > Transact > > > -------------------------------------------------------------- > ---------------- > The ultimate all-in-one performance toolkit: Intel(R) > Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > |