Non-Development IDE Netbeans Platform app with Maven - java

I am attempting to create a NetBeans Platform Application int NetBeans 8.1 that can use Maven but a different Platform from the regular Development IDE. I've already added the platform I wish to use by going to Tools -> NetBeans Platforms -> Add Platform and it registered correctly with the IDE.
I can then use this platform to create a new NetBeans Platform application with the added platform as the base, but when I try to create a NetBeans Application by going under the Maven category only various versions of NetBeans are available. I'm still getting used to the environment but I'm pretty sure that it only shows these versions because it pulls those platforms from the repositories.
My question is there some way to create a Maven NetBeans Platform application with a third party Platform? If not possible to do that how would one go about adding the third party platform to a Maven NetBeans Platform application?

with maven based apps, you don't deal with the Tools -> NetBeans Platforms UI, you declare platform artifact versions in the maven pom files.

Related

NetBeans IDE 8.0.2 Support for Netbeans IDE 7

I am starting a computer science class and need to download Netbeans IDE on my Mac 10.6.8. The latest Netbeans edition compatible with my Mac is NetBeans 7. However, in my class, we use NetBeans IDE 8.0.2
Am I able to transfer projects between both versions (via thumb drive) and edit them on both versions of Netbeans?
Thanks for the Help!
You can try it, but I have had trouble in the past with some custom Ant extensions Netbeans uses breaking when you try to use an older version of Netbeans than the one the project was created with. The other way seems to be less problematic. I have almost always been able to open projects created with an older version of Netbeans with a newer one.
I think there are two options:
Copy the sources but just create a new project with the older Netbeans using existing sources as needed. If you haven't customized a lot of settings this is usually fine.
Use Maven projects instead of Ant projects (which are just called Java applications in the Netbeans projects window). Just select Maven in the categories list in the new project dialog. These projects are less closely tied to the Netbeans versions, they can even be imported fairly reliably into Eclipse and Intellij.
copy the source folder(netbeansprojects[Your project]\src) and copy it to a thumb drive. Open a new project in your pc (the one in your class, 8.0.2) and go to THAT projects src, delete it, and replace it with the one from you're flash drive.

How to add whole jdk8 to packaged jar with Maven? [duplicate]

I want to make a executable file of my project which I made in JavaFX 2.0. Can anyone help me with this?
The JavaFX team implemented support for this in the tools bundled with the JavaFX 2.2 SDK (included in Java7 from update 6). The JavaFX packaging toolset for packaging executables is documented in self-contained application section of the JavaFX deployment guide.
See RT-19446 "Add ability to co-bundle Java + JavaFX + App into a single native executable" for more information (anybody can sign up to view the jira).
3rd party tools such as the JavaFX maven plugin or the JavaFX gradle plugin, streamline integration of building native JavaFX executables using common build systems.
The JavaFX packaging tools can also be used to natively package any Java application, not just JavaFX applications. For example, a Swing application, as demonstrated by this shell script for packaging a Swing application using JavaFX on OS X.
If you want to do the packaging for the 2.0 or 2.1 versions of JavaFX (not JavaFX 2.2+), then you should review Packaging JavaFX Applications as Native Installers.
Javafx 2+ can now easily be packaged as a native exe (with an added payload, which the current JRE), the up to date (as in the end of 2012) article is here: http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm
Out of curiosity I created an executable on Windows (copy-pasting the netbeans build code into netbeans' build.xml) from the canvas and the hello world examples: the app is around 20k, the executable/launcher is around 80k and the added runtime is 138mb.
By the way if you have an older netbeans install (installed with a pre 1.7jdk) you may have to update it or edit its netbeans.conf fixing the "netbeans_jdkhome" path, otherwise the bundled executable's packaging may fail.
There are several tools to generate a customized exe launcher for your Java application.
I have good experience with Winrun4J: http://winrun4j.sourceforge.net/
but you will always need an installed Java/JavaFX Runtime even if you have an .exe that contains all your code.

Open new dynamic web project in java

I'm writing server-application in java which needs to run on ec2 of amazon. I read somewhere i need to open dynamic web project, but i don't have this option in eclipse. my eclipse version is .
I tried to install through help -> install new software the package "Web Tools Platforms" from http://download.eclipse.org/webtools/repository/indigo
but it failed in the middle of the installation.
Somebody can help me with that?
thanx!!
You need the one labelled Eclipse for Java EE Developers that one lets you create web projects.
Also see this & this. It will help you..
Not all of them are required (I think), but after installing the components listed below I got the "Dynamic Web Project" template added to my Eclipse (Indigo). The list is:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
You can install those packages by clicking on "Help" > "Install New Software", selecting the repository that corresponds to your Eclipse build (i.e http://download.eclipse.org/releases/indigo for Indigo). The packages are grouped under "Web, XML, Java EE and OSGi Enterprise Development".

Why does my Eclipse plugin show up in Eclipse RCP version, but not in other versions like Java and Java EE?

I have developed an Eclipse plugin using the RCP version of Eclipse. I have used the plugin via a 'run application' launch as well as by exporting the plugin as a JAR and putting it in the plugins directory of Eclipse RCP.
The problem is that when I put the plugin JAR in the plugins directory for my Java version or Java EE version of Eclipse, it doesn't seem to be loaded as one of the plugins. I go to the preferences to look at the pref. page for my plugin and it isn't even listed.
This is my first Eclipse plugin, so I don't have much experience using plugins across different distributions of Eclipse and so forth. Any ideas of how to fix this? I would like to be able to use the plugin in any Eclipse (Java, Java EE, RCP, etc.)
Try putting your plugin under install/dropins/plugins directory. As of Eclipse 3.5, adding plugins directly to the root plugins directory isn't supported.
This should be enough for you to experiment further, but this isn't a good way to install finished plugins. The best way to install plugins is via a published repository. You will need to create a feature to hold your plugin and then use Export -> Plug-in Development -> Deployable features wizard or investigate command line build solutions such as pdeBuild.

How can I setup my Netbeans IDE for making Java ME applications?

Ok, I have Netbeans 6.7.1 installed with the default Java SDK. I'm using Linux Mint.
Now I'm told that I have to download Java Platform Micro Edition Software Development Kit 3.0
So, should I download this? And once I download and install this in Linux, what do I have to install for Netbeans so I can create a Mobile Application? I'm fairly new to this environment so please any advice is welcome! :)
Make sure you have Java installed (version >= 6 ) and then simply go to: http://netbeans.org/downloads/ and download the version that comes with JAVA ME support. Then install it, and you are ready to go :)
And no, you shouldn't download JAVA ME SDK 3.0 since it is not supported in linux. sigh
While at it I'd recommend you to read also the links below:
Also if you're just getting started here are some nicely written tutorials with examples:
http://today.java.net/pub/a/today/2005/02/09/j2me1.html
http://today.java.net/pub/a/today/2005/05/03/midletUI.html
http://today.java.net/pub/a/today/2005/07/07/j2me3.html
http://today.java.net/pub/a/today/2005/09/27/j2me4.html
I think this only applies if you download a version without JavaME modules. If you download the version with JavaME modules, you don't have to do this. The provision is to allow you to install multiple versions of the emulator (including Nokia's) and work with them.
If you have downloaded a version of NetBeans without ME, then do this
1. Download the JavaME SDK and install that eg. /opt/java/javame
2. Install ME modules in NetBeans. Tools -> Plugins -> Installed and activate JavaME
3. Add the SDK in NetBeans Tools -> Java Platforms -> Add Platform -> Java ME Platform Emulator and follow the instructions
I'm using NB 6.8 BTW.
In NetBeans, go to the "Tools/Plugins" menu, then in the "Available plugins" tab, select the plugins which are part of the "Java ME" category. now click "instal"... NetBeans will take care of downloading, installing and configuring everything for you.

Categories