<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2617</id>
	<title>Nabble - IKVM .NET - Dev</title>
	<updated>2009-11-26T11:53:34Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/IKVM-.NET---Dev-f2617.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IKVM-.NET---Dev-f2617.html" />
	<subtitle type="html">IKVM is a Java VM for .NET</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26534236</id>
	<title>Re: setting information into the JVM</title>
	<published>2009-11-26T11:53:34Z</published>
	<updated>2009-11-26T11:53:34Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML xmlns=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot;&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;/HEAD&gt;
&lt;BODY lang=EN-US link=blue vLink=purple&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;What do you want to do? &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Do you want run&amp;nbsp;a Java program that can also access .NET 
libraries? In this case you can set it at compile time. You can look in the wiki 
which currently is down. &lt;A href=&quot;http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=Main_Page&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=Main_Page&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Do you want run a .NET program that can also access Java 
libraries? In this case you can add the references to your build of the .NET 
application. Of corse .NET can also load libraries dynamicly. But this is not 
IKVM specific and not aquestion for this forum.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=703073719-26112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Volker&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Mekmal, Ofer [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534236&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ofer.mekmal@...&lt;/a&gt;] 
  &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Donnerstag, 26. November 2009 09:02&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534236&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; [Ikvm-developers] 
  setting information into the JVM&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=Section1&gt;
  &lt;P class=MsoNormal&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;I&amp;#8217;m using the IKVMC to create a static .net DLL from my jar 
  file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;The process is easy and I get to load the DLL and work with 
  it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;My question: how do I send information to the virtual JVM 
  like classpath?&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;Ofer Mekmal&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 8pt&quot;&gt;19 Shabazi St. POB 
  170&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 8pt&quot;&gt;Yehud 56100, 
  Israel&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 8pt&quot;&gt;voice: +972-3-5399467 fax: 
  +972-3-5331617&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 8pt&quot;&gt;cellular: 
  +972-54-6811182&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534236&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-information-into-the-JVM-tp26525693p26534236.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525693</id>
	<title>setting information into the JVM</title>
	<published>2009-11-26T00:01:41Z</published>
	<updated>2009-11-26T00:01:41Z</updated>
	<author>
		<name>Mekmal, Ofer</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I&amp;#8217;m using the IKVMC to create a static .net DLL from
my jar file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;The process is easy and I get to load the DLL and work with
it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;My question: how do I send information to the virtual JVM
like classpath?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Ofer Mekmal&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;19 Shabazi St. POB 170&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;Yehud 56100, Israel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;voice: +972-3-5399467 fax:
+972-3-5331617&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;cellular: +972-54-6811182&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525693&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-information-into-the-JVM-tp26525693p26525693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482017</id>
	<title>Re: Changing properties of the JVM and other options</title>
	<published>2009-11-23T08:59:17Z</published>
	<updated>2009-11-23T08:59:17Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">﻿&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; CHARSET=UTF-8&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY link=#0000ff&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=109595316-23112009&gt;The AWT and Swing API is already very good in the 
current HEAD version. Only the printing API is under construction. If this is 
finsh then we can support officially AWT and Swing.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=109595316-23112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=109595316-23112009&gt;Volker&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Corneil du Plessis 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;corneil@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Montag, 23. November 2009 
  12:50&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; Mekmal, Ofer; ikvm-developers&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; Re: 
  [Ikvm-developers] Changing properties of the JVM and other 
  options&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;IKVM allows you to execute Java compiled code in the .Net or Mono 
  environment.&lt;BR&gt;You can compile jars to dlls or you can launch an existing jar 
  using the ivkm launcher.&lt;BR&gt;In order to provide the Java code with the methods 
  from the JRE that you rely on OpenJDK 6 has been packaged as dlls&lt;BR&gt;&lt;BR&gt;If 
  you don't use AWT or Swing you can expect you application to work unless you 
  do very strange things with the class loader.&lt;BR&gt;Even Spring Framework 
  generating dynamic proxies and Drools generating java code works 
  fine.&lt;BR&gt;&lt;BR&gt;On Sun, 2009-11-22 at 23:09 +0000, Mekmal, Ofer wrote: 
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;Hi Volker and thank you for the prompt 
    answer.&lt;BR&gt;&lt;BR&gt;According to the web site, the 1.6 version is not completed 
    yet, which is in oppose to what you, unless I misunderstood. Is the version 
    compliant with Sun’s JVM 1.6 available already?&lt;BR&gt;&lt;BR&gt;As for replacing the 
    JVM, we are aware that IKVM is an open source, however some of customers 
    insist on using a specific JVM (like IBM’s) and we need to support 
    that&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Again, thanks a 
    lot,&lt;BR&gt;&lt;BR&gt;Ofer&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;&lt;B&gt;From:&lt;/B&gt; Volker Berlin 
    [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;volker.berlin@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Sunday, November 22, 
    2009 7:53 PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 
    &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: 
    [Ikvm-developers] Changing properties of the JVM and other 
    options&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;&lt;BR&gt;&lt;BR&gt;Hi,&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
    What is the Sun’s JVM version compliance? Is it 1.4 or higher? This is our 
    top priority issue&lt;BR&gt;&lt;BR&gt;The current version of IKVM based on OpenJDK 6 
    that it is compilance to version 
    1.6.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We need to 
    define the heap size (-Xmx) and debugging (-Xdebug) – is it 
    possible?&lt;BR&gt;&lt;BR&gt;The .Net heap will grow, as needed, to consume all 
    available memory. There's no need to manually adjust it.&lt;BR&gt;&lt;BR&gt;A Java debug 
    interface was started but not finish yet. It can be in 1-2 years possible if 
    never work on it before. Currently you can only debug with a .NET debugger 
    like Visual 
    Studio.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it 
    possible to change the JVM? Is there an API for that?&lt;BR&gt;&lt;BR&gt;What do you 
    means? I am not understand you. You can modfiy IKVM. It is open 
    source.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Volker&lt;BR&gt;&lt;BR&gt;
    &lt;BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;
    &lt;BLOCKQUOTE&gt;
      &lt;DIV align=center&gt;
      &lt;HR&gt;
      &lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;
    &lt;BLOCKQUOTE&gt;&lt;B&gt;Von:&lt;/B&gt; Mekmal, Ofer [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ofer.mekmal@...&lt;/a&gt;] 
      &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Sonntag, 22. November 2009 17:58&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; 
      &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; [Ikvm-developers] 
      Changing properties of the JVM and other options&lt;BR&gt;&lt;BR&gt;Hi All,&lt;BR&gt;&lt;BR&gt;We 
      (HP Software, SOA Quality group) examined the capability of converting the 
      java jars to .net dlls and the functionality suits us well and we would 
      like to use it.&lt;BR&gt;&lt;BR&gt;However, we have some 
      requirements/questions:&lt;BR&gt;&lt;BR&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;What 
      is the Sun’s JVM version compliance? Is it 1.4 or higher? This is our top 
      priority issue&lt;BR&gt;&lt;BR&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;We need to 
      define the heap size (-Xmx) and debugging (-Xdebug) – is it 
      possible?&lt;BR&gt;&lt;BR&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Is it possible to 
      change the JVM? Is there an API for 
      that?&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;&lt;BR&gt;Ofer 
      Mekmal&lt;BR&gt;&lt;BR&gt;R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;BR&gt;&lt;BR&gt;19 
      Shabazi St. POB 170&lt;BR&gt;&lt;BR&gt;Yehud 56100, Israel&lt;BR&gt;&lt;BR&gt;voice: 
      +972-3-5399467 fax: +972-3-5331617&lt;BR&gt;&lt;BR&gt;cellular: 
      +972-54-6811182&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;
  &lt;BLOCKQUOTE TYPE=&quot;CITE&quot;&gt;&lt;PRE&gt;------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  &lt;A href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;
_______________________________________________ Ikvm-developers mailing list &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt; &lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/A&gt;
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482017&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-properties-of-the-JVM-and-other-options-tp26467074p26482017.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476971</id>
	<title>Re: Changing properties of the JVM and other options</title>
	<published>2009-11-23T03:50:17Z</published>
	<updated>2009-11-23T03:50:17Z</updated>
	<author>
		<name>Corneil du Plessis</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=UTF-8&quot;&gt;
  &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;GtkHTML/3.24.1.1&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY LINK=&quot;#0000ff&quot;&gt;
IKVM allows you to execute Java compiled code in the .Net or Mono environment.&lt;BR&gt;
You can compile jars to dlls or you can launch an existing jar using the ivkm launcher.&lt;BR&gt;
In order to provide the Java code with the methods from the JRE that you rely on OpenJDK 6 has been packaged as dlls&lt;BR&gt;
&lt;BR&gt;
If you don't use AWT or Swing you can expect you application to work unless you do very strange things with the class loader.&lt;BR&gt;
Even Spring Framework generating dynamic proxies and Drools generating java code works fine.&lt;BR&gt;
&lt;BR&gt;
On Sun, 2009-11-22 at 23:09 +0000, Mekmal, Ofer wrote:
&lt;BLOCKQUOTE TYPE=CITE&gt;
    Hi Volker and thank you for the prompt answer.&lt;BR&gt;
    &lt;BR&gt;
    According to the web site, the 1.6 version is not completed yet, which is in oppose to what you, unless I misunderstood. Is the version compliant with Sun&amp;#8217;s JVM 1.6 available already?&lt;BR&gt;
    &lt;BR&gt;
    As for replacing the JVM, we are aware that IKVM is an open source, however some of customers insist on using a specific JVM (like IBM&amp;#8217;s) and we need to support that&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    Again, thanks a lot,&lt;BR&gt;
    &lt;BR&gt;
    Ofer&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE TYPE=CITE&gt;
    &lt;B&gt;From:&lt;/B&gt; Volker Berlin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;volker.berlin@...&lt;/a&gt;] &lt;BR&gt;
    &lt;B&gt;Sent:&lt;/B&gt; Sunday, November 22, 2009 7:53 PM&lt;BR&gt;
    &lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;
    &lt;B&gt;Subject:&lt;/B&gt; Re: [Ikvm-developers] Changing properties of the JVM and other options&lt;BR&gt;
    &lt;BR&gt;
    &lt;BR&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE TYPE=CITE&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    Hi,&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the Sun&amp;#8217;s JVM version compliance? Is it 1.4 or higher? This is our top priority issue&lt;BR&gt;
    &lt;BR&gt;
    The current version of IKVM based on OpenJDK 6 that it is compilance to version 1.6.&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We need to define the heap size (-Xmx) and debugging (-Xdebug) &amp;#8211; is it possible?&lt;BR&gt;
    &lt;BR&gt;
    The .Net heap will grow, as needed, to consume all available memory. There's no need to manually adjust it.&lt;BR&gt;
    &lt;BR&gt;
    A Java debug interface was started but not finish yet. It can be in 1-2 years possible if never work on it before. Currently you can only debug with a .NET debugger like Visual Studio.&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is it possible to change the JVM? Is there an API for that?&lt;BR&gt;
    &lt;BR&gt;
    What do you means? I am not understand you. You can modfiy IKVM. It is open source.&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    &amp;nbsp;&lt;BR&gt;
    &lt;BR&gt;
    Volker&lt;BR&gt;
    &lt;BR&gt;
    &lt;BLOCKQUOTE&gt;
        &amp;nbsp;&lt;BR&gt;
        &lt;BR&gt;
    &lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE TYPE=CITE&gt;
    &lt;BLOCKQUOTE&gt;
        &lt;DIV ALIGN=center&gt;
&lt;HR&gt;
&lt;/DIV&gt;
    &lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE TYPE=CITE&gt;
    &lt;BLOCKQUOTE&gt;
        &lt;B&gt;Von:&lt;/B&gt; Mekmal, Ofer [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ofer.mekmal@...&lt;/a&gt;] &lt;BR&gt;
        &lt;B&gt;Gesendet:&lt;/B&gt; Sonntag, 22. November 2009 17:58&lt;BR&gt;
        &lt;B&gt;An:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;
        &lt;B&gt;Betreff:&lt;/B&gt; [Ikvm-developers] Changing properties of the JVM and other options&lt;BR&gt;
        &lt;BR&gt;
        Hi All,&lt;BR&gt;
        &lt;BR&gt;
        We (HP Software, SOA Quality group) examined the capability of converting the java jars to .net dlls and the functionality suits us well and we would like to use it.&lt;BR&gt;
        &lt;BR&gt;
        However, we have some requirements/questions:&lt;BR&gt;
        &lt;BR&gt;
        1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;What is the Sun&amp;#8217;s JVM version compliance? Is it 1.4 or higher? This is our top priority issue&lt;BR&gt;
        &lt;BR&gt;
        2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;We need to define the heap size (-Xmx) and debugging (-Xdebug) &amp;#8211; is it possible?&lt;BR&gt;
        &lt;BR&gt;
        3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Is it possible to change the JVM? Is there an API for that?&lt;BR&gt;
        &lt;BR&gt;
        &amp;nbsp;&lt;BR&gt;
        &lt;BR&gt;
        &amp;nbsp;&lt;BR&gt;
        &lt;BR&gt;
        Thanks,&lt;BR&gt;
        &lt;BR&gt;
        Ofer Mekmal&lt;BR&gt;
        &lt;BR&gt;
        R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;BR&gt;
        &lt;BR&gt;
        19 Shabazi St. POB 170&lt;BR&gt;
        &lt;BR&gt;
        Yehud 56100, Israel&lt;BR&gt;
        &lt;BR&gt;
        voice: +972-3-5399467 fax: +972-3-5331617&lt;BR&gt;
        &lt;BR&gt;
        cellular: +972-54-6811182&lt;BR&gt;
        &lt;BR&gt;
        &amp;nbsp;&lt;BR&gt;
        &lt;BR&gt;
    &lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE TYPE=CITE&gt;
&lt;PRE&gt;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  &lt;A HREF=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;
_______________________________________________ Ikvm-developers mailing list &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt; &lt;A HREF=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/A&gt;
&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476971&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-properties-of-the-JVM-and-other-options-tp26467074p26476971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26470635</id>
	<title>Re: Changing properties of the JVM and other	options</title>
	<published>2009-11-22T15:09:08Z</published>
	<updated>2009-11-22T15:09:08Z</updated>
	<author>
		<name>Mekmal, Ofer</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;Hi Volker and thank you for the
prompt answer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;According to the web site, the
1.6 version is not completed yet, which is in oppose to what you, unless I misunderstood.
Is the version compliant with Sun&amp;#8217;s JVM 1.6 available already?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;As for replacing the JVM, we are
aware that IKVM is an open source, however some of customers insist on using a
specific JVM (like IBM&amp;#8217;s) and we need to support that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;Again, thanks a lot,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;Ofer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Volker Berlin
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470635&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;volker.berlin@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Sunday, November 22, 2009 7:53 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470635&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: [Ikvm-developers] Changing properties of the JVM and other
options&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;Hi,&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;1.&lt;/span&gt;&lt;span style='font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
color:blue'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:blue'&gt;What is the Sun&amp;#8217;s JVM
version compliance? Is it 1.4 or higher? This is our top priority issue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;The current version of IKVM based on OpenJDK 6 that it is
compilance to version 1.6.&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;2.&lt;/span&gt;&lt;span style='font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
color:blue'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:blue'&gt;We need to define the heap
size (-Xmx) and debugging (-Xdebug) &amp;#8211; is it possible?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;The .Net heap will grow, as needed, to consume all available
memory. There's no need to manually adjust it.&lt;/span&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;A Java debug interface was started but not finish yet. It can be in
1-2 years possible if never work on it before. Currently you can only debug
with a .NET debugger like Visual Studio.&lt;/span&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;3.&lt;/span&gt;&lt;span style='font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
color:blue'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:blue'&gt;Is it possible to change
the JVM? Is there an API for that?&lt;/span&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;What do you means? I am not understand you. You can modfiy IKVM. It
is open source.&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;Volker&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;blockquote style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;span lang=DE style='font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center&gt;

&lt;/span&gt;&lt;/div&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;b&gt;&lt;span lang=DE style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;Von:&lt;/span&gt;&lt;/b&gt;&lt;span lang=DE style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Mekmal,
Ofer [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470635&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ofer.mekmal@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Gesendet:&lt;/b&gt; Sonntag, 22. November 2009 17:58&lt;br&gt;
&lt;b&gt;An:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470635&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Betreff:&lt;/b&gt; [Ikvm-developers] Changing properties of the JVM and other
options&lt;/span&gt;&lt;span lang=DE style='font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Hi All,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;We (HP Software, SOA Quality group) examined the capability
of converting the java jars to .net dlls and the functionality suits us well
and we would like to use it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;However, we have some requirements/questions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in'&gt;1.&lt;span style='font-size:
7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;What is the Sun&amp;#8217;s JVM version compliance? Is it 1.4 or higher?
This is our top priority issue&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in'&gt;2.&lt;span style='font-size:
7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;We need to define the heap size (-Xmx) and debugging (-Xdebug) &amp;#8211;
is it possible?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in'&gt;3.&lt;span style='font-size:
7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Is it possible to change the JVM? Is there an API for that?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Ofer Mekmal&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;19 Shabazi St. POB 170&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;Yehud 56100, Israel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;voice: +972-3-5399467 fax:
+972-3-5331617&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;cellular: +972-54-6811182&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/blockquote&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470635&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-properties-of-the-JVM-and-other-options-tp26467074p26470635.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467074</id>
	<title>Changing properties of the JVM and other options</title>
	<published>2009-11-22T08:57:55Z</published>
	<updated>2009-11-22T08:57:55Z</updated>
	<author>
		<name>Mekmal, Ofer</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hi All,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;We (HP Software, SOA Quality group) examined the capability
of converting the java jars to .net dlls and the functionality suits us well
and we would like to use it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;However, we have some requirements/questions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;1.&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;span dir=LTR&gt;&lt;/span&gt;What is the Sun&amp;#8217;s JVM
version compliance? Is it 1.4 or higher? This is our top priority issue&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;2.&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;span dir=LTR&gt;&lt;/span&gt;We need to define the heap size
(-Xmx) and debugging (-Xdebug) &amp;#8211; is it possible?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;3.&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;span dir=LTR&gt;&lt;/span&gt;Is it possible to change the JVM?
Is there an API for that?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Ofer Mekmal&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;R&amp;amp;D Team Lead, SOA Quality, HP Software&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;19 Shabazi St. POB 170&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;Yehud 56100, Israel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;voice: +972-3-5399467 fax:
+972-3-5331617&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:8.0pt'&gt;cellular: +972-54-6811182&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467074&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-properties-of-the-JVM-and-other-options-tp26467074p26467074.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462974</id>
	<title>Re: NoClassDefFoundError forcli.System.Objectwhenrunninng Java code that refers .Net dll</title>
	<published>2009-11-21T20:36:44Z</published>
	<updated>2009-11-21T20:36:44Z</updated>
	<author>
		<name>suralk</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;Hi Volker,&lt;br&gt;Thanks, you solved the issue!! My other .Net project also has&amp;nbsp; ICSharpCode.SharpZipLib.dll and I have accidentally copied the ICSharpCode.SharpZipLib.dll to the ikvmc folder.&lt;br&gt;Thanks for helping me to figure it out, and sorry for the trouble caused.&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;


      Email slow, clunky, unreliable? &lt;a href=http://au.rd.yahoo.com/nz/mail/tagline/2009/mailsignup/*http://yahoo.co.nz/mail target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Switch to Yahoo!Xtra Mail&lt;/a&gt;, New Zealand&amp;#39;s new email address.&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462974&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26462974.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26443720</id>
	<title>Re: NoClassDefFoundError forcli.System.Objectwhenrunninng Java code that refers .Net dll</title>
	<published>2009-11-20T05:56:46Z</published>
	<updated>2009-11-20T05:56:46Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">﻿&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=utf-8&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=859165213-20112009&gt;I have no idea. Can it be that your dll's in reference 
also the &lt;FONT color=#000000 size=3 face=&quot;Times New Roman&quot;&gt;ICSharpCode.SharpZipLib.dll&lt;/FONT&gt;&amp;nbsp;library? Can it 
be that you have another version of the dll in temp directory. I think first you 
should bild a hello world sample and make it complexer to see where the problem 
is.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=859165213-20112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=859165213-20112009&gt;Volker&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; surangika ranathunga 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lady_radsu@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Freitag, 20. November 2009 
  02:48&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443720&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; 
  Re: [Ikvm-developers] NoClassDefFoundError forcli.System.Objectwhenrunninng 
  Java code that refers .Net dll&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;TABLE border=0 cellSpacing=0 cellPadding=0&gt;
    &lt;TBODY&gt;
    &lt;TR&gt;
      &lt;TD vAlign=top&gt;Hi Volker,&lt;BR&gt;yes, ICSharpCode.SharpZipLib.dll is in the 
        directory D:\PhD 
        Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin.&lt;BR&gt;&lt;BR&gt;Surangika&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;Need 
  mail bonding? Bring all your contacts to Yahoo!Xtra with &lt;A href=&quot;http://au.rd.yahoo.com/nz/mail/tagline/2009/trueswitch/*http://help.yahoo.com/l/nz/yahooxtra/mail/yahoomail/manage/manage-66.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TrueSwitch&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443720&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26443720.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437296</id>
	<title>Re: NoClassDefFoundError for cli.System.Objectwhenrunninng Java code that refers .Net dll</title>
	<published>2009-11-19T17:47:32Z</published>
	<updated>2009-11-19T17:47:32Z</updated>
	<author>
		<name>suralk</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;Hi Volker,&lt;br&gt;yes, ICSharpCode.SharpZipLib.dll is in the directory D:\PhD
Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin.&lt;br&gt;&lt;br&gt;Surangika&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;


      Need mail bonding? Bring all your contacts to Yahoo!Xtra with &lt;a href=http://au.rd.yahoo.com/nz/mail/tagline/2009/trueswitch/*http://help.yahoo.com/l/nz/yahooxtra/mail/yahoomail/manage/manage-66.html target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TrueSwitch&lt;/a&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437296&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26437296.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423534</id>
	<title>Re: NoClassDefFoundError for cli.System.Objectwhenrunninng Java code that refers .Net dll</title>
	<published>2009-11-19T01:54:35Z</published>
	<updated>2009-11-19T01:54:35Z</updated>
	<author>
		<name>Volker Berlin (i-net software)</name>
	</author>
	<content type="html">&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=utf-8&quot;&gt;
&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;

&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=DE link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Do you have also the file ICSharpCode.SharpZipLib.dll in your
directory &lt;/span&gt;D:\PhD Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin.&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Volker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;Von:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; surangika
ranathunga [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423534&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lady_radsu@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Gesendet:&lt;/b&gt; Donnerstag, 19. November 2009 04:22&lt;br&gt;
&lt;b&gt;An:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423534&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Betreff:&lt;/b&gt; Re: [Ikvm-developers] NoClassDefFoundError for
cli.System.Objectwhenrunninng Java code that refers .Net dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0&gt;
 &lt;tr&gt;
  &lt;td valign=top style='padding:0cm 0cm 0cm 0cm'&gt;
  &lt;p class=MsoNormal&gt;Hi Volker,&lt;br&gt;
  Thanks for your explanation. Now I'm trying to compile my code using ikvmc,
  but still I am getting errors.&lt;br&gt;
  This is the command I typed:&lt;br&gt;
  D:\PhD Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin&amp;gt;ikvmc
  -r:C:\Tmp\*.dll Bot.class&lt;br&gt;
  &lt;br&gt;
  'D:\PhD Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin' is where my
  ikvmc.exe is. The class files that I want to get compiled are also inside
  this folder. Generated jar files are not inside this folder.&lt;br&gt;
  &lt;br&gt;
  ' -r:C:\Tmp\*.dll' refers to the .Net libraries that I used in my Java code.&lt;br&gt;
  Bot.class is the class that I am trying to compile.&lt;br&gt;
  &lt;br&gt;
  But now I am getting the following error:&lt;br&gt;
  Unhandled Exception: System.IO.FileLoadException: Could not load file or
  assembl&lt;br&gt;
  y 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral,
  PublicKeyToken=1b&lt;br&gt;
  03e6acf1164f73' or one of its dependencies. The located assembly's manifest
  defi&lt;br&gt;
  nition does not match the assembly reference. (Exception from HRESULT:
  0x8013104&lt;br&gt;
  0)&lt;br&gt;
  File name: 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral,
  PublicKe&lt;br&gt;
  yToken=1b03e6acf1164f73'&lt;br&gt;
  &amp;nbsp;&amp;nbsp; at IkvmcCompiler.ProcessFile(DirectoryInfo baseDir, String file)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; at IkvmcCompiler.ContinueParseCommandLine(IEnumerator`1 arglist,
  List`1 targe&lt;br&gt;
  ts, CompilerOptions options)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; at IkvmcCompiler.ParseCommandLine(IEnumerator`1 arglist, List`1
  targets)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; at IkvmcCompiler.Main(String[] args)&lt;br&gt;
  &lt;br&gt;
  Please let me know whether this is due to something I did.&lt;br&gt;
  Thanks in advance.&lt;br&gt;
  Surangika&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;&lt;br&gt;
Need mail bonding? Bring all your contacts to Yahoo!Xtra with &lt;a href=&quot;http://au.rd.yahoo.com/nz/mail/tagline/2009/trueswitch/*http:/help.yahoo.com/l/nz/yahooxtra/mail/yahoomail/manage/manage-66.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TrueSwitch&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423534&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26423534.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419811</id>
	<title>Re: NoClassDefFoundError for cli.System.Object whenrunninng Java code that refers .Net dll</title>
	<published>2009-11-18T19:22:29Z</published>
	<updated>2009-11-18T19:22:29Z</updated>
	<author>
		<name>suralk</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;Hi Volker,&lt;br&gt;Thanks for your explanation. Now I'm trying to compile my code using ikvmc, but still I am getting errors.&lt;br&gt;This is the command I typed:&lt;br&gt;D:\PhD Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin&amp;gt;ikvmc -r:C:\Tmp\*.dll Bot.class&lt;br&gt;&lt;br&gt;'D:\PhD Work\Research\ikvm\ikvmbin-0.40.0.1\ikvm-0.40.0.1\bin' is where my ikvmc.exe is. The class files that I want to get compiled are also inside this folder. Generated jar files are not inside this folder.&lt;br&gt;&lt;br&gt;' -r:C:\Tmp\*.dll' refers to the .Net libraries that I used in my Java code.&lt;br&gt;Bot.class is the class that I am trying to compile.&lt;br&gt;&lt;br&gt;But now I am getting the following error:&lt;br&gt;Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl&lt;br&gt;y 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b&lt;br&gt;03e6acf1164f73' or one of its dependencies.
 The located assembly's manifest defi&lt;br&gt;nition does not match the assembly reference. (Exception from HRESULT: 0x8013104&lt;br&gt;0)&lt;br&gt;File name: 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKe&lt;br&gt;yToken=1b03e6acf1164f73'&lt;br&gt;&amp;nbsp;&amp;nbsp; at IkvmcCompiler.ProcessFile(DirectoryInfo baseDir, String file)&lt;br&gt;&amp;nbsp;&amp;nbsp; at IkvmcCompiler.ContinueParseCommandLine(IEnumerator`1 arglist, List`1 targe&lt;br&gt;ts, CompilerOptions options)&lt;br&gt;&amp;nbsp;&amp;nbsp; at IkvmcCompiler.ParseCommandLine(IEnumerator`1 arglist, List`1 targets)&lt;br&gt;&amp;nbsp;&amp;nbsp; at IkvmcCompiler.Main(String[] args)&lt;br&gt;&lt;br&gt;Please let me know whether this is due to something I did.&lt;br&gt;Thanks in advance.&lt;br&gt;Surangika&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;


      Need mail bonding? Bring all your contacts to Yahoo!Xtra with &lt;a href=http://au.rd.yahoo.com/nz/mail/tagline/2009/trueswitch/*http://help.yahoo.com/l/nz/yahooxtra/mail/yahoomail/manage/manage-66.html target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;TrueSwitch&lt;/a&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419811&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26419811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404902</id>
	<title>Re: NoClassDefFoundError for cli.System.Object whenrunninng Java code that refers .Net dll</title>
	<published>2009-11-18T01:37:26Z</published>
	<updated>2009-11-18T01:37:26Z</updated>
	<author>
		<name>Volker Berlin (i-net software)</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=utf-8&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=DE link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;IKVM make it possible to run Java code inside from .NET. You can't
use .NET libraries inside from Java.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;You can develop a Java application in Eclipse which use .NET
libraries. But you need to run it with IKVM or convert your project with IKVMC
to a exe file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;IKVM is a Java VM for .NET and not a .NET runtime for Java.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Volker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;Von:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; surangika
ranathunga [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404902&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lady_radsu@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Gesendet:&lt;/b&gt; Mittwoch, 18. November 2009 02:57&lt;br&gt;
&lt;b&gt;An:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404902&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Betreff:&lt;/b&gt; [Ikvm-developers] NoClassDefFoundError for cli.System.Object
whenrunninng Java code that refers .Net dll&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0&gt;
 &lt;tr&gt;
  &lt;td valign=top style='padding:0cm 0cm 0cm 0cm'&gt;
  &lt;p class=MsoNormal&gt;started using ikvm very recently. I am using the latest
  binary distribution. I am trying to use a set of C# .Net libraries in my java
  code (using java code in .Net is not possible due to some restrictions). this
  C# library is an open-source one and is not developed by me.&lt;br&gt;
  In order to get the .Net library functionality into Java, this is what I did,
  following the given guidelines.&lt;br&gt;
  &lt;br&gt;
  1) Added the ikvmc/bin path to the class path&lt;br&gt;
  2) Copied the .Net dll's to the folder where ikvmstub.exe was and generated
  the jar files&lt;br&gt;
  3) Added these jars to my eclipse java project and was able to reference the
  .Net classes from the Java code&lt;br&gt;
  4) java compilation was also successful&lt;br&gt;
  &lt;br&gt;
  But when I try to run this project in java, I get the following exception:&lt;br&gt;
  &lt;br&gt;
  Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError:
  cli/System/Object&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClass1(Native Method)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.SecureClassLoader.defineClass(Unknown
  Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.defineClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.access$000(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native
  Method)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
  Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at FirstBot.Bot.&amp;lt;init&amp;gt;(Bot.java:18)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at FirstBot.TestBot.main(TestBot.java:10)&lt;br&gt;
  Caused by: java.lang.ClassNotFoundException: cli.System.Object&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native
  Method)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
  Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(Unknown Source)&lt;br&gt;
  &lt;br&gt;
  Seems like it cannot find cli.System.object class. Please try to see what I
  might have done wrong.I assume that this is a very generic error?&lt;br&gt;
  &lt;br&gt;
  On the other hand, the tutorial does not contain anything about running the
  project in Java, so I am wondering whether what I am trying to is not
  something that is possible at all, or whether I have taken a wrong approach??&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;&lt;br&gt;
Email slow, clunky, unreliable? &lt;a href=&quot;http://au.rd.yahoo.com/nz/mail/tagline/2009/mailsignup/*http:/yahoo.co.nz/mail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Switch
to Yahoo!Xtra Mail&lt;/a&gt;, New Zealand's new email address.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404902&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26404902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26401214</id>
	<title>NoClassDefFoundError for cli.System.Object when runninng Java code that refers .Net dll</title>
	<published>2009-11-17T17:56:44Z</published>
	<updated>2009-11-17T17:56:44Z</updated>
	<author>
		<name>suralk</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;started using ikvm very recently. I am using the latest binary
distribution. I am trying to use a set of C# .Net libraries in my java
code (using java code in .Net is not possible due to some
restrictions). this C# library is an open-source one and is not
developed by me.&lt;br&gt;In order to get the .Net library functionality into Java, this is what I did, following the given guidelines.&lt;br&gt;&lt;br&gt;1) Added the ikvmc/bin path to the class path&lt;br&gt;2) Copied the .Net dll's to the folder where ikvmstub.exe was and generated the jar files&lt;br&gt;3) Added these jars to my eclipse java project and was able to reference the .Net classes from the Java code&lt;br&gt;4) java compilation was also successful&lt;br&gt;&lt;br&gt;But when I try to run this project in java, I get the following exception:&lt;br&gt;&lt;br&gt;Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: cli/System/Object&lt;br&gt;&amp;nbsp;&amp;nbsp;
 &amp;nbsp;at java.lang.ClassLoader.defineClass1(Native Method)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.defineClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.SecureClassLoader.defineClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.defineClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.access$000(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at
 FirstBot.Bot.&amp;lt;init&amp;gt;(Bot.java:18)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at FirstBot.TestBot.main(TestBot.java:10)&lt;br&gt;Caused by: java.lang.ClassNotFoundException: cli.System.Object&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(Unknown Source)&lt;br&gt;&lt;br&gt;Seems
like it cannot find cli.System.object class. Please try to see what I
might have done wrong.I assume that this is a very generic error?&lt;br&gt;&lt;br&gt;On the other hand, the tutorial does not contain anything about running the project in Java, so I am
 wondering whether what I am trying to is not something that is possible at all, or whether I have taken a wrong approach??&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;


      Email slow, clunky, unreliable? &lt;a href=http://au.rd.yahoo.com/nz/mail/tagline/2009/mailsignup/*http://yahoo.co.nz/mail target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Switch to Yahoo!Xtra Mail&lt;/a&gt;, New Zealand&amp;#39;s new email address.&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26401214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundError-for-cli.System.Object-when-runninng-Java-code-that-refers-.Net-dll-tp26401214p26401214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344103</id>
	<title>Re: Stream of a process does not seam to be correctlyredirected</title>
	<published>2009-11-13T13:50:38Z</published>
	<updated>2009-11-13T13:50:38Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;Hi Markus,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;After looking deeper in the problem I have some results 
but not a solution. I hope this help you to find a solution. The command line 
from Java VM and from IKVM are different. The Java VM use shared memory and IKVM 
used a socket listener. The command lines look like:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;C:/Programme/Java/jre6\bin\java -Xdebug 
-Xrunjdwp:transport=dt_shmem,address=javadebug59541,suspend=y 
main.Test&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;C:/Programme/Java/jre6\bin\java -Xdebug 
-Xrunjdwp:transport=dt_socket,address=myComputer:2330,suspend=y 
main.Test&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;You can test the socket listener with Java if you 
remove the class &lt;FONT color=#2a00ff size=2&gt;&lt;FONT color=#2a00ff size=2&gt;com.sun.tools.jdi.SharedMemoryTransportService&lt;/FONT&gt;&lt;/FONT&gt;. After I 
have adding some debug code I have in Eclipse the same problem with Java. That I 
think&amp;nbsp;there is also a timimg problem. If you call read() instead of 
available() then you receive the output from the process also in 
IKVM.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;In the .NET documenation &lt;A href=&quot;http://msdn.microsoft.com/en-us/library/system.io.filestream.canseek%28VS.80%29.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://msdn.microsoft.com/en-us/library/system.io.filestream.canseek%28VS.80%29.aspx&lt;/A&gt;&amp;nbsp;you 
can read that a FileStream from a Console does not support CanSeek. That it is 
not possible to calc an available. Are you sure that this has work with 
Runtime.exec? This API use also Runtime.exec which you see on the stacktrace if 
you use an invalid path. I have not test it self.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;Volker&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=593215120-13112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Markus Bischof 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344103&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markusbischof82@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Dienstag, 10. 
  November 2009 21:23&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; Volker Berlin&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; Re: 
  [Ikvm-developers] Stream of a process does not seam to be 
  correctlyredirected&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Hi Volker,&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I've added my output from the conversion. You see that I'm 
  calling&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;ikvmc -target:library DebuggingInterface.jar tools.jar&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;and that I first get some &quot;missing class&quot; warnings. At the end I get many 
  warnings that classes are skipped.&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I don't know it these warnings are related to my problem that I cannot 
  read the inputstream of the process.&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Please notice that I've implemented a small java program which starts a 
  process (e.g. Runtime.getRuntime.exec(...java.exe)) and reads out the 
  inputstream of this process (printing out the usage of java...). This small 
  program converted to .NET works fine...looking at the code which reads out the 
  stream, it looks exactly like the code which tries to read out the inputstream 
  in my sample program. The only difference is that I do not start the process 
  by myself. I'm really very confused how to investigate this problem by 
  myself...&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Is there any information I can provide you to get a better understanding 
  of my problem? If you have the time, maybe you can try to run my sample 
  program in eclipse as well as use ikvm to convert the file and run it with 
  .NET to reconstruct the problem...&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Your help is much appreciated!&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Regards,&lt;/DIV&gt;
  &lt;DIV&gt;Markus&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344103&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stream-of-a-process-does-not-seam-to-be-correctly-redirected-tp26271438p26344103.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339416</id>
	<title>Re: Bridging from java Class objects to .NET Type	objects</title>
	<published>2009-11-13T08:33:02Z</published>
	<updated>2009-11-13T08:33:02Z</updated>
	<author>
		<name>Jeroen Frijters</name>
	</author>
	<content type="html">Hi Antoine,
&lt;br&gt;&lt;br&gt;Do you mean from C# or VB? In that case you can simply call GetType() on it (even though Intellisense won't show it, it is there).
&lt;br&gt;&lt;br&gt;If you want to do it in Java, you can use:
&lt;br&gt;&lt;br&gt;ikvm.runtime.Util.getInstanceTypeFromClass(obj.getClass())
&lt;br&gt;&lt;br&gt;(to get access to ikvm.runtime.Util you need to run &amp;quot;ikvmstub -shared ikvm.openjdk.core&amp;quot; and add the resulting jar to your classpath)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Antoine Malliarakis [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;antoine.malliarakis@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 13, 2009 5:10 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339416&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Ikvm-developers] Bridging from java Class objects to .NET
&lt;br&gt;&amp;gt; Type objects
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello all
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry to bother you again, I was just trying to see if there was a way
&lt;br&gt;&amp;gt; to access the .NET Type associated to a Class object.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is my example: I have an object which is of a java type (namely
&lt;br&gt;&amp;gt; com.ullink.bm.model.RowEvent) in my .NET application and I would like
&lt;br&gt;&amp;gt; to access its .NET Type e.g. I would like to fetch the .NET Type object
&lt;br&gt;&amp;gt; which defines all the .NET informations of the associated type.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't know if this is clear but do you have any idea of how I could
&lt;br&gt;&amp;gt; get to this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry again for bothering you and thanks a lot for your patience and
&lt;br&gt;&amp;gt; help!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Antoine Malliarakis
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339416&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bridging-from-java-Class-objects-to-.NET-Type-objects-tp26339056p26339416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339056</id>
	<title>Bridging from java Class objects to .NET Type objects</title>
	<published>2009-11-13T08:10:04Z</published>
	<updated>2009-11-13T08:10:04Z</updated>
	<author>
		<name>Antoine Malliarakis</name>
	</author>
	<content type="html">Hello all&lt;br&gt;&lt;br&gt;Sorry to bother you again, I was just trying to see if there was a way to access the .NET Type associated to a Class object.&lt;br&gt;&lt;br&gt;Here is my example: I have an object which is of a java type (namely com.ullink.bm.model.RowEvent) in my .NET application and I would like to access its .NET Type e.g. I would like to fetch the .NET Type object which defines all the .NET informations of the associated type.&lt;br&gt;
&lt;br&gt;I don&amp;#39;t know if this is clear but do you have any idea of how I could get to this?&lt;br&gt;&lt;br&gt;Sorry again for bothering you and thanks a lot for your patience and help!&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;&lt;br&gt;Antoine Malliarakis&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bridging-from-java-Class-objects-to-.NET-Type-objects-tp26339056p26339056.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26289808</id>
	<title>Re: Stream of a process does not seam to be correctlyredirected</title>
	<published>2009-11-10T11:26:46Z</published>
	<updated>2009-11-10T11:26:46Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;Hi Markus,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;I think there can be 2 causes for the 
problem:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;1.) You write that not all was compiled without 
problems. Which problems occur?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;2.) You use a part from the Sun JDK (tools.jar). This 
must not be compatible with the OpenJDK. There are some changes in some internal 
packages..&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;We can add the some of the needed sources to the IKVM 
and add a IKVM.OpenJDK.tools.dll.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=187571619-10112009&gt;Volker&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Markus Bischof 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289808&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markusbischof82@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Montag, 9. 
  November 2009 20:46&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; Volker Berlin&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; Re: AW: 
  [Ikvm-developers] Stream of a process does not seam to be 
  correctlyredirected&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Hi Volker,
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;thanks for your quick reply.&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Well, my intention is to be able to debug an arbitrary java application 
  within a .NET control, for example, a specialized TextBox. For that purpose, I 
  need to access the java application using the Java Debug Interface.&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;My actual implementation in Java uses the Java Debug Interface and 
  implements a facade around it. Clients (in my case the TextBox) only need to 
  provide a very simple interface to debug a java application (at least some 
  parts of it).&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I added the following lines to my sample program:&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;
  &lt;DIV&gt;File f = new File(&quot;JavaWasHere&quot;);&lt;/DIV&gt;
  &lt;DIV&gt;f.createNewFile();&lt;/DIV&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;After compiling the sample program (using the standard java compiler), 
  copying the class-file into the correct directory and running the exe-file, I 
  really see the file being created. So the process was started and did succeed. 
  Only the code which reads out the output stream of the process does not seem 
  to get the &quot;Hello world&quot; output.&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;--&amp;gt; Running the java implementation, the file gets created, too, and 
  the &quot;Hello world&quot; from the sample program is received.&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I really think there is a problem in the conversion process from java to 
  .NET...&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;Markus&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;
  &lt;DIV&gt;
  &lt;DIV&gt;Am 09.11.2009 um 20:19 schrieb Volker Berlin:&lt;/DIV&gt;&lt;BR class=Apple-interchange-newline&gt;
  &lt;BLOCKQUOTE type=&quot;cite&quot;&gt;
    &lt;DIV style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Hi Markus,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;What do you want do with the Java Debug Interface? If you 
    want start an external process then it is simpler to use 
    java.lang.Process.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Because IKVM does not implement the Java Debug Intererface 
    that you can't debug a IKVM process currently with a Java IDE. It can be 
    possible that if you use tools.jar that you can debug an real Java process 
    with a IKVM application. This part of JDI is 100% pure 
    Java.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;I think the problem is that the external process was not 
    startet. That you can not receive a stream. You test application sould 
    create a file or equals that you see that it was 
running.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
    &lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Volker&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
    &lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
      &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
      &lt;HR tabIndex=-1&gt;
      &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Markus Bischof 
      [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289808&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markusbischof82@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Montag, 9. 
      November 2009 19:36&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289808&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; 
      [Ikvm-developers] Stream of a process does not seam to be 
      correctlyredirected&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
      &lt;DIV&gt;&lt;/DIV&gt;Hi all,&lt;BR&gt;&lt;BR&gt;this is my first time writing to this list, so I 
      hope I'm targeting the correct audience.&lt;BR&gt;&lt;BR&gt;I've developed a Java 
      application which uses the Java Debug Interface (comes in the 
      tools.jar-file of each Java SDK lib folder). The application starts a Java 
      virtual machine and executes the given java program.&lt;BR&gt;&lt;BR&gt;After some 
      time I thought it might be very cool to have this application as a .NET 
      assembly. I converted my jar-file (as well as the tools.jar) and most 
      functionality worked really fine. Although ikvmc could not convert the 
      whole tools.jar-file, it was enough for my program to 
      run.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;But I ran into a problem with reading out the output 
      stream of the virtual machine process (reading out a stream from a process 
      created on my own is actually no problem in the converted 
      exe).&amp;nbsp;&lt;BR&gt;&lt;BR&gt;I've added a small program showing this problem. I've 
      also added the test file I'm using.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;To execute the program in 
      eclipse, you have to reference the tools.jar and also set the working 
      directory of the program to be the folder where your binaries are located 
      (the compiled test file must be located in the subdirectory &quot;main&quot;). When 
      you run the program, you will get an output similiar to:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;--&amp;gt; 
      JAVA_HOME = C:\Program Files\Java\jre6&lt;BR&gt;--&amp;gt; someting was printed 
      out&lt;BR&gt;streamReader done&lt;BR&gt;vmThread done&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;After converting the 
      jar file to a .NET exe file (and placing it into the same directory), I 
      only got the output:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;--&amp;gt; JAVA_HOME = 
      C:\.virtual-ikvm-home&lt;BR&gt;vmThread done&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;This reveals two 
      differences:&lt;BR&gt;1. Somehow the functionality of how the value of JAVA_HOME 
      is obtained is differently (this is no environment variable, actually. 
      Because it's not my java code, I can't say how the value is obtained). In 
      the test application, I override this value with the correct path to be 
      sure that the .NET exe has set the correct path.&lt;BR&gt;2. It seems that 
      reading from the output stream of the virtual machine process is not 
      possible. There is no line indicating that stream.available() returns 
      true. This is actually the bigger problem.&lt;BR&gt;&lt;BR&gt;Well, I hope someone 
      might know a solution for my problem(s)! I also hope that the sample 
      program is simple enough to be understandable.&lt;BR&gt;&lt;BR&gt;Markus 
      &lt;DIV&gt;&lt;BR&gt;
      &lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26289808&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stream-of-a-process-does-not-seam-to-be-correctly-redirected-tp26271438p26289808.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26272173</id>
	<title>Re: Stream of a process does not seam to be correctlyredirected</title>
	<published>2009-11-09T11:19:05Z</published>
	<updated>2009-11-09T11:19:05Z</updated>
	<author>
		<name>Volker Berlin</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY style=&quot;WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space&quot;&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Hi Markus,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;What do you want do with the Java Debug Interface? If you want 
start an external process then it is simpler to use 
java.lang.Process.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Because IKVM does not implement the Java Debug Intererface 
that you can't debug a IKVM process currently with a Java IDE. It can be 
possible that if you use tools.jar that you can debug an real Java process with 
a IKVM application. This part of JDI is 100% pure Java.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;I think the problem is that the external process was not 
startet. That you can not receive a stream. You test application sould create a 
file or equals that you see that it was running.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=953490919-09112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Volker&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Markus Bischof 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26272173&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markusbischof82@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Montag, 9. 
  November 2009 19:36&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26272173&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; [Ikvm-developers] 
  Stream of a process does not seam to be 
  correctlyredirected&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;Hi all,&lt;BR&gt;&lt;BR&gt;this is my first time writing to this list, so I 
  hope I'm targeting the correct audience.&lt;BR&gt;&lt;BR&gt;I've developed a Java 
  application which uses the Java Debug Interface (comes in the tools.jar-file 
  of each Java SDK lib folder). The application starts a Java virtual machine 
  and executes the given java program.&lt;BR&gt;&lt;BR&gt;After some time I thought it might 
  be very cool to have this application as a .NET assembly. I converted my 
  jar-file (as well as the tools.jar) and most functionality worked really fine. 
  Although ikvmc could not convert the whole tools.jar-file, it was enough for 
  my program to run.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;But I ran into a problem with reading out the 
  output stream of the virtual machine process (reading out a stream from a 
  process created on my own is actually no problem in the converted 
  exe).&amp;nbsp;&lt;BR&gt;&lt;BR&gt;I've added a small program showing this problem. I've also 
  added the test file I'm using.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;To execute the program in eclipse, 
  you have to reference the tools.jar and also set the working directory of the 
  program to be the folder where your binaries are located (the compiled test 
  file must be located in the subdirectory &quot;main&quot;). When you run the program, 
  you will get an output similiar to:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;--&amp;gt; JAVA_HOME = C:\Program 
  Files\Java\jre6&lt;BR&gt;--&amp;gt; someting was printed out&lt;BR&gt;streamReader 
  done&lt;BR&gt;vmThread done&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;After converting the jar file to a .NET exe 
  file (and placing it into the same directory), I only got the 
  output:&lt;BR&gt;&lt;BR&gt;&lt;I&gt;--&amp;gt; JAVA_HOME = C:\.virtual-ikvm-home&lt;BR&gt;vmThread 
  done&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;This reveals two differences:&lt;BR&gt;1. Somehow the functionality 
  of how the value of JAVA_HOME is obtained is differently (this is no 
  environment variable, actually. Because it's not my java code, I can't say how 
  the value is obtained). In the test application, I override this value with 
  the correct path to be sure that the .NET exe has set the correct path.&lt;BR&gt;2. 
  It seems that reading from the output stream of the virtual machine process is 
  not possible. There is no line indicating that stream.available() returns 
  true. This is actually the bigger problem.&lt;BR&gt;&lt;BR&gt;Well, I hope someone might 
  know a solution for my problem(s)! I also hope that the sample program is 
  simple enough to be understandable.&lt;BR&gt;&lt;BR&gt;Markus
  &lt;DIV&gt;&lt;BR&gt;
  &lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26272173&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stream-of-a-process-does-not-seam-to-be-correctly-redirected-tp26271438p26272173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26272106</id>
	<title>Stream of a process does not seam to be correctly redirected</title>
	<published>2009-11-09T11:17:39Z</published>
	<updated>2009-11-09T11:17:39Z</updated>
	<author>
		<name>Markus Bischof-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;Uh,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;probably I should paste the code right here:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is my test-class:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(202, 0, 166); &quot;&gt;package&lt;span style=&quot;color: #000000&quot;&gt; main;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(202, 0, 166); &quot;&gt;public&lt;span style=&quot;color: #000000&quot;&gt; &lt;/span&gt;class&lt;span style=&quot;color: #000000&quot;&gt; Test&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/span&gt;/**&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * &lt;span style=&quot;color: #005108&quot;&gt;@param&lt;/span&gt; args&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; */&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;void&lt;/span&gt; main(String[] args)&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.out.println(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;Hello world&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;And here comes the part using the Java Debug Interface:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; java.io.IOException;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; java.io.InputStream;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; java.util.Iterator;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; java.util.List;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; java.util.Map;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.Bootstrap;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.VirtualMachine;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.VirtualMachineManager;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.connect.Connector;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.connect.LaunchingConnector;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;import&lt;/span&gt; com.sun.jdi.connect.Connector.Argument;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;class&lt;/span&gt; TestVmProcess&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;static&lt;/span&gt; VirtualMachine _vm;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;static&lt;/span&gt; VirtualMachineManager _vmManager;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;static&lt;/span&gt; LaunchingConnector _connector;&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/span&gt;/**&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * &lt;span style=&quot;color: #005108&quot;&gt;@param&lt;/span&gt; args&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; */&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;void&lt;/span&gt; main(String[] args) &lt;span style=&quot;color: #ca00a6&quot;&gt;throws&lt;/span&gt; Exception&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// vm manager&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;_vmManager = Bootstrap.virtualMachineManager();&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// connector&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;List&amp;lt;Connector&amp;gt; connectors = _vmManager.allConnectors();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;Iterator&amp;lt;Connector&amp;gt; iterator = connectors.iterator();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;while&lt;/span&gt; (iterator.hasNext())&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;Connector c = iterator.next();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;if&lt;/span&gt; (c != &lt;span style=&quot;color: #ca00a6&quot;&gt;null&lt;/span&gt; &amp;amp;&amp;amp; c &lt;span style=&quot;color: #ca00a6&quot;&gt;instanceof&lt;/span&gt; LaunchingConnector &amp;amp;&amp;amp; &lt;a href=&quot;http://c.name&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c.name&lt;/a&gt;() == &lt;span style=&quot;color: #df0001&quot;&gt;&quot;com.sun.jdi.CommandLineLaunch&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;_connector = (LaunchingConnector) c;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// arguments&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;Map&amp;lt;String, Argument&amp;gt; arguments = _connector.defaultArguments();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;Argument arg = (Argument) arguments.get(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;main&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;arg.setValue(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;main.Test&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;arg = (Argument) arguments.get(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;home&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.out.println(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;--&amp;gt; JAVA_HOME = &quot;&lt;/span&gt; + arg.value());&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// manually set this path as under ikvm i get '.virtual-ikvm-home'&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(223, 0, 1); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;arg.setValue(&lt;/span&gt;&quot;C:/Java/jdk1.6.0_17&quot;&lt;span style=&quot;color: #000000&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// launch vm&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;_vm = _connector.launch(arguments);&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// redirect output of the vm&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;Thread streamReader = &lt;span style=&quot;color: #ca00a6&quot;&gt;new&lt;/span&gt; Thread(&lt;span style=&quot;color: #ca00a6&quot;&gt;new&lt;/span&gt; Runnable(){&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;@Override&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;void&lt;/span&gt; run()&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;InputStream stream = _vm.process().getInputStream();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(202, 0, 166); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&lt;/span&gt;while&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;true&lt;span style=&quot;color: #000000&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;try&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;if&lt;/span&gt; (stream.available() &amp;gt; &lt;span style=&quot;color: #4400e0&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(223, 0, 1); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;							&lt;/span&gt;System.out.println(&lt;/span&gt;&quot;--&amp;gt; someting was printed out&quot;&lt;span style=&quot;color: #000000&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;							&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;catch&lt;/span&gt; (IOException e)&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;System.out.println(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;streamReader done&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}});&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;streamReader.start();&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// keep the vm running&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;Thread vmRunner = &lt;span style=&quot;color: #ca00a6&quot;&gt;new&lt;/span&gt; Thread(&lt;span style=&quot;color: #ca00a6&quot;&gt;new&lt;/span&gt; Runnable(){&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;@Override&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #ca00a6&quot;&gt;void&lt;/span&gt; run()&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(202, 0, 166); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;&lt;/span&gt;while&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;true&lt;span style=&quot;color: #000000&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;try&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;_vm.eventQueue().remove().resume();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;catch&lt;/span&gt; (Exception e)&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;{&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;&lt;span style=&quot;color: #ca00a6&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;System.out.println(&lt;span style=&quot;color: #df0001&quot;&gt;&quot;vmThread done&quot;&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;}});&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;vmRunner.start();&lt;/div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/p&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 141, 0); &quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/span&gt;// keep running until user presses a button&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;System.in.read();&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;}&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Sorry for that!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Markus&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26272106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stream-of-a-process-does-not-seam-to-be-correctly-redirected-tp26272106p26272106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26271438</id>
	<title>Stream of a process does not seam to be correctly redirected</title>
	<published>2009-11-09T10:35:52Z</published>
	<updated>2009-11-09T10:35:52Z</updated>
	<author>
		<name>Markus Bischof-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;this is my first time writing to this list, so I hope I'm targeting the correct audience.&lt;br&gt;&lt;br&gt;I've developed a Java application which uses the Java Debug Interface (comes in the tools.jar-file of each Java SDK lib folder). The application starts a Java virtual machine and executes the given java program.&lt;br&gt;&lt;br&gt;After some time I thought it might be very cool to have this application as a .NET assembly. I converted my jar-file (as well as the tools.jar) and most functionality worked really fine. Although ikvmc could not convert the whole tools.jar-file, it was enough for my program to run.&lt;br&gt;&amp;nbsp;&lt;br&gt;But I ran into a problem with reading out the output stream of the virtual machine process (reading out a stream from a process created on my own is actually no problem in the converted exe).&amp;nbsp;&lt;br&gt;&lt;br&gt;I've added a small program showing this problem. I've also added the test file I'm using.&amp;nbsp;&lt;br&gt;&lt;br&gt;To execute the program in eclipse, you have to reference the tools.jar and also set the working directory of the program to be the folder where your binaries are located (the compiled test file must be located in the subdirectory &quot;main&quot;). When you run the program, you will get an output similiar to:&lt;br&gt;&lt;br&gt;&lt;i&gt;--&amp;gt; JAVA_HOME = C:\Program Files\Java\jre6&lt;br&gt;--&amp;gt; someting was printed out&lt;br&gt;streamReader done&lt;br&gt;vmThread done&lt;/i&gt;&lt;br&gt;&lt;br&gt;After converting the jar file to a .NET exe file (and placing it into the same directory), I only got the output:&lt;br&gt;&lt;br&gt;&lt;i&gt;--&amp;gt; JAVA_HOME = C:\.virtual-ikvm-home&lt;br&gt;vmThread done&lt;/i&gt;&lt;br&gt;&lt;br&gt;This reveals two differences:&lt;br&gt;1. Somehow the functionality of how the value of JAVA_HOME is obtained is differently (this is no environment variable, actually. Because it's not my java code, I can't say how the value is obtained). In the test application, I override this value with the correct path to be sure that the .NET exe has set the correct path.&lt;br&gt;2. It seems that reading from the output stream of the virtual machine process is not possible. There is no line indicating that stream.available() returns true. This is actually the bigger problem.&lt;br&gt;&lt;br&gt;Well, I hope someone might know a solution for my problem(s)! I also hope that the sample program is simple enough to be understandable.&lt;br&gt;&lt;br&gt;Markus&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt; &lt;br /&gt;&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;head&gt;&lt;/head&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt; &lt;br /&gt;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26271438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;Test.java&lt;/strong&gt; (270 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26271438/0/Test.java&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;TestVmProcess.java&lt;/strong&gt; (3K) &lt;a href=&quot;http://old.nabble.com/attachment/26271438/1/TestVmProcess.java&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Stream-of-a-process-does-not-seam-to-be-correctly-redirected-tp26271438p26271438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26269076</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-09T08:13:13Z</published>
	<updated>2009-11-09T08:13:13Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Hi Jeroen,
&lt;br&gt;&lt;br&gt;Great!
&lt;br&gt;It is working after I managed to invoke a static method before the log4j
&lt;br&gt;logger.
&lt;br&gt;&lt;br&gt;Really appreciated!
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Jun 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;] 
&lt;br&gt;Sent: Saturday, November 07, 2009 2:45 AM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;The sample I posted didn't solve the problem. It was only a hint on how
&lt;br&gt;to solve the problem. It shows that javax.activation uses the system
&lt;br&gt;class loader and that you need to set the system class loader to a class
&lt;br&gt;loader that knows how to load META-INF/mailcap (i.e. delegate to the
&lt;br&gt;axis assembly class loader).
&lt;br&gt;&lt;br&gt;I've attached something that should work. BTW, you must make sure that
&lt;br&gt;the java.system.class.loader system property is set before any other
&lt;br&gt;Java code executes, otherwise you run the risk of getting the default
&lt;br&gt;system class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:23 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you so much for your kindly help and I understand your point
&lt;br&gt;now.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; And I do have my own system classloader.
&lt;br&gt;&amp;gt; Anyway, I tried the code in a new project and I got the exactly error 
&lt;br&gt;&amp;gt; message.
&lt;br&gt;&amp;gt; Just wondering if it is related with the version(0.40.0.1) I have.
&lt;br&gt;&amp;gt; Will try to download a new version...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards and have a good weekend,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 3:18 PM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No. javax.activation uses the system class loader. The attached 
&lt;br&gt;&amp;gt; example shows that and it also shows how you can change the system 
&lt;br&gt;&amp;gt; class loader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 5:00 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I thought that the cause of the problem is that those two jar files 
&lt;br&gt;&amp;gt; &amp;gt; (activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;&amp;gt; &amp;gt; Currently, the axis is loaded in system class loader (I guess the 
&lt;br&gt;&amp;gt; &amp;gt; AssemblyClassLoader is the default one).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Why not simply make sure that the axis assembly is reachable via the
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; system class loader?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Yes, you are right. The class loader of
&lt;br&gt;&amp;gt; javax.activation.DataHandler
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Just wondering how can I add/recompile the axis.jar in the boot 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; class library. (I know it is awful).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The class loader of javax.activation.DataHandler is null (aka the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; boot class path (except by recompiling the boot class library), 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; but I seriously doubt that's necessary. Most code in the boot 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; class library uses either the system or the thread context class
&lt;/div&gt;loader.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; converted the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for
&lt;/div&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at
&lt;/div&gt;Nabble.com.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; ----------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; &amp;gt; 2008
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; - and focus on what you do best, core application coding.
&lt;br&gt;&amp;gt; Discover
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; what's new with Crystal Reports now.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26269076&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26269076.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26242742</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T23:45:09Z</published>
	<updated>2009-11-06T23:45:09Z</updated>
	<author>
		<name>Jeroen Frijters</name>
	</author>
	<content type="html">The sample I posted didn't solve the problem. It was only a hint on how to solve the problem. It shows that javax.activation uses the system class loader and that you need to set the system class loader to a class loader that knows how to load META-INF/mailcap (i.e. delegate to the axis assembly class loader).
&lt;br&gt;&lt;br&gt;I've attached something that should work. BTW, you must make sure that the java.system.class.loader system property is set before any other Java code executes, otherwise you run the risk of getting the default system class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:23 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you so much for your kindly help and I understand your point now.
&lt;br&gt;&amp;gt; And I do have my own system classloader.
&lt;br&gt;&amp;gt; Anyway, I tried the code in a new project and I got the exactly error
&lt;br&gt;&amp;gt; message.
&lt;br&gt;&amp;gt; Just wondering if it is related with the version(0.40.0.1) I have.
&lt;br&gt;&amp;gt; Will try to download a new version...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards and have a good weekend,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 3:18 PM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No. javax.activation uses the system class loader. The attached example
&lt;br&gt;&amp;gt; shows that and it also shows how you can change the system class
&lt;br&gt;&amp;gt; loader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 5:00 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I thought that the cause of the problem is that those two jar files
&lt;br&gt;&amp;gt; &amp;gt; (activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;&amp;gt; &amp;gt; Currently, the axis is loaded in system class loader (I guess the
&lt;br&gt;&amp;gt; &amp;gt; AssemblyClassLoader is the default one).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Why not simply make sure that the axis assembly is reachable via the
&lt;br&gt;&amp;gt; &amp;gt; system class loader?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Yes, you are right. The class loader of
&lt;br&gt;&amp;gt; javax.activation.DataHandler
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Just wondering how can I add/recompile the axis.jar in the boot
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; class library. (I know it is awful).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The class loader of javax.activation.DataHandler is null (aka the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; boot class path (except by recompiling the boot class library), but
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I seriously doubt that's necessary. Most code in the boot class
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; library uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; converted the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; It looks like the axis.jar is loaded via
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -----------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; &amp;gt; 2008
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; - and focus on what you do best, core application coding.
&lt;br&gt;&amp;gt; Discover
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; what's new with Crystal Reports now.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;ï»¿using System;
&lt;br&gt;&lt;br&gt;public class Program : java.lang.ClassLoader
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Program(java.lang.ClassLoader parent)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : base(GetClassLoader())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static java.lang.ClassLoader GetClassLoader()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Class c = typeof(javax.mail.Message);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return c.getClassLoader();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.System.setProperty(&amp;quot;java.system.class.loader&amp;quot;, typeof(Program).AssemblyQualifiedName);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; javax.activation.DataHandler dh = new javax.activation.DataHandler(&amp;quot;foo&amp;quot;, &amp;quot;text/plain&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dh.getInputStream();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242742&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26242742.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26238883</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T13:26:23Z</published>
	<updated>2009-11-06T13:26:23Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Looks like I had the latest version :(.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Li, Jun 
&lt;br&gt;Sent: Friday, November 06, 2009 4:23 PM
&lt;br&gt;To: 'Jeroen Frijters'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi Jeroen,
&lt;br&gt;&lt;br&gt;Thank you so much for your kindly help and I understand your point now.
&lt;br&gt;And I do have my own system classloader.
&lt;br&gt;Anyway, I tried the code in a new project and I got the exactly error
&lt;br&gt;message.
&lt;br&gt;Just wondering if it is related with the version(0.40.0.1) I have.
&lt;br&gt;Will try to download a new version...
&lt;br&gt;&lt;br&gt;Best regards and have a good weekend,
&lt;br&gt;Jun
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;Sent: Friday, November 06, 2009 3:18 PM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi Jun,
&lt;br&gt;&lt;br&gt;No. javax.activation uses the system class loader. The attached example
&lt;br&gt;shows that and it also shows how you can change the system class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 5:00 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I thought that the cause of the problem is that those two jar files 
&lt;br&gt;&amp;gt; (activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;&amp;gt; Currently, the axis is loaded in system class loader (I guess the 
&lt;br&gt;&amp;gt; AssemblyClassLoader is the default one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why not simply make sure that the axis assembly is reachable via the 
&lt;br&gt;&amp;gt; system class loader?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yes, you are right. The class loader of javax.activation.DataHandler
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; &amp;gt; Just wondering how can I add/recompile the axis.jar in the boot 
&lt;br&gt;&amp;gt; &amp;gt; class library. (I know it is awful).
&lt;br&gt;&amp;gt; &amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I 
&lt;br&gt;&amp;gt; &amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The class loader of javax.activation.DataHandler is null (aka the 
&lt;br&gt;&amp;gt; &amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the 
&lt;br&gt;&amp;gt; &amp;gt; boot class path (except by recompiling the boot class library), but 
&lt;br&gt;&amp;gt; &amp;gt; I seriously doubt that's necessary. Most code in the boot class 
&lt;br&gt;&amp;gt; &amp;gt; library uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; converted the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; 2008
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - and focus on what you do best, core application coding. Discover
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; what's new with Crystal Reports now.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238883&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26238883.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26238850</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T13:23:21Z</published>
	<updated>2009-11-06T13:23:21Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Hi Jeroen,
&lt;br&gt;&lt;br&gt;Thank you so much for your kindly help and I understand your point now.
&lt;br&gt;And I do have my own system classloader.
&lt;br&gt;Anyway, I tried the code in a new project and I got the exactly error
&lt;br&gt;message.
&lt;br&gt;Just wondering if it is related with the version(0.40.0.1) I have.
&lt;br&gt;Will try to download a new version...
&lt;br&gt;&lt;br&gt;Best regards and have a good weekend,
&lt;br&gt;Jun
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;] 
&lt;br&gt;Sent: Friday, November 06, 2009 3:18 PM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi Jun,
&lt;br&gt;&lt;br&gt;No. javax.activation uses the system class loader. The attached example
&lt;br&gt;shows that and it also shows how you can change the system class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 5:00 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I thought that the cause of the problem is that those two jar files 
&lt;br&gt;&amp;gt; (activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;&amp;gt; Currently, the axis is loaded in system class loader (I guess the 
&lt;br&gt;&amp;gt; AssemblyClassLoader is the default one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why not simply make sure that the axis assembly is reachable via the 
&lt;br&gt;&amp;gt; system class loader?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yes, you are right. The class loader of javax.activation.DataHandler
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; &amp;gt; Just wondering how can I add/recompile the axis.jar in the boot 
&lt;br&gt;&amp;gt; &amp;gt; class library. (I know it is awful).
&lt;br&gt;&amp;gt; &amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I 
&lt;br&gt;&amp;gt; &amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The class loader of javax.activation.DataHandler is null (aka the 
&lt;br&gt;&amp;gt; &amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the 
&lt;br&gt;&amp;gt; &amp;gt; boot class path (except by recompiling the boot class library), but 
&lt;br&gt;&amp;gt; &amp;gt; I seriously doubt that's necessary. Most code in the boot class 
&lt;br&gt;&amp;gt; &amp;gt; library uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; converted the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; 2008
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - and focus on what you do best, core application coding. Discover
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; what's new with Crystal Reports now. &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238850&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26238850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26238060</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T12:17:48Z</published>
	<updated>2009-11-06T12:17:48Z</updated>
	<author>
		<name>Jeroen Frijters</name>
	</author>
	<content type="html">Hi Jun,
&lt;br&gt;&lt;br&gt;No. javax.activation uses the system class loader. The attached example shows that and it also shows how you can change the system class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 5:00 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I thought that the cause of the problem is that those two jar files
&lt;br&gt;&amp;gt; (activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;&amp;gt; Currently, the axis is loaded in system class loader (I guess the
&lt;br&gt;&amp;gt; AssemblyClassLoader is the default one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jun,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why not simply make sure that the axis assembly is reachable via the
&lt;br&gt;&amp;gt; system class loader?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; &amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yes, you are right. The class loader of javax.activation.DataHandler
&lt;br&gt;&amp;gt; &amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; &amp;gt; Just wondering how can I add/recompile the axis.jar in the boot class
&lt;br&gt;&amp;gt; &amp;gt; library. (I know it is awful).
&lt;br&gt;&amp;gt; &amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I
&lt;br&gt;&amp;gt; &amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; &amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The class loader of javax.activation.DataHandler is null (aka the
&lt;br&gt;&amp;gt; &amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the boot
&lt;br&gt;&amp;gt; &amp;gt; class path (except by recompiling the boot class library), but I
&lt;br&gt;&amp;gt; &amp;gt; seriously doubt that's necessary. Most code in the boot class library
&lt;br&gt;&amp;gt; &amp;gt; uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt; Jeroen
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I converted
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; It looks like the axis.jar is loaded via
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; 2008
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - and focus on what you do best, core application coding. Discover
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; &amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; &amp;gt; =
&lt;br&gt;&amp;gt; &amp;gt; ========
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;ï»¿using System;
&lt;br&gt;&lt;br&gt;public class Program : java.lang.ClassLoader
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Program(java.lang.ClassLoader parent)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : base(parent)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected override java.net.URL findResource(string name)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(name);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return base.findResource(name);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.System.setProperty(&amp;quot;java.system.class.loader&amp;quot;, typeof(Program).AssemblyQualifiedName);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; javax.activation.DataHandler dh = new javax.activation.DataHandler(&amp;quot;foo&amp;quot;, &amp;quot;text/plain&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dh.getInputStream();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238060&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26238060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234381</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T08:00:16Z</published>
	<updated>2009-11-06T08:00:16Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Hi Jeroen,
&lt;br&gt;&lt;br&gt;I thought that the cause of the problem is that those two jar files
&lt;br&gt;(activation.jar and axis.jar) are NOT in the same classloader.
&lt;br&gt;Currently, the axis is loaded in system class loader (I guess the
&lt;br&gt;AssemblyClassLoader is the default one).
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jun 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;] 
&lt;br&gt;Sent: Friday, November 06, 2009 10:53 AM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi Jun,
&lt;br&gt;&lt;br&gt;Why not simply make sure that the axis assembly is reachable via the
&lt;br&gt;system class loader?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, you are right. The class loader of javax.activation.DataHandler 
&lt;br&gt;&amp;gt; is null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; Just wondering how can I add/recompile the axis.jar in the boot class 
&lt;br&gt;&amp;gt; library. (I know it is awful).
&lt;br&gt;&amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I 
&lt;br&gt;&amp;gt; don't really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The class loader of javax.activation.DataHandler is null (aka the 
&lt;br&gt;&amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the boot 
&lt;br&gt;&amp;gt; class path (except by recompiling the boot class library), but I 
&lt;br&gt;&amp;gt; seriously doubt that's necessary. Most code in the boot class library 
&lt;br&gt;&amp;gt; uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I converted 
&lt;br&gt;&amp;gt; &amp;gt; the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for 
&lt;br&gt;&amp;gt; &amp;gt; MIME type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138
&lt;br&gt;&amp;gt; &amp;gt; )
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and 
&lt;br&gt;&amp;gt; &amp;gt; deployment
&lt;br&gt;&amp;gt; &amp;gt; - and focus on what you do best, core application coding. Discover 
&lt;br&gt;&amp;gt; &amp;gt; what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic 
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ======================================================================
&lt;br&gt;&amp;gt; =
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234381&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26234381.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234286</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T07:53:14Z</published>
	<updated>2009-11-06T07:53:14Z</updated>
	<author>
		<name>Jeroen Frijters</name>
	</author>
	<content type="html">Hi Jun,
&lt;br&gt;&lt;br&gt;Why not simply make sure that the axis assembly is reachable via the system class loader?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Li, Jun [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 4:43 PM
&lt;br&gt;&amp;gt; To: Jeroen Frijters; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Jeroen,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, you are right. The class loader of javax.activation.DataHandler is
&lt;br&gt;&amp;gt; null and it is bootstrap class loader.
&lt;br&gt;&amp;gt; Just wondering how can I add/recompile the axis.jar in the boot class
&lt;br&gt;&amp;gt; library. (I know it is awful).
&lt;br&gt;&amp;gt; Otherwise, not sure if anyone else used the axis via IKVM since I don't
&lt;br&gt;&amp;gt; really want to rewrite those web service code in c#.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;&amp;gt; To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The class loader of javax.activation.DataHandler is null (aka the
&lt;br&gt;&amp;gt; bootstrap class loader). In IKVM.NET you cannot add stuff to the boot
&lt;br&gt;&amp;gt; class path (except by recompiling the boot class library), but I
&lt;br&gt;&amp;gt; seriously doubt that's necessary. Most code in the boot class library
&lt;br&gt;&amp;gt; uses either the system or the thread context class loader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Jeroen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I try to invoke the webservice call implemented in java(I converted
&lt;br&gt;&amp;gt; &amp;gt; the java code into dll).
&lt;br&gt;&amp;gt; &amp;gt; I got the following error:
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for MIME
&lt;br&gt;&amp;gt; &amp;gt; type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;br&gt;&amp;gt; &amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; 7
&lt;br&gt;&amp;gt; &amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; &amp;gt; 3
&lt;br&gt;&amp;gt; &amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; &amp;gt; t
&lt;br&gt;&amp;gt; &amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; &amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;br&gt;&amp;gt; &amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I did some research.
&lt;br&gt;&amp;gt; &amp;gt; It looks like the axis.jar is loaded via
&lt;br&gt;&amp;gt; &amp;gt; ikvm.runtime.AssemblyClassLoader, however, the
&lt;br&gt;&amp;gt; &amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; &amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; &amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Jun
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; &amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -
&lt;br&gt;&amp;gt; &amp;gt; -------
&lt;br&gt;&amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;&amp;gt; &amp;gt; 30-Day trial. Simplify your report design, integration and deployment
&lt;br&gt;&amp;gt; &amp;gt; - and focus on what you do best, core application coding. Discover
&lt;br&gt;&amp;gt; &amp;gt; what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; &amp;nbsp;Please access the attached hyperlink for an important electronic
&lt;br&gt;&amp;gt; communications disclaimer:
&lt;br&gt;&amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; =======================================================================
&lt;br&gt;&amp;gt; ========
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234286&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26234286.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234206</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T07:49:06Z</published>
	<updated>2009-11-06T07:49:06Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Just another thought, is there any old version of IKVM which does not
&lt;br&gt;include activation in the boot library?
&lt;br&gt;I can build activation.jar and axis.jar in the same assembly.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Li, Jun 
&lt;br&gt;Sent: Friday, November 06, 2009 10:43 AM
&lt;br&gt;To: 'Jeroen Frijters'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi Jeroen,
&lt;br&gt;&lt;br&gt;Yes, you are right. The class loader of javax.activation.DataHandler is
&lt;br&gt;null and it is bootstrap class loader.
&lt;br&gt;Just wondering how can I add/recompile the axis.jar in the boot class
&lt;br&gt;library. (I know it is awful).
&lt;br&gt;Otherwise, not sure if anyone else used the axis via IKVM since I don't
&lt;br&gt;really want to rewrite those web service code in c#.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jun
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;]
&lt;br&gt;Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;The class loader of javax.activation.DataHandler is null (aka the
&lt;br&gt;bootstrap class loader). In IKVM.NET you cannot add stuff to the boot
&lt;br&gt;class path (except by recompiling the boot class library), but I
&lt;br&gt;seriously doubt that's necessary. Most code in the boot class library
&lt;br&gt;uses either the system or the thread context class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to invoke the webservice call implemented in java(I converted 
&lt;br&gt;&amp;gt; the java code into dll).
&lt;br&gt;&amp;gt; I got the following error:
&lt;br&gt;&amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for MIME 
&lt;br&gt;&amp;gt; type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;/div&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; 7
&lt;br&gt;&amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; 3
&lt;br&gt;&amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; t
&lt;br&gt;&amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I did some research.
&lt;br&gt;&amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day trial. Simplify your report design, integration and deployment
&lt;br&gt;&amp;gt; - and focus on what you do best, core application coding. Discover 
&lt;br&gt;&amp;gt; what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234206&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26234206.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234089</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T07:42:40Z</published>
	<updated>2009-11-06T07:42:40Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Hi Jeroen,
&lt;br&gt;&lt;br&gt;Yes, you are right. The class loader of javax.activation.DataHandler is
&lt;br&gt;null and it is bootstrap class loader.
&lt;br&gt;Just wondering how can I add/recompile the axis.jar in the boot class
&lt;br&gt;library. (I know it is awful).
&lt;br&gt;Otherwise, not sure if anyone else used the axis via IKVM since I don't
&lt;br&gt;really want to rewrite those web service code in c#.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jun
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Jeroen Frijters [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeroen@...&lt;/a&gt;] 
&lt;br&gt;Sent: Friday, November 06, 2009 10:33 AM
&lt;br&gt;To: Li, Jun; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;Subject: RE: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;The class loader of javax.activation.DataHandler is null (aka the
&lt;br&gt;bootstrap class loader). In IKVM.NET you cannot add stuff to the boot
&lt;br&gt;class path (except by recompiling the boot class library), but I
&lt;br&gt;seriously doubt that's necessary. Most code in the boot class library
&lt;br&gt;uses either the system or the thread context class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to invoke the webservice call implemented in java(I converted 
&lt;br&gt;&amp;gt; the java code into dll).
&lt;br&gt;&amp;gt; I got the following error:
&lt;br&gt;&amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for MIME 
&lt;br&gt;&amp;gt; type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;/div&gt;javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; 7
&lt;br&gt;&amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:
&lt;br&gt;&amp;gt; 3
&lt;br&gt;&amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachmen
&lt;br&gt;&amp;gt; t
&lt;br&gt;&amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.jav
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt;
&lt;/div&gt;org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I did some research.
&lt;br&gt;&amp;gt; It looks like the axis.jar is loaded via 
&lt;br&gt;&amp;gt; ikvm.runtime.AssemblyClassLoader, however, the 
&lt;br&gt;&amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day trial. Simplify your report design, integration and deployment 
&lt;br&gt;&amp;gt; - and focus on what you do best, core application coding. Discover 
&lt;br&gt;&amp;gt; what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;/div&gt;&lt;br&gt;=============================================================================== 
&lt;br&gt;&amp;nbsp;Please access the attached hyperlink for an important electronic communications disclaimer: 
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;=============================================================================== 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234089&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26234089.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26233894</id>
	<title>Re: calling wbeservice with axis</title>
	<published>2009-11-06T07:32:49Z</published>
	<updated>2009-11-06T07:32:49Z</updated>
	<author>
		<name>Jeroen Frijters</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;The class loader of javax.activation.DataHandler is null (aka the bootstrap class loader). In IKVM.NET you cannot add stuff to the boot class path (except by recompiling the boot class library), but I seriously doubt that's necessary. Most code in the boot class library uses either the system or the thread context class loader.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Jeroen
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: jun_li [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233894&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jun.li@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Friday, November 06, 2009 4:15 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233894&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Ikvm-developers] calling wbeservice with axis
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to invoke the webservice call implemented in java(I converted the
&lt;br&gt;&amp;gt; java code into dll).
&lt;br&gt;&amp;gt; I got the following error:
&lt;br&gt;&amp;gt; javax.activation.UnsupportedDataTypeException: no object DCH for MIME
&lt;br&gt;&amp;gt; type text/plain &amp;nbsp;at
&lt;br&gt;&amp;gt; javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:
&lt;br&gt;&amp;gt; 703)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:7
&lt;br&gt;&amp;gt; 3)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:3
&lt;br&gt;&amp;gt; 8)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.attachments.AttachmentsImpl.getContentLength(Attachment
&lt;br&gt;&amp;gt; sImpl.java:438)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java
&lt;br&gt;&amp;gt; :371)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
&lt;br&gt;&amp;gt; &amp;nbsp;at
&lt;br&gt;&amp;gt; org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.
&lt;br&gt;&amp;gt; java:33)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;gt; &amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I did some research.
&lt;br&gt;&amp;gt; It looks like the axis.jar is loaded via
&lt;br&gt;&amp;gt; ikvm.runtime.AssemblyClassLoader, however, the
&lt;br&gt;&amp;gt; javax.activation.DataHandler( I believe it is implemented in
&lt;br&gt;&amp;gt; IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to have loaded them in the same classloader?
&lt;br&gt;&amp;gt; Or is there other way to handle this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jun
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/calling-wbeservice-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/calling-wbeservice-&lt;/a&gt;&lt;br&gt;&amp;gt; with-axis-tp26230793p26230793.html
&lt;br&gt;&amp;gt; Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and
&lt;br&gt;&amp;gt; focus on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ikvm-developers mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233894&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233894&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26233894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230793</id>
	<title>calling wbeservice with axis</title>
	<published>2009-11-06T07:14:45Z</published>
	<updated>2009-11-06T07:14:45Z</updated>
	<author>
		<name>jun_li</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I try to invoke the webservice call implemented in java(I converted the java code into dll).
&lt;br&gt;I got the following error:
&lt;br&gt;javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
&lt;br&gt;&amp;nbsp;at javax.activation.DataHandler.getInputStream(DataHandler.java:248)
&lt;br&gt;&amp;nbsp;at javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:703)
&lt;br&gt;&amp;nbsp;at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:73)
&lt;br&gt;&amp;nbsp;at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:38)
&lt;br&gt;&amp;nbsp;at org.apache.axis.attachments.AttachmentsImpl.getContentLength(AttachmentsImpl.java:438)
&lt;br&gt;&amp;nbsp;at org.apache.axis.Message.getContentLength(Message.java:512)
&lt;br&gt;&amp;nbsp;at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
&lt;br&gt;&amp;nbsp;at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
&lt;br&gt;&amp;nbsp;at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:33)
&lt;br&gt;&amp;nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:119)
&lt;br&gt;&amp;nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:85)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.Call.invokeEngine(Call.java:2786)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2767)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2443)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:2366)
&lt;br&gt;&amp;nbsp;at org.apache.axis.client.Call.invoke(Call.java:1812)
&lt;br&gt;&lt;br&gt;I did some research.
&lt;br&gt;It looks like the axis.jar is loaded via ikvm.runtime.AssemblyClassLoader, however, the javax.activation.DataHandler( I believe it is implemented in IKVM.OpenJDK.Misc) is loaded from java.lang.ClassLoader.
&lt;br&gt;&lt;br&gt;Is it possible to have loaded them in the same classloader?
&lt;br&gt;Or is there other way to handle this?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jun</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/calling-wbeservice-with-axis-tp26230793p26230793.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26231724</id>
	<title>Re: Product versioning...</title>
	<published>2009-11-06T05:08:07Z</published>
	<updated>2009-11-06T05:08:07Z</updated>
	<author>
		<name>Volker Berlin (i-net software)</name>
	</author>
	<content type="html">&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=utf-8&quot;&gt;
&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;

&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=DE link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;A sample can you see in the repository at http://ikvm.cvs.sourceforge.net/viewvc/*checkout*/ikvm/ikvm/openjdk/AssemblyInfo.java.in?revision=1.2.4.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;Von:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Antoine Malliarakis
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231724&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;antoine.malliarakis@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Gesendet:&lt;/b&gt; Freitag, 6. November 2009 13:49&lt;br&gt;
&lt;b&gt;An:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231724&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikvm-developers@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Betreff:&lt;/b&gt; [Ikvm-developers] Product versioning...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Hello (again)&lt;br&gt;
&lt;br&gt;
After having gone through the proper use of the remap process (which works
perfectly, thanks, by the way) I came up with another question.&lt;br&gt;
Does this remap process also allow to specify custom assembly attributes? I saw
in the blog that it was moved to AssemblyInfo.java since the version 0.30 ...
What's that? Where is it? I'm kinda lost here and that would kinda help me :'(&lt;br&gt;
&lt;br&gt;
To be more specific my target is to add an
&amp;quot;System.Reflection.AssemblyInformationalVersion&amp;quot; attribute to the
generated assembly.&lt;br&gt;
&lt;br&gt;
Thanks for your help (and patience...)&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
&lt;br&gt;
Antoine Malliarakis&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ikvm-developers mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26231724&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ikvm-developers@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ikvm-developers&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Product-versioning...-tp26231485p26231724.html" />
</entry>

</feed>
