<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Cannot run multiple Kojo instances on Windows server</title>
		<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server</link>
		<description>Posts in the discussion thread &quot;Cannot run multiple Kojo instances on Windows server&quot; - On one Windows terminal server can run only one instance of Kojo or kojo.exe.</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 10 Aug 2026 11:10:02 +0000</lastBuildDate>
		
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2267808</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2267808</link>
				<description></description>
				<pubDate>Fri, 10 Apr 2015 06:42:23 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>And, do keep us updated on how things work out for you.</p> <p>PS. From now on, messages on this forum will be cross-posted to the <a href="https://groups.google.com/forum/#!forum/kojo-user">Kojo-User</a> or <a href="https://groups.google.com/forum/#!forum/kojo-dev">Kojo-Dev</a> google group.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2267771</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2267771</link>
				<description></description>
				<pubDate>Fri, 10 Apr 2015 04:47:53 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>Thanks for your concrete answers.</p> </blockquote> <p>You're welcome.<br /> So, things look under control now?</p> <p>Good to know about your plans!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2267563</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2267563</link>
				<description></description>
				<pubDate>Thu, 09 Apr 2015 19:40:49 +0000</pubDate>
				<wikidot:authorName>Christoph Knabe</wikidot:authorName>				<wikidot:authorUserId>2120917</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks for your concrete answers.</p> <p>I will use the english version of Kojo during the first weeks in the first programming course in our media informatics program for teaching imperative programming.<br /> Besides that we will use the german Kojo variant on 13th of june for short kids programming courses during the Berlin &quot;Long Night of Sciences&quot;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2267213</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2267213</link>
				<description></description>
				<pubDate>Thu, 09 Apr 2015 10:24:16 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>as from monday I will teach a full student group of 48 persons using Kojo.</p> </blockquote> <p>What kind of class will this be? Computer science? Software engineering? Kojo visual programming stuff?</p> <blockquote> <p>1) For what do we need the ~/.kojo/lite/libk directory?</p> </blockquote> <p>Any jar in that directory will be on the classpath for scripts run within Kojo. So if you want to play with a third-party lib in Kojo, you can put its jar in the libk directory. By default the libk directory is empty.</p> <blockquote> <p>2) As we don't have a ~ directory on Windows, is it taken from the environment variable<br /> USERPROFILE (Windows user home directory) or the Java system property -Duser.home?</p> </blockquote> <p>def homeDir = System.getProperty(&quot;user.home&quot;)</p> <blockquote> <p>3) Would it work to collect the files from ${user.home}\.kojo\lite\libk by the same batch<br /> script?</p> </blockquote> <p>Yeah, that should work fine.</p> <blockquote> <p>4) If so should I collect only .jar files from this directory?</p> </blockquote> <p>Yes.</p> <blockquote> <p>BTW: Where should I report issues? Here or on <a href="https://code.google.com/p/kojo/issues/list">https://code.google.com/p/kojo/issues/list</a></p> </blockquote> <p>Google code is getting phased out. Please report issues here:<br /> <a href="https://bitbucket.org/lalit_pant/kojo/issues">https://bitbucket.org/lalit_pant/kojo/issues</a></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2267207</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2267207</link>
				<description></description>
				<pubDate>Thu, 09 Apr 2015 09:58:49 +0000</pubDate>
				<wikidot:authorName>Christoph Knabe</wikidot:authorName>				<wikidot:authorUserId>2120917</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks for your answers.<br /> We urgently need to run Kojo on Windows server, as from monday I will teach a full student group of 48 persons using Kojo. So still some questions:</p> <p>1) For what do we need the ~/.kojo/lite/libk directory?</p> <p>2) As we don't have a ~ directory on Windows, is it taken from the environment variable USERPROFILE (Windows user home directory) or the Java system property -Duser.home?<br /> This is important as on our installation we have a separate area for each user, to which points only -Duser.home.</p> <p>3) Would it work to collect the files from ${user.home}\.kojo\lite\libk by the same batch script?</p> <p>4) If so should I collect only .jar files from this directory?</p> <p>BTW: Where should I report issues? Here or on <a href="https://code.google.com/p/kojo/issues/list">https://code.google.com/p/kojo/issues/list</a></p> <p>Thanks again,<br /> Christoph</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2266772</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2266772</link>
				<description></description>
				<pubDate>Wed, 08 Apr 2015 18:01:45 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Also, if you want to avoid the classpath limitations, you can use net.kogics.kojo.lite.NewKojoInstance (but this will result in two Kojo related processes for every Kojo launch - the actual Kojo instance and a stub that launches it with the extended classpath).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2266742</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2266742</link>
				<description></description>
				<pubDate>Wed, 08 Apr 2015 17:26:56 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Christoph,</p> <p>Indeed, net.kogics.kojo.lite.DesktopMain actively works to disallow multiple instances. You can use net.kogics.kojo.lite.Main. That should work fine, other than a couple of limitations (the environment variable KOJO_CLASSPATH and the jars in the ~/.kojo/lite/libk directory will not be on the Kojo instance's classpath). You can ignore the connection exception.</p> <p>Let me know if you run into any problems with this approach.</p> <p>/L</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2266712</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2266712</link>
				<description></description>
				<pubDate>Wed, 08 Apr 2015 16:37:25 +0000</pubDate>
				<wikidot:authorName>Christoph Knabe</wikidot:authorName>				<wikidot:authorUserId>2120917</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Having started instead class <strong>net.kogics.kojo.lite.Main</strong> it seems to work. Is this the recommended way?<br /> But still issues a message about connection error.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2266687</guid>
				<title>Re: Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2266687</link>
				<description></description>
				<pubDate>Wed, 08 Apr 2015 15:58:57 +0000</pubDate>
				<wikidot:authorName>Christoph Knabe</wikidot:authorName>				<wikidot:authorUserId>2120917</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Having compiled a batch file to start the class <strong>net.kogics.kojo.lite.DesktopMain</strong> directly I get some more detailed message:</p> <p>C:\Program Files (x86)\Kojo2\lib&gt;java -cp ;AppleJavaExtensions.jar;autocomplete.jar;docking-frames-common.jar;docking-frames-core.jar;geogebra.jar;geogebra_algo<br /> s.jar;geogebra_cas.jar;geogebra_export.jar;geogebra_gui.jar;geogebra_javascript.<br /> jar;geogebra_main.jar;geogebra_properties.jar;group-panel.jar;h2.jar;httpunit.ja<br /> r;image-filters.jar;jdi.jar;jfugue.jar;jl1.0.1.jar;jlatexmath.jar;js-1.6R5.jar;j<br /> ssc.jar;jtidy-4aug2000r7-dev.jar;jts.jar;kojo2.jar;piccolo2d-core.jar;piccolo2d-<br /> extras.jar;rithica.jar;rstaui.jar;rsyntaxtextarea.jar;scala-actors.jar;scala-com<br /> piler.jar;scala-library.jar;scala-parser-combinators.jar;scala-reflect.jar;scala<br /> -swing.jar;scala-xml.jar;scalariform.jar;table-layout.jar net.kogics.kojo.lite.D<br /> esktopMain<br /> [INFO] Running &gt; first Kojo instance with args: []<br /> [INFO] Connecting (via RMI) with args: [] to already running Kojo instance<br /> [INFO] Kojo Launcher Done.</p> <p>Is there perhaps a command line option for Kojo to avoid connecting to an already running instance?<br /> In our lab all students have their own account, but as they are running on the same server there could be a port conflict.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-1166057#post-2266646</guid>
				<title>Cannot run multiple Kojo instances on Windows server</title>
				<link>http://kogics.wikidot.com/forum/t-1166057/cannot-run-multiple-kojo-instances-on-windows-server#post-2266646</link>
				<description></description>
				<pubDate>Wed, 08 Apr 2015 14:59:16 +0000</pubDate>
				<wikidot:authorName>Christoph Knabe</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi Lalit,</p> <p>we have a Windows Terminal Server at Beuth University of Applied Sciences. Students log into it from client computers.<br /> Only the first one starting Kojo by the Start menu succeeds. For all subsequent trials we only see a second-lasting hourglass, which diappears without a message. After exiting the first Kojo instance, another instance can be started.<br /> As we do not know this behavior from other Java applications we suppose the little kojo.exe to be guilty.<br /> In the Kojo2\bin directory there is a shell script for starting Kojo. It collects all .jar files from Kojo2/lib.<br /> Do you have an equivalent script as Windows batch file for trying a workaround?<br /> Or how could we diagnose, why only the first Kojo instance can start?</p> <p>Thank you very much,<br /> Christoph</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>