<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Netlogo and MXJ &#8211; java compiling issues</title>
		<atom:link href="http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 16:12:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/#post-58965</guid>
					<title><![CDATA[Netlogo and MXJ &#8211; java compiling issues]]></title>
					<link>http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/#post-58965</link>
					<pubDate>Wed, 21 Sep 2011 07:43:41 +0000</pubDate>
					<dc:creator>jihannkki</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I&#8217;m trying to create an mxj object to run and query Netlogo Models<br />
in max. </p>
<p>Using the Netlogo Example code ((<a href="http://ccl.northwestern.edu/netlogo/docs/" rel="nofollow">http://ccl.northwestern.edu/netlogo/docs/</a>) I&#8217;m trying to open Netlogo from max and run the commands as a simple test. Unfortunately, I&#8217;m having problems compiling (see below). I&#8217;ve included all the relevant jar files from max and Netlogo (as instructed on the website) in the classpath and am building directly to the Cycling &#8217;74/java/classes directory.</p>
<p>I&#8217;m new to java so this is proving quite difficult.<br />
Any advice to help me started would be much appreciated.</p>
<p>Best</p>
<p>J<br />
[System: OSX 10.6.8 / Max 5.1.8 / Netlogo 4.1.3 / Java 1.6]</p>
<p>Code:<br />
&#8212;&#8212;</p>
<p>import com.cycling74.max.*;<br />
import org.nlogo.app.App;</p>
<p>public class Example1 extends MaxObject {</p>
<p>    public static void main(String[] argv) {<br />
        App.main(argv);<br />
        try {<br />
            java.awt.EventQueue.invokeAndWait<br />
                ( new Runnable()<br />
                    { public void run() {<br />
                        try {<br />
                          App.app.open<br />
                              (&#8220;models/Sample Models/Earth Science/&#8221;<br />
                               + &#8220;Fire.nlogo&#8221;);<br />
                        }<br />
                        catch( java.io.IOException ex ) {<br />
                          ex.printStackTrace();<br />
                        }<br />
                    } } );<br />
            App.app.command(&#8220;set density 62&#8243;);<br />
            App.app.command(&#8220;random-seed 0&#8243;);<br />
            App.app.command(&#8220;setup&#8221;);<br />
            App.app.command(&#8220;repeat 50 [ go ]&#8220;);<br />
            System.out.println<br />
                (App.app.report(&#8220;burned-trees&#8221;));<br />
        }<br />
        catch(Exception ex) {<br />
            ex.printStackTrace();<br />
        }<br />
    }<br />
}</p>
<p>MXJ Compile Window error:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>javac: invalid flag: /Applications/Max5/Cycling &#8217;74/java/classes/Example1<br />
Usage: javac<br />
<options> <source files/><br />
use -help for a list of possible options<br />
[ Sep 21, 2011 4:30:39 PM ]<br />
 compilation of /Applications/Max5/Cycling &#8217;74/java/classes/Example1 failed</options></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/#post-211829</guid>
					<title><![CDATA[Re: Netlogo and MXJ &#8211; java compiling issues]]></title>
					<link>http://cycling74.com/forums/topic/netlogo-and-mxj-java-compiling-issues/#post-211829</link>
					<pubDate>Mon, 21 May 2012 19:53:12 +0000</pubDate>
					<dc:creator>i@seanstevens.com</dc:creator>

					<description>
						<![CDATA[
						<p>Did you ever figure this out? just found out about netlogo and it seems it could be a powerful combo&#8230;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

