<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=TestMeInstructions</id>
	<title>TestMeInstructions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=TestMeInstructions"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=TestMeInstructions&amp;action=history"/>
	<updated>2026-04-28T22:11:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=TestMeInstructions&amp;diff=2304&amp;oldid=prev</id>
		<title>Conversion script: link fix</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=TestMeInstructions&amp;diff=2304&amp;oldid=prev"/>
		<updated>2015-02-26T23:48:56Z</updated>

		<summary type="html">&lt;p&gt;link fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Back to [[UniObjectsTest]] or [[JavaSource]]&lt;br /&gt;
&lt;br /&gt;
* Java source code files should have the same name as the public class they contain.  So if you&amp;#039;ve copied the &amp;lt;nowiki&amp;gt;&amp;quot;TestMe&amp;quot;&amp;lt;/nowiki&amp;gt; class from [[UniObjectsTest]] and pasted it into an editor, you should save it as &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make the necessary changes in &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt; to point it at *your* database host with a good userID and password.&lt;br /&gt;
&lt;br /&gt;
* To compile &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt;, you will need to have asjava.zip in your CLASSPATH.  The CLASSPATH is how the JVM &amp;quot;finds&amp;quot; the classes it needs to run.&lt;br /&gt;
&lt;br /&gt;
* asjava.zip comes with any recent U2 distribution, and is usually found in /usr/unishared/uojsdk after installation.  On Windows (UD 6.1 PE) it can be found in C:\IBM\[[UniDK]]\uojsdk\lib.&lt;br /&gt;
&lt;br /&gt;
* Put yourself in the same directory as &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt;, and try this:  &lt;br /&gt;
&lt;br /&gt;
         javac -classpath /path/to/asjava.zip &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you&amp;#039;re using Windows, change all the &amp;#039;/&amp;#039; to &amp;#039;\&amp;#039; and use ; (semicolon) to separate elements of the classpath rather than : (colon)&lt;br /&gt;
&lt;br /&gt;
* If you just come back to a command prompt, that&amp;#039;s good!  List the contents of the directory and you should see not only &amp;lt;nowiki&amp;gt;TestMe.java&amp;lt;/nowiki&amp;gt;, but now also a &amp;lt;nowiki&amp;gt;TestMe.class&amp;lt;/nowiki&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
* To run the program, you&amp;#039;ll need that same classpath AND IN ADDITION, the current directory, since that&amp;#039;s where your new &amp;lt;nowiki&amp;gt;TestMe.class&amp;lt;/nowiki&amp;gt; file lives:&lt;br /&gt;
&lt;br /&gt;
         java -classpath /path/to/asjava.zip:. &amp;lt;nowiki&amp;gt;TestMe&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Note the extra &amp;quot;dot&amp;quot; in the classpath and the LACK of an extension on &amp;lt;nowiki&amp;gt;TestMe&amp;lt;/nowiki&amp;gt;.  The &amp;quot;dot&amp;quot; means &amp;quot;this directory&amp;quot; and will let the JVM find your newly created &amp;lt;nowiki&amp;gt;TestMe&amp;lt;/nowiki&amp;gt;.class file in order to execute it.&lt;br /&gt;
&lt;br /&gt;
* Did you get an error that says, &amp;#039;Exception in thread &amp;quot;main&amp;quot; java.lang.&amp;lt;nowiki&amp;gt;NoClassDefFoundError&amp;lt;/nowiki&amp;gt;: /path/to/&amp;lt;nowiki&amp;gt;TestMe&amp;lt;/nowiki&amp;gt;&amp;#039;?  If so... YOU HAVE TO ADD A &amp;quot;DOT&amp;quot; TO YOUR CLASSPATH!  This is not optional!!&lt;br /&gt;
&lt;br /&gt;
* If you are having trouble understanding the Java classpath, this link may help: http://mindprod.com/jgloss/classpath.html&lt;br /&gt;
&lt;br /&gt;
* Please add to and/or correct these instructions if I&amp;#039;ve left something out or said something incorrectly.&lt;/div&gt;</summary>
		<author><name>Conversion script</name></author>
	</entry>
</feed>