首页新闻找找看学习计划

有关ikvm把jar转为dll找不到类的问题

0
悬赏园豆:30 [待解决问题]

现在有需要把一个java的jar转为.net的dll,根据网络,下载了 ikvm,然后用 ikvmc.exe -target:library xxx.jar 来转成 .net 的dll,虽然可以成功生成 dll ,但提示很多 类库找不到,

类似

warning IKVMC0100: Class "org.apache.http.nio.NHttpClientHandler" not found
warning IKVMC0100: Class "org.apache.http.protocol.RequestContent" not found
warning IKVMC0100: Class "org.apache.http.HttpRequestInterceptor" not found
warning IKVMC0100: Class "org.apache.http.protocol.RequestTargetHost" not found
warning IKVMC0100: Class "org.apache.http.protocol.RequestUserAgent" not found

(实际不止这么多)

 

生成的 dll 使用时也出问题同样是提示类库的不到。

 

最后电脑安装了 jdk 再转也是一样的问题。

 

有人知道如何解决吗? 或者有没有 可以打 jar 转成 dll 的高手,这里有尝希望可以解决问题。

 

谢谢 !

阿水乐园的主页 阿水乐园 | 初学一级 | 园豆:18
提问于:2014-09-28 16:07
< >
分享
所有回答(1)
0

我也遇到了这样的问题你
warning IKVMC0100: Class "org.apache.commons.pool2.BasePooledObjectFactory" not found
warning IKVMC0100: Class "de.javakaffee.kryoserializers.KryoReflectionFactorySupport" not found
warning IKVMC0100: Class "org.apache.commons.lang3.StringUtils" not found
warning IKVMC0100: Class "org.apache.commons.pool2.impl.GenericObjectPool" not found
warning IKVMC0100: Class "org.apache.commons.pool2.impl.GenericObjectPoolConfig" not found
warning IKVMC0100: Class "org.apache.http.client.HttpClient" not found
warning IKVMC0100: Class "org.slf4j.LoggerFactory" not found
warning IKVMC0100: Class "org.apache.commons.lang3.ObjectUtils" not found
warning IKVMC0100: Class "org.slf4j.Logger" not found
warning IKVMC0100: Class "net.sf.json.JSONObject" not found
warning IKVMC0100: Class "org.springframework.util.Assert" not found
warning IKVMC0100: Class "org.apache.http.client.methods.HttpPost" not found
warning IKVMC0100: Class "org.apache.http.entity.ByteArrayEntity" not found
warning IKVMC0100: Class "org.apache.http.entity.ContentType" not found
warning IKVMC0100: Class "org.apache.http.protocol.BasicHttpContext" not found
warning IKVMC0100: Class "org.apache.http.HttpResponse" not found
warning IKVMC0100: Class "org.apache.http.HttpEntity" not found
warning IKVMC0100: Class "org.apache.http.Header" not found
warning IKVMC0100: Class "org.apache.http.client.ClientProtocolException" not found
warning IKVMC0100: Class "org.apache.http.StatusLine" not found
warning IKVMC0100: Class "org.apache.http.params.BasicHttpParams" not found
warning IKVMC0100: Class "org.apache.http.HttpVersion" not found
warning IKVMC0100: Class "org.apache.http.params.HttpProtocolParams" not found
warning IKVMC0100: Class "org.apache.http.params.HttpParams" not found
warning IKVMC0100: Class "org.apache.http.conn.scheme.SchemeRegistry" not found
warning IKVMC0100: Class "org.apache.http.conn.scheme.Scheme" not found
warning IKVMC0100: Class "org.apache.http.conn.scheme.PlainSocketFactory" not found
warning IKVMC0100: Class "org.apache.http.conn.ssl.SSLSocketFactory" not found
warning IKVMC0100: Class "org.apache.http.impl.conn.PoolingClientConnectionManager" not found
warning IKVMC0100: Class "org.apache.http.impl.client.DefaultHttpClient" not found
warning IKVMC0100: Class "com.esotericsoftware.kryo.io.Output" not found
warning IKVMC0100: Class "com.esotericsoftware.kryo.Kryo" not found
warning IKVMC0100: Class "org.apache.commons.lang3.ArrayUtils" not found
warning IKVMC0100: Class "com.esotericsoftware.kryo.io.Input" not found
warning IKVMC0100: Class "org.apache.http.HttpHost" not found
warning IKVMC0100: Class "org.apache.http.params.HttpConnectionParams" not found
warning IKVMC0100: Class "org.apache.http.message.BasicNameValuePair" not found
warning IKVMC0100: Class "org.apache.http.client.entity.UrlEncodedFormEntity" not found
warning IKVMC0100: Class "org.apache.http.entity.InputStreamEntity" not found
warning IKVMC0100: Class "org.apache.http.client.utils.URLEncodedUtils" not found
warning IKVMC0100: Class "org.apache.http.client.methods.HttpGet" not found
warning IKVMC0100: Class "org.apache.http.client.methods.HttpUriRequest" not found
warning IKVMC0100: Class "org.apache.http.ProtocolVersion" not found

我想一个一个的转,不知道行不,我先试试

枯藤月落 | 园豆:202 (菜鸟二级) | 2020-06-11 12:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册