资源简介
a:下载ikvm-0.40.0.1.zip;ikvmbin-0.40.0.1.zip;openjdk6-b12-stripped.zip;
解压ikvm-0.40.0.1.zip,并将%IKVM_HOME%\bin添加到path中。此处的%IKVM_HOME%是指解压后ikvm的主目录。
b:建立一个JavaProject,自定义包、类、需要透露给外界的方法,然后、将这个JavaProject打包成jar文件。(eclipse和myeclipse都自带的,或者你可以显摆一下,用黑框框敲几个代码整)。
c:狸猫换太子:jar>>dll
打开黑框框(即:win+r,cmd,进入到%IKVM_HOME%\bin的目录下),
执行:ikvmc -out:dllFileNameOrPath.dll javaFileNameOrPath.jar
此时,就会在%IKVM_HOME%\bin目录下或者指定的Path下,会出现一个dllFileNameOrPath.dll文件,置于你的.Net项目中,添加引用,与此同时,请将
%IKVM_HOME%\bin\IKVM.OpenJDK.Core.dll
%IKVM_HOME%\bin\IKVM.Runtime.dll
%IKVM_HOME%\bin\IKVM.Runtime.JNI.dll
添加到你的.Net项目中,切记!
其中,using 后面跟java类的包名。
代码片段和文件信息
package com.sun.accessibility.internal.resources;
import java.util.ListResourceBundle;
public final class accessibility extends ListResourceBundle {
protected final object[][] getContents() {
return new object[][] {
{ “active“ “active“ }
{ “alert“ “alert“ }
{ “armed“ “armed“ }
{ “awtcomponent“ “AWT component“ }
{ “busy“ “busy“ }
{ “canvas“ “canvas“ }
{ “checkbox“ “check box“ }
{ “checked“ “checked“ }
{ “childNodeOf“ “child node of“ }
{ “collapsed“ “collapsed“ }
{ “colorchooser“ “color chooser“ }
{ “columnheader“ “column header“ }
{ “combobox“ “combo box“ }
{ “controlledBy“ “controlledBy“ }
{ “controllerFor“ “controllerFor“ }
{ “desktopicon“ “desktop icon“ }
{ “desktoppane“ “desktop pane“ }
{ “dialog“ “dialog“ }
{ “directorypane“ “directory pane“ }
{ “editable“ “editable“ }
{ “editbar“ “editbar“ }
{ “embeddedBy“ “embedded by“ }
{ “embeds“ “embeds“ }
{ “enabled“ “enabled“ }
{ “expandable“ “expandable“ }
{ “expanded“ “expanded“ }
{ “filechooser“ “file chooser“ }
{ “filler“ “filler“ }
{ “flowsFrom“ “flows from“ }
{ “flowsTo“ “flows to“ }
{ “focusable“ “focusable“ }
{ “focused“ “focused“ }
{ “footer“ “footer“ }
{ “frame“ “frame“ }
{ “glasspane“ “glass pane“ }
{ “header“ “header“ }
{ “horizontal“ “horizontal“ }
{ “htmlcontainer“ “HTML container“ }
{ “iconified“ “iconified“ }
{ “indeterminate“ “indeterminate“ }
{ “internalframe“ “internal frame“ }
{ “label“ “label“ }
{ “labelFor“ “label for“ }
{ “labeledBy“ “labeled by“ }
{ “layeredpane“ “layered pane“ }
{ “list“ “list“ }
{ “listitem“ “list item“ }
{ “managesDescendants“ “manages descendants“ }
{ “memberOf“ “member of“ }
{ “menu“ “menu“ }
{ “menubar“ “menu bar“ }
{ “menuitem“ “menu item“ }
{ “modal“ “modal“ }
{ “multiline“ “multiple line“ }
{ “multiselectable“ “multiselectable“ }
{ “opaque“ “opaque“ }
{ “optionpane“ “option pane“ }
{ “pagetab“ “page tab“ }
{ “pagetablist“ “page tab list“ }
{ “panel“ “panel“ }
{ “paragraph“ “paragraph“ }
{ “parentWindowOf“ “parent window of“ }
{ “passwordtext“ “password text“ }
{ “popupmenu“ “popup menu“ }
{ “pressed“ “pressed“ }
{ “progressMonitor“ “p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-09-21 12:18 openjdk6-b12\
文件 1503 2008-08-28 10:32 openjdk6-b12\ASSEMBLY_EXCEPTION
目录 0 2008-09-21 12:04 openjdk6-b12\control\
目录 0 2008-09-21 12:04 openjdk6-b12\control\build\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\com\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\com\sun\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\com\sun\jndi\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\com\sun\jndi\rmi\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\com\sun\jndi\rmi\registry\
文件 1870 2008-09-15 10:13 openjdk6-b12\control\build\linux-amd64\classes\com\sun\jndi\rmi\registry\ReferenceWrapper_Stub.class
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\java\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\java\rmi\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\java\rmi\activation\
文件 2242 2008-09-15 10:12 openjdk6-b12\control\build\linux-amd64\classes\java\rmi\activation\ActivationGroup_Stub.class
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\javax\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\javax\management\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\
目录 0 2008-09-21 12:36 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\rmi\
文件 19389 2008-09-15 10:13 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\rmi\_RMIConnectionImpl_Tie.class
文件 27517 2008-09-15 10:13 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\rmi\_RMIConnection_Stub.class
文件 3110 2008-09-15 10:13 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\rmi\_RMIServerImpl_Tie.class
文件 3804 2008-09-15 10:13 openjdk6-b12\control\build\linux-amd64\classes\javax\management\remote\rmi\_RMIServer_Stub.class
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\omg\
目录 0 2008-09-21 12:37 openjdk6-b12\control\build\linux-amd64\classes\org\omg\stub\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\omg\stub\javax\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\omg\stub\javax\management\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\omg\stub\javax\management\remote\
目录 0 2008-09-21 12:16 openjdk6-b12\control\build\linux-amd64\classes\org\omg\stub\javax\management\remote\rmi\
............此处省略12236个文件信息
评论
共有 条评论