|
NetBeans
Setup in NetBeans 6
New: Get the PulpCore NetBeans 6 Module! With the module, you don't need the instructions below. About PulpCore PlayerPulpCore Player has two main features not available in Appletviewer:
Note, PulpCore Player does not install a SecurityManager. Always test applets in web browsers, too. NetBeans SetupFor the BubbleMark example:
You can now use NetBeans' Build and Run actions. Reloading ScenesIf a Scene has a public no-argument constructor, the PulpCore Player can automatically jump to that scene when the code is reloaded. To reload, in PulpCore Player click "File->Reload". This eliminates the need to traverse through start up scenes (like the Title, Menu, and Game Scenes) just to get to later scene (like HighScoreScene) every time the code changes. The HighScoreScene can be automatically loaded - as long as it has a public no-argument constructor. PulpCore Player can automatically reload when you click "Run" in NetBeans. (NetBeans' runs Ant in the same VM instance, unlike Eclipse). To enable this feature for all PulpCore apps:
NetBeans Debugger SetupIf you'd like to use NetBeans' integrated debugger, follow these steps:
The first time you run the debugger, NetBeans will ask you to edit an ide-file-targets.xml file. Copy & paste this code, which works with any PulpCore app: <?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="PulpCore-IDE">
<target name="debug-nb">
<path id="cp">
<fileset dir="build"><include name="*.jar" /></fileset>
</path>
<nbjpdastart addressproperty="jpda.address" name="PulpCore" transport="dt_socket">
<classpath refid="cp"/>
</nbjpdastart>
<java jar="${ant.home}/lib/ant-launcher.jar" fork="true">
<arg value="run" />
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
</java>
</target>
</project>
|
Sign in to add a comment
It'd be nice to write up a small section on configuring to use the NetBeans profiler, similar to what you did for the debugger.
Here's a sample scala Netbeans project:
http://itls.usu.edu/~dholton/pulpcore/Scala-PulpCore-Netbeans.zip and how the applet looks: http://itls.usu.edu/~dholton/pulpcore/scala
It's based on a java freeform netbeans project. The changes to the build.xml include adding support for scaladoc, debugging. Not complete are profiling and testing.