We have not yet created a way to automate this configuration for you. It would be nice for instance if we could create a "platform" for the JNIOR. While that might be possible in some sophisticated way it is much more elaborate that we need. It is certainly not a simple or common task. Instead I would like to describe the
project.propertiesfile. it would be a simple matter to create a program to edit this text file and thereby properly configure a project for the JANOS Runtime environment. You can manually edit this file either from within Netbeans or with an external text editor.
project.propertiesfile for any project is located in the project folder under
nbproject. So for that HMI project for instance the file has a path something like this:
../NetbeansProjects/Hmi/nbproject/project.properties. The file is easy to find. You can even use Netbeans' Files Window (Ctrl+2). This properties file is a text file containing name-value pairs formatted as assignments. It also accommodates comment lines beginning with the '#'. At some point not long ago that symbol went from begin a "pound sign" to a "hashtag". And... you argue that you aren't being brain-washed?
Here are the entries in the
project.propertiesfile that affect us. Note that the asterisk '*' here is a wildcard.
So to configure a project you need the
/etc/JanosClasses.jarfile which you can download from the Series 4 JNIOR. But that file is embedded in the JNIOR and excludes JavaDoc and Source detail because space is constrained there. You can also use a runtime JAR obtained from INTEG that has the additional detail. For JANOS v1.6.3 this file is called
Now in addition to the file name we will need an absolute path to it. So if you put JanosRuntime_1.6.3.jar in the NetBeansProjects folder you end with a path like this:
C:\\Users\\Bruce\\Documents\\NetBeansProjects\\JanosRuntime_1.6.3.jar. Well close to that unless your username is also "Bruce".
One other thing to note is that project properties can refer to other properties using the syntax that will be evident in a moment. You probably should avoid creating a circular reference. We wouldn't want to prematurely destroy the Internet.
So the above properties should all end up once they are correctly set as follows. Note that the '\' at the end of a line is an optional line continuation if you happen to see it. Also the '!' exclamation point means concatenation.
source.referenceentry. Those referencing our JAR. If there are others they must be removed.
So you can see that you could write a simple C or Java program to open this file and make the changes. Something to think about. But it is easy to adjust manually. A project configured this way (however you get there) will build programs targeted to run under JANOS and the IDE will even be helpful. So give it a try!