Visual J# General ForumQuestions about Visual J# – including the IDE, Java-language syntax, JDK functionality, migrating Java-language applications to run on the .NET Framework, and more.© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Nov 2009 12:06:52 Zede6675c-cf75-4d89-b4ad-246858b26e32http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/a3f87eb6-ac93-4317-955d-f0f36ee016f5http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/a3f87eb6-ac93-4317-955d-f0f36ee016f5Richard Pawsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Richard%20PawsonProblems running J# in .NET 4.0 (Beta 2)<p>I am running .NET 4.0 (Beta 2) on Windows 7 and have installed the J# Redistributable 2.0 successfully.<br/><br/>When I run the application I get the following error:<br/><br/>System.DllNotFoundException occurred<br/>  Message=Unable to load DLL 'vjsnativ': The specified module could not be found. (Exception from HRESULT: 0x8007007E)<br/>  Source=vjslib<br/>  TypeName=&quot;&quot;<br/>  StackTrace:<br/>       at com.ms.vjsharp.VJSlibString.BJLoadResourceDll&lt;PInvokeHelper&gt;vjsnativ(String path, String file, String fallBackFile)<br/>       at com.ms.vjsharp.VJSlibString.BJLoadResourceDll(String path, String file, String fallBackFile)<br/>  InnerException: <br/><br/>I have checked and the module not found (vjsnativ) does exist within the .NET Framework v2.0.50727 folder.<br/><br/>The same application is running fine on my other machine, which is also running .NET 4.0 Beta 2, but has been upgraded successively from earlier versions of .NET 3.5.<br/><br/>I also tried installing the .NET 2.0 redistributable (per the statement on the J# Redistributable download page) but was advised that I already have that on the machine.<br/><br/>Finally, I can get the application to run if I copy the vjsnativ file from its current location into the \bin of the application.  But obviously this is a brittle fix.<br/><br/>Any help appreciated.<br/>Richard Pawson</p>Thu, 26 Nov 2009 12:06:51 Z2009-11-26T12:06:52Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ef5c054c-b8bf-4421-bc9d-910e3fc9fd81http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ef5c054c-b8bf-4421-bc9d-910e3fc9fd81black_flowershttp://social.msdn.microsoft.com/Profile/en-US/?user=black_flowersi can't acess a static method from a class, which is in a .dll classlibrary.i have a classlibrary, and a project. This project has a reference to the classlibrary (which is a .dll). In my project i make an import instruction of the proper package from the classlibrary. But when run the application i can't access an static method from one class. This is the main program:<br/> <br/> <br/> ----------------------------------------main---------------------------------------------<br/> <strong><em>import java.io.IOException;<br/> import Biblioteca.*;<br/> <br/> <br/> public class Program<br/>     {static int p1[] ={ 1, 7, 2 };<br/>     static int p2[] ={ 2, 5, 4, 1,5,8 };<br/>     polinomio pol1, pol2, pol3;<br/>     termino t1, t2, t3;<br/>     public static void main(String[] args)throws IOException<br/>         {polinomio pol1 = new polinomio(p1);<br/>         polinomio pol2 = new polinomio(p2);<br/>         polinomio pol3=new polinomio();<br/>         pol1.visualiza();<br/>         pol2.visualiza();<br/>         pol3 = polinomio.suma(pol1, pol2);   // this is the function that cannot be accesed.<br/>         pol3.visualiza();<br/>         System.in.read();<br/>         }<br/>     }<br/> <br/> --------------------------------Biblioteca.dll------------------------------------------------------------------------------<br/> --------------------------------polinomio.class---------------------------------------------------<br/> <br/> package Biblioteca;<br/> <br/> import java.io.IOException;<br/> <br/> public class polinomio<br/> {<br/>     private int pGrado;<br/>     private termino[] pTerminos;<br/>     public polinomio()<br/>     { pGrado = 0; }<br/>     public polinomio(int G)<br/>     { pGrado = G; }<br/>     public polinomio(int mantisas[])<br/>     {<br/>         pGrado = mantisas.length;<br/>         pTerminos = new termino[pGrado];<br/>         for (int i = 0; i &lt; pGrado; i++)<br/>         { pTerminos[pGrado - 1 - i] = new termino(mantisas[i], pGrado - 1 - i); }<br/>     }<br/>     public void visualiza()<br/>     {<br/>         for (int i = pGrado - 1; i &gt;= 0; i--)<br/>         {<br/>             pTerminos[i].visualiza();<br/>             if (i &gt; 0)<br/>             { System.out.print(&quot;+&quot;); }<br/>         }<br/>         System.out.println();<br/>     }<br/>     public termino getTermino(int i)<br/>     { return pTerminos[i]; }<br/>     public void setTermino(int i, termino T)<br/>     { pTerminos[i] = T; }<br/>     static polinomio suma(polinomio p1, polinomio p2)<br/>     {<br/>         polinomio p3 = new polinomio();<br/>         if (p1.pGrado &lt; p2.pGrado)<br/>         {<br/>             p3 = p2;<br/>             for (int i = 0; i &lt; p1.pGrado; i++)<br/>             {<br/>                 termino t = new termino();<br/>                 t = termino.suma(p1.getTermino(i), p2.getTermino(i));<br/>                 p3.setTermino(i, t);<br/>             }<br/>         }<br/>         else<br/>         {<br/>             p3 = p1;<br/>             for (int i = 0; i &lt; p2.pGrado - 1; i++)<br/>             {<br/>                 termino t = new termino();<br/>                 t = termino.suma(p1.getTermino(i), p2.getTermino(i));<br/>                 p3.setTermino(i, t);<br/>             }<br/>         }<br/>         return (p3);<br/>     }<br/> }<br/> <br/> <br/> ----------------------------------------termino.class---------------------------------------------------<br/> <br/> package Biblioteca;<br/> <br/> <br/> public class termino<br/> {<br/>     private int pMantisa;<br/>     private int pExponente;<br/>     public termino()<br/>     {<br/>         pMantisa = 0;<br/>         pExponente = 0;<br/>     }<br/>     public termino(int M, int E)<br/>     {<br/>         pMantisa = M;<br/>         pExponente = E;<br/>     }<br/>     public void visualiza()<br/>     { System.out.print(pMantisa + &quot;x^&quot; + pExponente); }<br/>     static termino suma(termino T1, termino T2)<br/>     {<br/>         if (T1.pExponente == T2.pExponente)<br/>         {<br/>             termino T3 = new termino();<br/>             T3.pMantisa = T1.pMantisa + T2.pMantisa;<br/>             T3.pExponente = T1.pExponente;<br/>             return (T3);<br/>         }<br/>         else<br/>         {<br/>             System.out.println(&quot;Error: No se pueden sumar dos términos de distintos exponentes&quot;);<br/>             return (null);<br/>         }<br/>     }<br/> }<br/> <br/> <br/> <br/> <br/> </em> </strong> ¿how can i access the static method &quot;polinomio.suma(,)&quot;?<br/> <strong><em><br/> </em> </strong>Thu, 12 Nov 2009 01:28:47 Z2009-11-12T01:28:48Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/2316ef18-2d4a-4750-b7e5-1e4f6caf377dhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/2316ef18-2d4a-4750-b7e5-1e4f6caf377dNomadaPThttp://social.msdn.microsoft.com/Profile/en-US/?user=NomadaPTInstallation of MCMS<p>Hi,</p> <p>When i tried to install Microsoft Content Management Server it gives the message above!</p> <p>I've installed J# .NET Redistributable Package Version 2.0 but it says that needs 3.0 i can't find the 3.0 in the download area.</p> <p>Wich package sould i install in order to satisfy this requisite?</p> <p>Thanks in advance, Bruno Franco.</p> <p> </p> <p>Prerequisites</p> <p class=installwarning-heading>WARNING!</p> <p class=installwarning-description>You have chosen to perform a complete installation; however, the following component(s) cannot be installed due to dependencies on applications that are not installed on this computer:</p> <ul class=installwarning-list> <li>- Need Microsoft Visual Studio.NET 2002 (required by Developer Tools for Visual Studio.NET 2002) <li>- Need Microsoft Visual J# .NET Redistributable Package Version 3.0 (required by Site Manager and Site Stager)</li></ul> <p class=summary-heading>Microsoft Content Management Server SP1a Components</p>Fri, 02 Feb 2007 15:03:24 Z2009-11-02T12:04:13Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/595b32ae-487f-48ef-b174-16d0a939187ehttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/595b32ae-487f-48ef-b174-16d0a939187eTheDancingClownhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheDancingClown%windir%\java\trustlib on vistaI've encoutered this problem: I have a bunch of unregistered java classes, and I want to create wrappers for them in jscript - via the GetObject(&quot;java:classname&quot;) function. I've installed Microsoft Java VM and copied the *.class files to the %windir%\java\trustlib dicectory.<br/>All this was done on WinXP and on Vista. When I start the script with GetObject on XP everything works pretty fine, but Vista gives me some &quot;invalid syntax&quot;, &quot;unknown exceptions&quot; and those kinds of errors.<br/>Maybe, the trustlib for Vista is located somewhere else, as it was in NT? Or maybe the problem is with the compatibility of the old Microsoft JVM (I'm new to java, but, as far as I understand, it's not used since J# has appeared?) and Vista?<br/>Anyone knows?<br/><br/>PS well, i understand all this can be done the other way, but it's not the result I need, 'cause all this is a study project designed to demonstrate creating java object wrappers in jscript via the Microsoft JVM, so it has to be done this way, unfortunately.Sun, 25 Oct 2009 10:25:02 Z2009-10-27T12:53:18Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/129b49cb-eb09-4d49-9055-5606560fa6c8http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/129b49cb-eb09-4d49-9055-5606560fa6c8parinavv007http://social.msdn.microsoft.com/Profile/en-US/?user=parinavv00725 question "java" <table class=MsoNormalTable style="width:430.5pt;border-collapse:collapse" border=0 cellspacing=0 cellpadding=0 width=574> <tbody> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoBodyText style="line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The name of a Java program file must match the name of the class with the extension .java</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Two methods cannot have the same name in Java.</span></p> <h2 style="margin-left:0.5in;text-indent:-0.25in"><span style="font-size:11pt;font-family:'Arial','sans-serif'"><span>A.<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal">   </span> </span> </span> <span style="font-size:11pt;font-family:'Arial','sans-serif'">True</span></h2> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">False</span> </li> </ol></td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The modulus operator (%) can be used only with integer operands</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">False</span> </li> </ol></td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Declarations can appear anywhere in the body of a Java method.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">False</span> </li> </ol></td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">All the bitwise operators have the same level of precedence in Java.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">False</span> </li> </ol></td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">When X is a positive number, the operations x&gt;&gt;2 and x&gt;&gt;&gt;2 both produce the same result.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">If a=10 and b=15, then the statement x=(a&gt;b)?a:b; assigns the value 15 to x</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">In evaluating a logical expression of type</span></p> <p class=MsoNormal style="text-align:center;line-height:150%" align=center><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Boolean expression1 &amp;&amp; Boolean expression2</span></p> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Both the Boolean expressions are not always evaluated.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">In evaluating the expression (x == y &amp;&amp; a&lt;b) the boolean expression x==y is evaluated first and then a&lt;b is evaluated.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The <strong>default </strong> base is always required in the switch selection structure.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The <strong>break </strong> statement is required in the default case of a <strong>switch</strong> selection structure.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The expression (x ==y &amp;&amp; a&lt;b) is true if either x == y is true or a&lt;b is true</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">A variable declared inside the <strong>for </strong> loop control cannot be referenced outside the loop</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Java always provides a default constructor to a class</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">When present <strong>package </strong> must be the first noncomment statement in the file.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">The import statement is always the first noncomment statement in a Java program file</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Objects are passed to a method by use of call-by-reference</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">It is perfectly legal to refer to any instance variable inside of a <strong>static </strong> method.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">When we implement an interface method, it should be declared as <strong>public</strong> </span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False (abstract)<strong></strong> </span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">We can overload methods with differences only in their return type</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">It is an error to have a method with the same signature in both the super class and its subclass.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">A constructor must always invoke its super class constructor in its first statement.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Subclasses of an abstract class that do not provide an implementation of an abstract method, are also abstract.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Any class may be inherited by another class in the same package.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> <tr> <td style="padding:0in 5.4pt;width:397.8pt" width=530 valign=top> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">Any method in a super class can be overridden in its subclass.</span></p> <ol style="margin-top:0in" type=A> <li class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'">True</span> </li> </ol> <p class=MsoNormal style="text-align:justify;line-height:150%"><span style="font-size:11pt;line-height:150%;font-family:'Arial','sans-serif'"><span>      </span> B.<span>  </span> False</span></p> </td> </tr> </tbody> </table>Sat, 15 Aug 2009 19:11:16 Z2009-10-25T15:34:16Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ca8f0022-f27f-40d1-b533-fcf0c498f8dehttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ca8f0022-f27f-40d1-b533-fcf0c498f8deSomnath Panjahttp://social.msdn.microsoft.com/Profile/en-US/?user=Somnath%20PanjaHow add the (Runtime) script tag using JavaScript inside body tag which will be accessed by the Silverlight Object automaticall<p class=MsoNormal><font face="Times New Roman" size=3><span style="font-weight:bold;font-size:12pt">Q: How add the (Runtime) script tag of type=text/xaml using JavaScript inside body tag which will be accessed by the <font face=Arial color="#000080">Silverlight Object automatically</font>?</span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt">The Script written in blue color need to generate in runtime and need to be inserted inside the body tag…</span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt">So after adding the script dynamically the out put page should be</span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;Html&gt;</span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;Head&gt; &lt;/head&gt;</span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;Body&gt;</span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">            <font color="#3366ff"><span style="color:#3366ff">&lt;script type=text/xaml id=my script&gt;</span></font></span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" color="#3366ff" size=3><span style="font-size:12pt;color:#3366ff">                        &lt;ABC data=”abcd”&gt;</span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" color="#3366ff" size=3><span style="font-size:12pt;color:#3366ff">                        &lt;/ABC&gt;</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" color="#3366ff" size=3><span style="font-size:12pt;color:#3366ff">&lt;/Script&gt;</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;script type=text/JavaScript &gt;</span></font></p> <p class=MsoNormal style="margin-left:1in;text-indent:0.5in"><b><font face="Times New Roman" color=blue size=3><span style="font-weight:bold;font-size:12pt;color:blue">function</span></font></b> create_myscript_in_body_tag ( )</p> <p class=MsoNormal style="margin-left:1in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">{</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">                        <font color=red><span style="color:red">/* what should be my Code here?*/</span></font></span></font></p> <p class=MsoNormal style="margin-left:1in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">}</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">            create_myscript_in_body_tag( ); //---calling the function to create script tag inside body in runtime…</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;Script&gt;</span></font></p> <p class=MsoNormal style="margin-left:0.5in;text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt"> </span></font></p> <p class=MsoNormal style="text-indent:0.5in"><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;/body&gt;</span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt">&lt;Html&gt;</span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font style="background-color:#ffcc00" face="Times New Roman" size=3><span style="font-size:12pt">Even i have tried with the following codes....I failled....                                                                                </span></font></p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p><font face="Times New Roman" size=3><span style="font-size:12pt"><font color="#0000ff" size=2> <p>var</font><font size=2> myscript=</font><font color="#a31515" size=2>'&lt;script id=&quot;xxx&quot; type=&quot;text/xaml&quot; &gt;'</font><font size=2>;</p> <p>        myscript += </font><font color="#a31515" size=2>'&lt;Can </font><font color="#a31515" size=2>' Width=&quot;640&quot; Height=&quot;400&quot;&gt;'</font><font size=2>;</p> <p>             myscript += </font><font color="#a31515" size=2>' &lt;Can x:Name=&quot;plotarea&quot; Can.Top=&quot;0&quot; Can.Left=&quot;0&quot; &gt;'</font><font size=2>;</p> <p>             myscript += </font><font color="#a31515" size=2>' &lt;/Can&gt;'</font><font size=2>;</p> <p>       myscript += </font><font color="#a31515" size=2>' &lt;/Can&gt;'</font><font size=2>;</p> <p>myscript += </font><font color="#a31515" size=2>' &lt;/script&gt;'</font><font size=2>;</p> <p></p> <p></font><font color="#0000ff" size=2>function</font><font size=2> mine()</p> <p>{</font><font size=2></p> <p></font><font color="#0000ff" size=2>var</font><font size=2> hd1 = document.getElementsByTagName(</font><font color="#a31515" size=2>'body'</font><font size=2>)[0]; </p> <p></font><font color="#0000ff" size=2>var</font><font size=2> scr = document.createElement(</font><font color="#a31515" size=2>'script'</font><font size=2>); </p> <p>scr.type = </font><font color="#a31515" size=2>'text/xaml'</font><font size=2>; </p> <p>scr.text = myscript;</p> <p>hd1.appendChild(scr);</p> <p>}</p> <p> </p> <p>Then What is the Problem?</p> <p><font color="#000080" size=3>Silverlight Object is unable to find out the Script tag from the body part, using the id 'xxx'.................</font></p> <p><font color="#000080" size=3>Silverlight Object should access that xaml created at runtime inside body tag...</font></p> <p><font color="#000080" size=3></font> </p> <p><font color="#000080" size=3>Please Help............</font></p> <p><font size=3></font> </p> <p><font size=3></font> </p> <p> </p> <p> </p> <p> </p></font></span></font> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face="Times New Roman" size=3><span style="font-size:12pt"></span></font> </p> <p class=MsoNormal><font face=Arial size=2><span style="font-size:10pt;font-family:Arial"> </span></font></p>Mon, 25 Jun 2007 05:34:09 Z2009-10-22T11:23:37Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/597acce9-0050-43db-b2c0-c2f218c00b64http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/597acce9-0050-43db-b2c0-c2f218c00b64jeremygwahttp://social.msdn.microsoft.com/Profile/en-US/?user=jeremygwaVJS1282 error - cannot compileI get an error when trying to compile.<br/> <br/> Thanks in advance for all help.<br/> -jeremy<br/> <br/> my class starts like this:<br/> --------------------<br/> package le.l;<br/> <br/> <br/> import java.util.*;<br/> import java.lang.*;<br/> <br/> <br/> public class ly {<br/> <br/> <br/>     public Object []  FCN = null;<br/>     public String d;<br/>     public String m;<br/>     public String y;<br/>     public String fn;<br/>     public String cnbrs = &quot;&quot;;<br/>Sat, 17 Oct 2009 04:57:54 Z2009-10-20T21:51:40Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/9637a846-0dcf-4c7a-8c18-08ae07fd1c17http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/9637a846-0dcf-4c7a-8c18-08ae07fd1c17Spekberthttp://social.msdn.microsoft.com/Profile/en-US/?user=SpekbertRunescape Java ProblemI want to play runescape, so I downloaded Java, but I can't play<br/><br/>I can't see it in my advanced settings at internet-options..<br/><br/>when I play, i get this error:<br/>Java Plug-in 1.6.0_16<br/>Using JRE version 1.6.0_16-b01 Java HotSpot(TM) Client VM<br/>User home directory = C:\Users\bertiebol<br/>----------------------------------------------------<br/>c:   clear console window<br/>f:   finalize objects on finalization queue<br/>g:   garbage collect<br/>h:   display this help message<br/>l:   dump classloader list<br/>m:   print memory usage<br/>o:   trigger logging<br/>q:   hide console<br/>r:   reload policy configuration<br/>s:   dump system and deployment properties<br/>t:   dump thread list<br/>v:   dump thread stack<br/>x:   clear classloader cache<br/>0-5: set trace level to &lt;n&gt;<br/>----------------------------------------------------<br/>basic: Added progress listener: <a href="mailto:sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@d3d6f">sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@d3d6f</a><br/>network: Cache entry not found [url: <a href="http://world53.runescape.com/loader-27800467.jar">http://world53.runescape.com/loader-27800467.jar</a>, version: null]<br/>network: Connecting <a href="http://world53.runescape.com/loader-27800467.jar">http://world53.runescape.com/loader-27800467.jar</a> with proxy=DIRECT<br/>network: Connecting <a href="http://world53.runescape.com:80/">http://world53.runescape.com:80/</a> with proxy=DIRECT<br/>java.net.SocketException: Invalid argument: connect<br/> at java.net.PlainSocketImpl.socketConnect(Native Method)<br/> at java.net.PlainSocketImpl.doConnect(Unknown Source)<br/> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br/> at java.net.PlainSocketImpl.connect(Unknown Source)<br/> at java.net.SocksSocketImpl.connect(Unknown Source)<br/> at java.net.Socket.connect(Unknown Source)<br/> at sun.net.NetworkClient.doConnect(Unknown Source)<br/> at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/> at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/> at sun.net.www.http.HttpClient.&lt;init&gt;(Unknown Source)<br/> at sun.net.www.http.HttpClient.New(Unknown Source)<br/> at sun.net.www.http.HttpClient.New(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)<br/> at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)<br/> at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)<br/> at sun.plugin.PluginURLJarFileCallBack$2.run(Unknown Source)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)<br/> at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)<br/> at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)<br/> at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)<br/> at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)<br/> at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)<br/> at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)<br/> at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)<br/> at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)<br/> at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)<br/> at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)<br/> at sun.misc.URLClassPath$JarLoader.&lt;init&gt;(Unknown Source)<br/> at sun.misc.URLClassPath$3.run(Unknown Source)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at sun.misc.URLClassPath.getLoader(Unknown Source)<br/> at sun.misc.URLClassPath.getLoader(Unknown Source)<br/> at sun.misc.URLClassPath.getResource(Unknown Source)<br/> at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)<br/> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br/> at java.lang.ClassLoader.loadClass(Unknown Source)<br/> at java.lang.ClassLoader.loadClass(Unknown Source)<br/> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br/> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br/> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br/> at java.lang.Thread.run(Unknown Source)<br/>network: Cache entry not found [url: <a href="http://world53.runescape.com/loader-27800467.jar">http://world53.runescape.com/loader-27800467.jar</a>, version: null]<br/>network: Connecting <a href="http://world53.runescape.com/loader-27800467.jar">http://world53.runescape.com/loader-27800467.jar</a> with proxy=DIRECT<br/>network: Connecting <a href="http://world53.runescape.com:80/">http://world53.runescape.com:80/</a> with proxy=DIRECT<br/>network: Cache entry not found [url: <a href="http://world53.runescape.com/loader.class">http://world53.runescape.com/loader.class</a>, version: null]<br/>network: Connecting <a href="http://world53.runescape.com/loader.class">http://world53.runescape.com/loader.class</a> with proxy=DIRECT<br/>network: Connecting <a href="http://world53.runescape.com:80/">http://world53.runescape.com:80/</a> with proxy=DIRECT<br/>network: Cache entry not found [url: <a href="http://world53.runescape.com/loader/class.class">http://world53.runescape.com/loader/class.class</a>, version: null]<br/>network: Connecting <a href="http://world53.runescape.com/loader/class.class">http://world53.runescape.com/loader/class.class</a> with proxy=DIRECT<br/>network: Connecting <a href="http://world53.runescape.com:80/">http://world53.runescape.com:80/</a> with proxy=DIRECT<br/>basic: load: class loader.class not found.<br/>load: class loader.class not found.<br/>java.lang.ClassNotFoundException: loader.class<br/> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)<br/> at java.lang.ClassLoader.loadClass(Unknown Source)<br/> at java.lang.ClassLoader.loadClass(Unknown Source)<br/> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)<br/> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)<br/> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)<br/> at java.lang.Thread.run(Unknown Source)<br/>Caused by: java.net.SocketException: Invalid argument: connect<br/> at java.net.PlainSocketImpl.socketConnect(Native Method)<br/> at java.net.PlainSocketImpl.doConnect(Unknown Source)<br/> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br/> at java.net.PlainSocketImpl.connect(Unknown Source)<br/> at java.net.SocksSocketImpl.connect(Unknown Source)<br/> at java.net.Socket.connect(Unknown Source)<br/> at sun.net.NetworkClient.doConnect(Unknown Source)<br/> at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/> at sun.net.www.http.HttpClient.openServer(Unknown Source)<br/> at sun.net.www.http.HttpClient.&lt;init&gt;(Unknown Source)<br/> at sun.net.www.http.HttpClient.New(Unknown Source)<br/> at sun.net.www.http.HttpClient.New(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)<br/> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)<br/> at java.net.HttpURLConnection.getResponseCode(Unknown Source)<br/> at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)<br/> at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)<br/> at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)<br/> at java.security.AccessController.doPrivileged(Native Method)<br/> ... 7 more<br/>Exception: java.lang.ClassNotFoundException: loader.class<br/><br/><br/>anybody know what to do?Sun, 18 Oct 2009 15:05:04 Z2009-10-18T15:05:04Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/21d9688f-ae5f-4f6b-b963-fbbda24c0fe2http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/21d9688f-ae5f-4f6b-b963-fbbda24c0fe2gravinhttp://social.msdn.microsoft.com/Profile/en-US/?user=gravinJSharpCodeProvider ???<p align=left><font face=Arial color="#000080" size=2>Hi Guys,</font></p> <p align=left><font color="#000080">    I have been asked to use</font> <font color="#008080" size=2>JSharpCodeProvider <font color="#000000"><font color="#000080">to generate J# code. i know</font> <font color="#008080" size=2>CSharpCodeProvider, <font color="#008080" size=2>VBCodeProvider <font color="#000000"><font color="#000080">but could not able to get</font> </font><font color="#008080">JSharpCodeProvider. </font><font color="#333399">I could not able to get that in my code-i mean i am not getting Microsoft.VJSharp (or) Microsoft.JSharp (?). do i have to add any assembly in the reference? i searched in NET component but could not able to find any Microsoft.VJ....</font></font></font></font></font></p> <p align=left><font color="#333399">    so what should i do to get Microsoft.VJSharp ?</font></p> <p align=left><font size=2><font size=2><font color="#333399" size=2>    please guide me.</font></font></font></p> <p align=left><font color="#333399">Thanks!</font></p> <p align=left><font color="#008080" size=2><font color="#000000"><font color="#008080" size=2><font color="#008080" size=2>    </p></font></font></font></font>Wed, 09 Jul 2008 10:59:48 Z2009-10-12T16:52:03Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/66358d71-1690-4464-b2e7-7be026f18f51http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/66358d71-1690-4464-b2e7-7be026f18f51AWJShttp://social.msdn.microsoft.com/Profile/en-US/?user=AWJSGetting cookies using System.Net.Webclient class<div class=codeseg></div>Subject almost says it all, im trying to get the appropriate cookies for the webpage im loading. The webpage source loads fine, but there doesn't seem to be a way to control/view/use the cookies i should be getting with the page. This makes it impossible for the program to visit pages where you need to be logged in to view. The login code is posted below, with different URL's that is:<br><br><br>System.Net.WebClient webcli = new System.Net.WebClient();<br>        System.Collections.Specialized.NameValueCollection namcol = new System.Collections.Specialized.NameValueCollection();<br>        System.Uri uri = new System.Uri(&quot;http://www.example.com/login2.php&quot;);<br>        namcol.Add(&quot;v&quot;,&quot;2&quot;);<br>        namcol.Add(&quot;login&quot;,loginBox.get_Text());<br>        namcol.Add(&quot;pass&quot;, passBox.get_Text());<br>        ubyte[] response = webcli.UploadValues(uri, &quot;POST&quot;, namcol);<br><br>        listBox1.get_Items().Clear();<br>        listBox1.get_Items().Add(System.Text.ASCIIEncoding.get_ASCII().GetString(response));<br>        Showsource(response);<br><br>Showsource does just that, show the source. This all works and i can verify that it DOES login as long as the values in namcol are correct. The only problem is that its impossible to get any further without the cookies. How do i get them? And how do i use them to verify that im logged in?<br><br>If anyone knows or has a hint/tip/lead, don't hesitate to post. <img height=19 alt=Smile src="http://forums.microsoft.com/MSDN/emoticons/emotion-1.gif" width=19><br>Tue, 18 Mar 2008 20:52:09 Z2009-10-07T09:41:59Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/3fbac9ac-c43a-4c7f-9fee-1bc1de2c6fc5http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/3fbac9ac-c43a-4c7f-9fee-1bc1de2c6fc5agust rushhttp://social.msdn.microsoft.com/Profile/en-US/?user=agust%20rushWhy is Visual J# is not included in Visual Studio 2010 ?I heard that Visual J# is not included in Visual Studio 2008 and will not be included in future versions of Visual Studio . Is this true and why Microsoft made this kind of decision ?<br/> <br/> Thank you ! Wed, 15 Jul 2009 04:18:43 Z2009-10-05T01:40:46Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/9077f17a-4c6d-4d83-8d21-651462be3a5ehttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/9077f17a-4c6d-4d83-8d21-651462be3a5eRB Devhttp://social.msdn.microsoft.com/Profile/en-US/?user=RB%20DevAdodb.command fails<span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>Using visual studio 2008, I have my default.aspx calling a jscript file which can run adodb.recordset but not adodb.command.<br/>Error message: microsoft jscript runtime error automation server can't create object scripting.filesystemobject<br/>when line code is reached var<span style="color:#000000;font-size:x-small"> cmd = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="color:#000000;font-size:x-small"> ActiveXObject(</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;ADODB.Command&quot;</span></span><span style="color:#000000;font-size:x-small">);    see code below:</span><br/><br/><br/>function</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> ConnectDatabase(){ </span><span style="color:#008000;font-size:x-small"><span style="color:#008000;font-size:x-small">//Database Connection</span></span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>var</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> objdb=</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> ActiveXObject(</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;ADODB.Connection&quot;</span></span><span style="font-size:x-small">);</span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>var</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> cs=</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;Provider=SQLOLEDB;Data Source=HQDW1;Initial Catalog=WorkflowData;User ID=Wkflow;Password=mhm4reports&quot;</span></span><span style="font-size:x-small">; <p>objdb.Mode = 3;</p> <p>objdb.Open(cs);</p> </span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>return</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small">(objdb); <p>}</p> </span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>function</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> TestConn(){</span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>var</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> dbConnection; <p>dbConnection=ConnectDatabase();</p> </span></p> <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>var</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> cmd = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> ActiveXObject(</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;ADODB.Command&quot;</span></span><span style="font-size:x-small">); <p> </p> <p> </p> <p>cmd.ActiveConnection = dbConnection;</p> <font size=2> <p>cmd.CommandText =</p> </font></span></p> <p><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;dbo.test&quot;</span></span><span style="font-size:x-small">; <p>cmd.CommandType = adCmdStoredProc;</p> <font size=2> <p>params.Append (cmd.CreateParameter(</p> </font></span></p> <p><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;@col2&quot;</span></span><span style="font-size:x-small">, adVarChar, adParamInput, 50));<font size=2> <p>params(</p> </font></span></p> <p><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;@col2&quot;</span></span><span style="font-size:x-small">) = </span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;rock&quot;</span></span><span style="font-size:x-small">; <p>cmd.Execute;</p> <p> </p> <p>}</p> </span></p>Wed, 30 Sep 2009 14:51:34 Z2009-09-30T14:51:34Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/35e9d2a1-9034-4d49-9116-8f83cde9078chttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/35e9d2a1-9034-4d49-9116-8f83cde9078ckaspariohttp://social.msdn.microsoft.com/Profile/en-US/?user=kasparioPreventing vjsharp compiler to be invoked?Hi,<br/><br/>To make a long story short, I was aked to package an already existing web site into a Visual Studio (2008) WebSite project. This web site has mainly asp 3.0 files (.asp) and .NET files (mainly .aspx and .vb and some ascx and .dll in the /bin folder). Things have been going rather smoothly so far but now, I'm stuck with a particular forder that has some java .class in it. The project won't compile with those and I get the error:<br/><br/>The CodeDom provider type &quot;Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; could not be located.  <br/><br/>Now, I guess I could install VJ# but I don't see the point in doing this since those .class files are meant to be sent to the client (it's a java menu) and they don't need to be compiled in the project in the first place...<br/><br/>So my question is: is there a way to prevent the .class from triggering the vjsharp compiler? Something like &quot;ignore all .class files&quot;. Please take notice that the projet is a WebSite project and not a WebApplication project (if it makes any difference for that situation).<br/><br/>I kow it's a long shot to ask how NOT to use j# in a j# forum but I guess if it can be done, one of you might most likely be aware of how to do it.<br/><br/>Thank you very much.Mon, 28 Sep 2009 10:12:05 Z2009-10-02T23:39:57Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5ddeb686-b6c5-4649-aa8c-881efa555196http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5ddeb686-b6c5-4649-aa8c-881efa555196Sairam2525http://social.msdn.microsoft.com/Profile/en-US/?user=Sairam2525How to run .jar file from ASP.NET application? Error?<span style="font-family:Arial">Hi<br/><br/>Could anyone let me know what is wrong with the below code.<br/>It is not displaying any message.<br/><br/>I have a button click event which runs .jar file from C#.NET application.<br/>//Button Click Event for running .jar file<br/>protected void btnRunJarApplication_Click(object sender, EventArgs e)<br/>{<br/>String strJarFilePath = &quot;\\testHelloWorldNew.jar&quot;;<br/><br/>Process proc = new Process();<br/>try<br/>{<br/>proc.StartInfo.FileName = &quot;java&quot;;<br/>proc.StartInfo.Arguments = &quot;-jar &quot; + strJarFilePath;<br/>proc.StartInfo.CreateNoWindow = false;<br/>proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;<br/>proc.StartInfo.UseShellExecute = false;<br/><br/>DirectoryInfo currentDir = new DirectoryInfo(Environment.CurrentDirectory);<br/>proc.StartInfo.WorkingDirectory = currentDir.FullName;<br/><br/>proc.Start();<br/>//give Processor 5sec to close<br/>proc.WaitForExit(5000);<br/>}<br/>catch (Exception ex)<br/>{<br/>if (!proc.Start())<br/>throw new Exception(&quot;Failed to start Pull process&quot;);<br/><br/>}<br/>}<br/><br/><br/>I have the following questions:<br/>(1). testHelloWorldNew.jar file is displaying the &quot;Welcome to HelloWorld!&quot; from Command Prompt. How can i either capture this message or the status of the execution of .jar file??<br/>(2).How to make sure this process is executing correctly and closing?<br/><br/>Can anybody throw some light on this?<br/><br/>Thanks. </span>Thu, 17 Sep 2009 05:51:40 Z2009-09-27T21:40:04Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ee287750-29fb-4a6f-ae0b-8cb8ad8b2df8http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ee287750-29fb-4a6f-ae0b-8cb8ad8b2df8DavidThi808http://social.msdn.microsoft.com/Profile/en-US/?user=DavidThi808J# package errors on Windows 7Hi;<br/><br/>We have a major problem with the J# redist package on 64-bit operating systems. It tries to run and then does nothing. I understand the problem is that it was written for 32-bit O/Ses only, but now that Windows 7 is shipping, this is a major problem.<br/><br/>1) Is there any easy way to edit the product.xml file to tell it to do nothing if it's a 64-bit O/S? That at least would let our install continue and our .MSI in that case will pop up a warning and offer to take them to the J# download page.<br/><br/>2) Can the J# package be upgrade to support Windows 7? I think this is a fair request as the product is still supported by Microsoft and it is broken for Vista and Windows 7.<br/><br/>thanks - dave<hr class="sig">Laugh your ____ off funny - <a href="http://www.windwardreports.com/film.htm">Cubicle Wars</a>Fri, 25 Sep 2009 17:28:39 Z2009-09-27T21:23:00Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/4258ba42-0e27-42c2-a1dc-ef6d25eba789http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/4258ba42-0e27-42c2-a1dc-ef6d25eba789satishsv74http://social.msdn.microsoft.com/Profile/en-US/?user=satishsv74How to run java jar file in .net application<p align=left><font face=Arial size=2>Hello to every one</font></p> <p align=left>                     I create one application in java technology.It works fine.But problem is, to run the (java application) jar file in .net application.I tried, but i didn't get the solution.Is there anybody know the way please help me, I eagerly waiting for your quick reply...........</p>Thu, 29 May 2008 05:59:41 Z2009-09-17T14:15:44Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/d9d71673-3bf1-4627-b87e-ba13bbac2d72http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/d9d71673-3bf1-4627-b87e-ba13bbac2d72PieterTheGreathttp://social.msdn.microsoft.com/Profile/en-US/?user=PieterTheGreatTriggering Windows Password Filters?Hi All,<br/><br/>I've run into a challenge, and I was hoping that perhaps someone could help me. <br/><br/>Due to certain system constraints (old code), I have to force all registered local password filters to run from J#.<br/><br/>The fun part is that this is a web app, so the machine it is running on is not necessarily logged in as the user that I wish to change. <br/><br/>Basically, I am provided with the user's name and both their old and new password, which is what password filters use to take. I don't even need to change the user's password using the server, I just need to get the registered password filters to trigger with the parameters it normally takes. <br/><br/>I am quite certain that, unless I made a mistake, the J# methods for ActiveDirectory do not trigger password filter, is there another way?<br/><br/>Regards,<br/>Pieter<br/><br/>Preferably<br/><br/>Fri, 04 Sep 2009 17:16:49 Z2009-09-04T17:16:51Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b53b676b-2088-4c98-8c60-6df75cb2462fhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b53b676b-2088-4c98-8c60-6df75cb2462fJan Friberghttp://social.msdn.microsoft.com/Profile/en-US/?user=Jan%20FribergWhat happened to the JAVA language in VS 2008In VS 2005 express I found a specific JAVA language issue. In VS 2008 I only find support for the languages C++ C# and Basic.<br/>What if I wan't to learn the JAVA language?<hr class="sig">jfriSat, 22 Aug 2009 20:55:55 Z2009-08-26T16:32:37Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/6f987caf-9b39-4d91-8449-5d63c5d7d5e5http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/6f987caf-9b39-4d91-8449-5d63c5d7d5e5Diego Quereshttp://social.msdn.microsoft.com/Profile/en-US/?user=Diego%20QueresError row when i update resultset using JAVA JDBC-ODBC Bridge e Microsoft Access<p>When i execute this code:</p> <pre> PreparedStatement ps = getConexao().prepareStatement( &quot;select * from customers&quot;, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE ); ResultSet rs = ps.executeQuery(); while (rs.next()) { rs.updateString(3, empresa.getRazaoSocial()); rs.updateRow(); }</pre> <p><br/><br/>error code: 0<br/>occurs the folow error:<br/><br/>java.sql.SQLException: [Microsoft][Driver ODBC para Microsoft Access]Error in row<br/>        at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5271)<br/>        at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4171)</p>Mon, 24 Aug 2009 22:35:16 Z2009-08-24T22:35:17Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/66333b14-62ae-4778-b0da-ced6f893b435http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/66333b14-62ae-4778-b0da-ced6f893b435masterkajohttp://social.msdn.microsoft.com/Profile/en-US/?user=masterkajoHow can I get the values of DataFields of a DetailsView in J# ?<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="" lang=EN-GB><span style="font-size:small"><span style="font-family:Times New Roman">String Text = DetailsView1.get_ID().ToString();</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="" lang=EN-GB><span style="font-size:small"><span style="font-family:Times New Roman">With this syntax I get the name of the instance: “DetailsView1”</span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="" lang=EN-GB><span style="font-size:small"><span style="font-family:Times New Roman">I need the syntax<span style="">  </span>in j# to get the value of a DataField of DetailsView1, because I need the String of the last DataField for another table. </span></span></span></p>Fri, 21 Aug 2009 14:14:27 Z2009-08-21T14:14:27Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/fce2f54c-47b6-458f-8631-754d1952e706http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/fce2f54c-47b6-458f-8631-754d1952e706Srini_Kattahttp://social.msdn.microsoft.com/Profile/en-US/?user=Srini_KattaRunning MSMQ application on Linux serverI need to run a java application on a Linux server, and I need to send messages to MSMQ queue on a windows server from that application. Is there a library available for Linux platform that I can use to build such application? I am planning to use Java JNI to run C++ code so that I can use the MSMQ C library provided by Microsoft for accessing MSMQ services. It is possible to do this if I run the java app on windows server, but Can I do this from a Linux server, how do I configure MSMQ on Linux server? What are the issues involved in sending messages to an MSMQ queue on Windows server from a Linux server? Apprecite any help on this.<br/><br/>Srinivas<hr class="sig">SriniMon, 17 Aug 2009 15:03:12 Z2009-08-25T20:51:37Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/fb90cfc8-608b-4ce6-9ed2-b55870582d43http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/fb90cfc8-608b-4ce6-9ed2-b55870582d43txdvhttp://social.msdn.microsoft.com/Profile/en-US/?user=txdvVisual #J 2005 Express Edition and Visual Studio 2008Hello,<br>I Just installed visual studio 2008, but i miss J# very much, so i would like to install J# 2005 Express Edition.<br>The only question that i have: will the instalation of J# break the vs2008 installation?<br>Wed, 05 Dec 2007 10:05:12 Z2009-08-11T22:59:43Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/8947d497-9c03-471b-b789-8c7bdf84c316http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/8947d497-9c03-471b-b789-8c7bdf84c316Rob Ainscoughhttp://social.msdn.microsoft.com/Profile/en-US/?user=Rob%20AinscoughConverting Java to VB or C# assistance...I've tried to use Java to C# or VB converters but they don't work very well as they seem to just assume everythings a unknow Object.<br/><br/>I need to convert this Java code to either C# or VB (VS 2008 platform using .NET 3.5) in a web applications (ASPX using VB.NET code behind). <pre lang=x-js>String post = &quot;https://www.somewebsite.com/2?xml=&quot; + URLEncoder.encode(xml); URL url = new URL(post); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput(true); </pre> <pre lang=x-js>InputStream in = connection.getInputStream(); BufferedReader inBuf = new BufferedReader(new InputStreamReader(in)); StringBuffer xmlResponse = new StringBuffer(); String str = inBuf.readLine(); while (str != null) { xmlResponse.append(str); str = inBuf.readLine(); } System.out.println(&quot;Response: &quot; + xmlResponse.toString()); </pre> <br/>Thanks, Rob.Wed, 24 Jun 2009 23:14:55 Z2009-08-08T15:11:12Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5b49cd78-5fd4-4549-be5d-0297ebb9ad57http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5b49cd78-5fd4-4549-be5d-0297ebb9ad57vgstudioshttp://social.msdn.microsoft.com/Profile/en-US/?user=vgstudiosprograms and runescape<p>Hello, I have just got into programming and have made a lot of... basic programs and I wanted to know of some good places that will help me out with the coding and other stuff...<img src="http://forums.microsoft.com/MSDN/images/emoticons/computer.gif"></p> <p> </p> <p> </p> <p>(by the way... I use visual C# 2005 express edition)</p> <p>also if any one knows how to make a runescape privet server... that would be very useful</p> <p> </p> <p> </p>Fri, 04 May 2007 23:10:05 Z2009-08-06T09:55:02Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/cc405250-fb7a-460f-966b-b27aa4b119a4http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/cc405250-fb7a-460f-966b-b27aa4b119a4bigpeteyhttp://social.msdn.microsoft.com/Profile/en-US/?user=bigpeteyneed help with runescape java<p>i have the site sponsored client window to the game Runescape by Jagex. When I open this file i can get all the way to the login, login and then after the game (java based web-browser game) it comes up with the error:</p> <p>This program has performed an illegal operation and will be shut down.</p> <p>RUNESCAPE caused an invalid page fault in module JIT.DLL at 017f:7c319f2.</p> <p>Followed by some register information. I have no idea wat this means but i cannot play the game in the client window and this frustrates me. please help, btw i have slightly altered the security (ie accepting some scripts etc.) in vain to allow it to play, please help me.</p> <p> </p>Mon, 09 Oct 2006 09:10:27 Z2009-08-06T09:48:43Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/2dcbdfe2-e792-4067-a724-42d082490a8bhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/2dcbdfe2-e792-4067-a724-42d082490a8bslimebaghttp://social.msdn.microsoft.com/Profile/en-US/?user=slimebagrunescape dont work<p align=left><font face=Arial size=2></font> </p>i started playing runescape 8 months ago but last month on november runescape started not to work. the bar loaded i typed my user in i started playing after 5 seconds the pc freezes then a bar came up saying (windows memory too low). so i checked if i have java and it said i have a realy old version so i instilled the new one but now when i play runescape the bar loading bar comes up and it gets up to 20% then the pc freezes and the internet shuts down. i dont know if the new java instillation has worked but i cant even type my name in now its gone worse after getting the new java. if you know how to fix this please help me!Tue, 08 Jan 2008 17:15:20 Z2009-08-06T09:44:40Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/79d26927-ddcb-4306-afff-47152232d76chttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/79d26927-ddcb-4306-afff-47152232d76cmsqueshttp://social.msdn.microsoft.com/Profile/en-US/?user=msques.NET 4.0 support to run J# application<p style="background:white;margin-left:-0.25in"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'"> Does anybody encounter the following error when trying to run some Visual J# application in WinXp with .NET4.0 framework and Visual J# runtime 2.0 runtime installed? Thanks!<br/><br/>Caught an unexpected exception:<br/>System.IO.FileNotFoundException: Could not load file or assembly 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at CORBA.ORB.Init(String[] args, IDictionary props) at BankServerCSharp.Main(String[] args)</span></p> <p style="background:white"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\M<br/>icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo<br/>gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus<br/>ion!EnableLog].</span></p> <p style="background:white"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">Press &lt;Enter&gt; to exit...</span></p> <p style="background:white"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">  </span></p> <p style="background:white"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">  After turning on the binding log, below is what I can see from the binding log.<br/><br/>Caught an unexpected exception:<br/>System.IO.FileNotFoundException: Could not load file or assembly 'vjslib, Versio<br/>n=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its de<br/>pendencies. The system cannot find the file specified.<br/>File name: 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f<br/>11d50a3a'<br/>   at CORBA.ORB.Init(String[] args, IDictionary props)<br/>   at BankServerCSharp.Main(String[] args)</span></p> <p style="background:white;margin-left:12pt"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">=== Pre-bind state information ===<br/>LOG: User = DPG11120\Administrator<br/>LOG: DisplayName = vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b<br/>03f5f7f11d50a3a<br/> (Fully-specified)<br/>LOG: Appbase = <a>file:///C:/Borland/VisiBroker/VisiNet/examples/Corba/Basic/Server</a><br/>/bin/Debug/<br/>LOG: Initial PrivatePath = NULL<br/>Calling assembly : Borland.Janeva.Runtime, Version=8.0.1.4, Culture=neutral, Pub<br/>licKeyToken=f451cb1407ec555e.<br/>===<br/>LOG: This bind starts in default load context.<br/>LOG: Using application configuration file: C:\Borland\VisiBroker\VisiNet\example<br/>s\Corba\Basic\Server\bin\Debug\BankServerCSharp.exe.Config<br/>LOG: Using host configuration file:<br/>LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v4<br/>.0.20506\config\machine.config.<br/>LOG: Post-policy reference: vjslib, Version=1.0.5000.0, Culture=neutral, PublicK<br/>eyToken=b03f5f7f11d50a3a<br/>LOG: Attempting download of new URL <a>file:///C:/Borland/VisiBroker/VisiNet/exampl</a><br/>es/Corba/Basic/Server/bin/Debug/vjslib.DLL.<br/>LOG: Attempting download of new URL <a>file:///C:/Borland/VisiBroker/VisiNet/exampl</a><br/>es/Corba/Basic/Server/bin/Debug/vjslib/vjslib.DLL.<br/>LOG: Attempting download of new URL <a>file:///C:/Borland/VisiBroker/VisiNet/exampl</a><br/>es/Corba/Basic/Server/bin/Debug/vjslib.EXE.<br/>LOG: Attempting download of new URL <a>file:///C:/Borland/VisiBroker/VisiNet/exampl</a><br/>es/Corba/Basic/Server/bin/Debug/vjslib/vjslib.EXE.</span></p> <p style="background:white;margin-left:12pt"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'">Press &lt;Enter&gt; to exit...<br/><br/>It looks like after loading the &quot;c:\WINDOWS\Microsoft.NET\Framework\v4.0.20506\config\machine.config&quot;, it points to &quot;Post-policy reference: vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;. However, I have checked the machine.config file, it does not have any setting for this vjslib. It makes me more confused. Where this Post-policy reference comes in?</span></p> <p style="background:white"><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'"> </span></p>Mon, 20 Jul 2009 08:20:21 Z2009-07-31T08:32:19Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/c8c1d7aa-b44b-4c04-b138-0118860e5052http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/c8c1d7aa-b44b-4c04-b138-0118860e5052Buzurg in Jeanzhttp://social.msdn.microsoft.com/Profile/en-US/?user=Buzurg%20in%20JeanzUnicode support in java.util.zipHi,<br/><br/>I wrote a code in C# to zip files using java.util.zip. It was working fine until it encountered some files with Unicode characters in name. Is Unicode not supported in java.util.zip or am I missing something. Does this have to do anything with codepages installed in Windows?Wed, 29 Jul 2009 12:31:16 Z2009-07-29T12:31:17Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/859c5fc2-6799-42dd-b13a-957542145159http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/859c5fc2-6799-42dd-b13a-957542145159Buffy13http://social.msdn.microsoft.com/Profile/en-US/?user=Buffy13J# compile error with PixelGrabber<pre>I'm trying to compile my j# application, but I get the following error: <strong><br/> Cannot find constructor 'java.awt.image.PixelGrabber(System.Drawing.Image, int, int, int, int, int[], int, int)'</strong> <br/> What am I doing wrong? This is my code:<br/> <br/> <br/> Image picture;<br/> PixelGrabber pg; picture = new Bitmap(txtUpload.get_Text()); int[] pixels; pixels = new int[picture.get_Width()*picture.get_Height()]; pg = new PixelGrabber(picture, 0, 0, 0, 0,pixels,0,0);</pre>Mon, 27 Jul 2009 11:51:00 Z2009-07-27T11:51:01Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/0649c67f-d176-4117-ac37-185821312452http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/0649c67f-d176-4117-ac37-185821312452Synczahttp://social.msdn.microsoft.com/Profile/en-US/?user=SynczaLate system - Comparing time!Basically im coding a program that will check if you are late. <br/><br/>Cutoff time being 8:00 AM.<br/><br/>Currently the time is in the form of a string for database purposes.<br/><br/>Im not sure if i should change it to an int to compare maybe? <br/><br/>Seeing as the cutoff time is 0800 hours maybe i should take just the &quot;08&quot; and compare that.. im really unsure atm.<br/><br/>But basically i want to compare current time with the cutoff time. If the current time is past cutoff, then I will assign that person as late.<br/><br/>Any help appreciated.<br/><br/>ZacSat, 25 Jul 2009 09:17:55 Z2009-07-25T18:22:21Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/0d25c5d2-5de0-4814-914f-e6b562479b85http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/0d25c5d2-5de0-4814-914f-e6b562479b85Mintaohttp://social.msdn.microsoft.com/Profile/en-US/?user=MintaoApplication encounter run-time error with .NET4.0 framework and Visual J# runtime 2.0 runtime installed<p>Hi, Dear all,<br/> Does anybody encounter the following error when trying to run some Visual J# application in WinXp with .NET4.0 framework and Visual J# runtime 2.0 runtime installed? Thanks!<br/><br/>Caught an unexpected exception:<br/>System.IO.FileNotFoundException: Could not load file or assembly 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'vjslib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at CORBA.ORB.Init(String[] args, IDictionary props) at BankServerCSharp.Main(String[] args)</p> <p>WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\M<br/>icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo<br/>gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus<br/>ion!EnableLog].</p> <p>Press &lt;Enter&gt; to exit...</p>Mon, 13 Jul 2009 10:09:15 Z2009-07-20T06:59:08Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b8d2d448-531c-45e1-93ce-d1e31958a3c4http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b8d2d448-531c-45e1-93ce-d1e31958a3c4pacopacohttp://social.msdn.microsoft.com/Profile/en-US/?user=pacopacohow can i initialize ubyte[] key from string for triple des crypto classhi,<br/>I need to inizialize de ubyte[] key from string (in j#) how can i do it?<br/>Tue, 14 Jul 2009 15:56:43 Z2009-07-14T15:56:43Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/15b5ddd1-073a-4901-bdb1-3fab00218be6http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/15b5ddd1-073a-4901-bdb1-3fab00218be6Fata1Attackhttp://social.msdn.microsoft.com/Profile/en-US/?user=Fata1AttackThread sleepI have a method stopWhining: this should stop outputting &quot;Hello World!&quot; for a millis amount of time. But also the compiler says this.sleep(millis) is wrong. Why? How can I make this method do what I want?<br/> <br/> <br/> public class Main {<br/> <br/>     public static void main(String[] args) throws InterruptedException {<br/>     <br/>         Player p1 = new Player();<br/>         p1.stopWhining(10000);<br/>     }<br/> <br/> }<br/> <br/> <br/> public class Player implements Runnable{<br/> <br/>     static String text=&quot;Hello World!&quot;;<br/>     <br/>     public Player(){<br/>         <br/>         Thread thread = new Thread(this);<br/>         thread.start();<br/>         <br/>     }<br/>     <br/>     public void run(){<br/>         <br/>    while(true){    <br/>             <br/>             System.out.println(text);<br/>         <br/>         }<br/>         <br/>     }<br/>     <br/>     public void stopWhining(int millis) throws InterruptedException{<br/>         <br/>         this.sleep(millis);<br/>         <br/>     }<br/>     <br/> }<br/> <br/> <br/> The compiler keeps telling me that the current running thread is always main. So Thread.sleep(millis) won't work.<br/>Mon, 13 Jul 2009 18:28:15 Z2009-07-13T18:28:15Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/86d09798-723f-4296-9114-0098ca8481f5http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/86d09798-723f-4296-9114-0098ca8481f5Rich.Wengerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Rich.WengerClient Side JavaScript and ListboxesHi,<br/><br/>I'm developing a web form in Visual Studio using C# and I've come across a situation where I need a little help with some client side scripting.  The page has a Listbox1 and a ListBox2 and I would like only one listbox to have a selected item at a time.  That is to say if the user selects an item in Listbox1 and then selects an item in ListBox2 then the item in Listbox1 would be unselected.  Any help greatly appreciated.Tue, 28 Apr 2009 12:40:16 Z2009-07-13T02:25:07Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/3c720819-024e-46f1-a248-0d382b06d64ahttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/3c720819-024e-46f1-a248-0d382b06d64aMandyPandy28http://social.msdn.microsoft.com/Profile/en-US/?user=MandyPandy28 error that says java.net.sockettimeoutexception:read timed outWhen I try to log into a chatroom on another website, I get and error that says java.net.sockettimeoutexception:read timed out. Then it won't let me in. How do I fix that?Fri, 03 Jul 2009 07:07:33 Z2009-07-03T07:07:33Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5b42f925-d6b1-45a9-acc9-6379b26b6909http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/5b42f925-d6b1-45a9-acc9-6379b26b6909DavidThi808http://social.msdn.microsoft.com/Profile/en-US/?user=DavidThi808Error location 18 One of our customers is getting the following error. Any idea what it means?<br/><br/> <pre>An unhandled exception of type 'java.lang.RuntimeException' occurred in WindwardReports.dll Additional information: Error location 18 </pre> <br/>thanks - dave<hr class="sig">Cubicle Wars - www.windwardreports.com/film.htmWed, 01 Jul 2009 19:23:45 Z2009-07-01T19:23:45Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ec72b0b3-49fe-4058-bfb2-f9bea5e36ee9http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/ec72b0b3-49fe-4058-bfb2-f9bea5e36ee9Alissa_IEhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alissa_IEAdvantages of J#?<p>Hi,</p> <p>I know I can read the library and different articles on the net, I heard about J# years ago, but can any enthousiast user tell me from experience, what the advantage of J# is?</p> <p>Since it is still supported.... and seems usefull.</p>Tue, 16 Jun 2009 21:35:01 Z2009-06-22T03:07:08Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b6cf961d-5c04-437b-bd1a-dcc4c05934f3http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/b6cf961d-5c04-437b-bd1a-dcc4c05934f3Binoy R Bhttp://social.msdn.microsoft.com/Profile/en-US/?user=Binoy%20R%20BAJAX Control Toolkit Error-Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b<p align=left><font face=Arial size=2>Hello,</font></p> <p align=left> </p> <p align=left>While I was compiling the AJAX Control tookit, I am getting the following error. <br></p> <p align=left><em><font color="#ff0000">Error 1 Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\Program Files\Microsoft ASP.NET\ASP.NET 3.5 AJAX Extensions\TemplateVSI\TemplateVSI.csproj 43 5 TemplateVSI</font><br></em></p> <p>Has anyone gotten this to work?<br></p> <p align=left>thanks</p> <p align=left>Binoy</p>Fri, 21 Sep 2007 13:56:00 Z2009-06-10T06:42:10Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/81d24e1f-8486-48fa-8e13-633cf6ec0223http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/81d24e1f-8486-48fa-8e13-633cf6ec0223DevenTankhttp://social.msdn.microsoft.com/Profile/en-US/?user=DevenTankproblem with MessageBox() i.e. it will allow to open different windows thought messagebox poped up.I have used MessageBox() in following function and problem is that when MessageBox() calls user get message with Yes no and cancel although user will able to open another dialog which should not possible in MessageBox()<br/> int showQuestion(HINSTANCE hinst, HWND hw, UINT id_title, UINT id_text, ...) {<br/>     WCHAR *text, *title;<br/>     va_list args;<br/>     va_start(args, id_text);<br/>     title = formatString(hinst, id_title);<br/>     text = vformatString(hinst, id_text, args);<br/>     va_end(args);<br/>     int code = <br/>     MessageBox(NULL, text, title, MB_YESNOCANCEL|MB_ICONQUESTION);<br/>     if(code == IDYES) return 1;<br/>     else if(code == IDNO) return 0;<br/>     return -1;<br/> }<br/> can you please guide me what is problem in MessageBox() which doesn't work as modal dialog message.Mon, 08 Jun 2009 05:44:41 Z2009-06-08T05:44:41Zhttp://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/f4e97f4c-48ec-47ba-859b-ae490ebf7073http://social.msdn.microsoft.com/Forums/en-US/visualjsharpgeneral/thread/f4e97f4c-48ec-47ba-859b-ae490ebf7073DevenTankhttp://social.msdn.microsoft.com/Profile/en-US/?user=DevenTankAfxMessageBox() does not show focus on YES button , Do you know reason?I have used following function in my vc++ code.<br/> f(AfxMessageBox(&quot;Do you want to save changes&quot;,MB_YESNOCANCEL , NULL)!=IDYES)<br/> {<br/>            return;<br/> }<br/> <br/> can you please let me know the reason why this sentense doesnt set focus on YES button?<br/> strange thing is that we are able to see focus on YES button in debug mode by pressing F5 key.<br/> <br/> please guide me.<br/>Thu, 04 Jun 2009 07:06:50 Z2009-06-04T07:06:51Z