-
Notifications
You must be signed in to change notification settings - Fork 18
Developer FAQ
This is a listing of gotchas for Datavyu developers:
Q: Why do I get the following error when attempting to profile Datavyu within netbeans?
[exec:exec]
Error occurred during initialization of VM
Could not find agent library in absolute path: /Applications/NetBeans/NetBeans
A: This is a problem with older versions netbeans (6.7 and earlier), to fix this you need ot edit your nbactions.xml file within your Datavyu directory, for mac users you need to include the following (please note you may need to alter this slightly depending on your netbeans version):
<action>
<actionName>profile</actionName>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.1:exec</goal>
</goals>
<properties>
<exec.args>-Djava.security.policy=Datavyu.policy -agentpath:/Applications/NetBeans/NetBeans\ 6.7\ M3.app/Contents/Resources/NetBeans/profiler3/lib/deployed/jdk15/mac/libprofilerinterface.jnilib=/Applications/NetBeans/NetBeans\ 6.7\ M3.app/Contents/Resources/NetBeans/profiler3/lib,5140,10 -classpath %classpath au.com.nicta.datavyu.Datavyu</exec.args>
<profiler.action>profile</profiler.action>
<exec.executable>${profiler.java}</exec.executable>
</properties>
</action>
Q: Why does maven spit the following error at me?
[WARNING] POM for 'org.jruby:jruby-complete:pom:1.1RC3:compile' is invalid. It will be ignored for artifact resolution. Reason: The POM expression: ${java.specification.version} could not be evaluated. Reason: Expression value '${java.specification.version}' references itself in 'org.jruby:jruby-complete:jar:1.1RC3'. for project org.jruby:jruby-complete at Artifact [org.jruby:jruby-complete:pom:1.1RC3:compile]
A: This is a problem with older versions of maven (2.0.9), for mac/unix users you need to upgrade to at least maven 2.0.10 and windows users need to upgrade to at least maven 2.1.0-M1
Q: Why won't my dialog have its position and size remembered?
A: Your dialog must be resizable so that it can have its position and dimensions reset. It also must have a unique name. Within your constructor, you should have something like:
super(parent, modal);
initComponents();
setName(this.getClass().getSimpleName()); // Sets unique name.