NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Sankey198
Joined: 13 Apr 2012 Posts: 8 Location: Pune
|
Posted: Wed May 02, 2012 4:07 am Post subject: Need urgent help -integration of javafx and netebeans platform application |
|
|
We need urgent help of any of yours.
Our objective is to integrate iReport[Netbeans Platform application] Application with JavaFX.
So First we compile iReport Source code using following link:
http://jasperforge.org/uploads/publish/ireportwebsite/IR%20Website/ir_compiling_ireport.html
Then for integration purpose[invoke iReport application from our application], we override startup point
org.netbeans.core.startup.Main with our custom startup class and then handle control back to netbeans like this.
System.out.println("JavaFX Integration - Button clicked...");
// once you're done with that, hand control back to NetBeans
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
Class<?> mainClass;
try {
mainClass = Class.forName(NB_MAIN_CLASS, true, classloader);
Object mainObject = mainClass.newInstance();
Method mainMethod = mainClass.getDeclaredMethod("main", new Class[]{String[].class});
mainMethod.invoke(mainObject,(Object)params);
} catch (Exception ex) {
ex.printStackTrace();
}
but i think some of the iReport modules not launching due to this indirect startup. Do you have an idea behind not launching some of
the modules?
Thanks for your time and patience. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|