Showing posts with label download netbeans ide. Show all posts
Showing posts with label download netbeans ide. Show all posts

Sunday, 15 January 2012

Setting Up NetBeans IDE With JavaFX 2.0

JavaFX is a powerful Java-interface platform capable of handling large-scale data-driven applications business. JavaFX 2.0 is a major update to the platform, JavaFX.Starting with this version, developers can create JavaFX applications entirely in Java.
IDE NetBeans supports the creation of applications JavaFX 2.0.
Complete the installation environment IDE NetBeans with JavaFX 2.0 SDK is available on the download site JavaSE. JavaFX SDK is a set of Java-7u2 youdownload from this site. You can also install the NetBeans IDE and the JavaFX 2.0 SDK separately. This document describes how to configure the environment IDE NetBeans with JavaFX 2.0 SDK when you install the IDE and SDK separately.

Installing NetBeans IDE and JavaFX 2.0 SDK


Install JavaFX 2.0 from the JavaFX download site. JavaFX 2.0 requires Java JDK 1.6.0 update 26 or later, or Java 7. JavaFX does not run on all operating systems. Check the JavaFX System Requirements document to see which platforms are supported by JavaFX. The system requirements for JavaFX 2.0 also let you install NetBeans IDE.
Note that when you install JavaFX 2.0 SDK, you actually install two packages: the JavaFX 2.0 SDK and the JavaFX 2.0 Runtime.
If you are using Windows, consider installing JavaFX 2.0 to the default location (C:\Program Files\Oracle\). NetBeans IDE checks the default Windows locations for JavaFX 2.0 SDK and JavaFX 2.0 Runtime. If JavaFX 2.0 is in the default locations, you have less to configure. Also note that if you use the Windows .exe installer, you can change the installation location of the SDK package but not the Runtime package. JavaFX 2.0 Runtime is always installed to the default location by the .exe installer.
Warning: If you have older versions of JavaFX 2.0 (pre-b46) installed on your computer, manually uninstall them and make sure their directories are deleted. The JavaFX installer does not always uninstall older versions of JavaFX 2.0 correctly, which can lead to the wrong version being used. NetBeans IDE does not support earlier versions of JavaFX 2.0.

 

Thursday, 15 December 2011

Initializing a Servlet


After the Web container loads and instantiates the servlet class and before it delivers requests from clients, the Web container initializes the servlet. You can customize this process to allow the servlet to read persistent configuration data, initialize resources, and perform any other one-time activities by overriding the init method of the Servlet interface. A servlet that cannot complete its initialization process should throw UnavailableException.
All the servlets that access the bookstore database (BookStoreServletCatalogServletBookDetailsServlet, and ShowCartServlet) initialize a variable in their init method that points to the database helper object created by the Web context listener:
public class CatalogServlet extends HttpServlet {
   private BookDB bookDB;
   public void init() throws ServletException {
      bookDB = (BookDB)getServletContext().
         getAttribute("bookDB");
      if (bookDB == null) throw new
         UnavailableException("Couldn't get database.");
   }
}

Tuesday, 6 December 2011

Running, Troubleshooting NetBeans and Future Releases


After NetBeans is emerged, you can run NetBeans 6.9 using netbeans-6.9 command.
If you use other than English locale and you enabled it before installation, you can run NetBeans in your locale this way:
netbeans-6.9 --locale ru
or
netbeans-6.9 --locale pt:BR

Troubleshooting

If you have some problems with emerge of NetBeans, you can contact fordfrog at #gentoo-java on FreeNode. If you come across a bug, file it to http://bugs.gentoo.org/. You can also find some help at http://forums.gentoo.org/. For help with problems that are not related to NetBeans on Gentoo see http://www.netbeans.org/kb/index.html.

Future Releases

If you want to go even further and want to use bleeding edge features of Netbeans, you can find ebuilds for latest development releases at http://git.overlays.gentoo.org/gitweb/?p=dev/fordfrog.git overlay. If you do not know how to use Gentoo Overlays, just read this Overlay guide. Even though it is development version of Netbeans, it is pretty stable and even usable for real work most of the time. Up to that, latest Netbeans installs on Gentoo always in new slot, so you can have older stable version and new bleeding edge version side by side on single system.

Link to Install Netbeans


Required Downloads

Warning: This section is probably outdated and applies only to version 6.5 and needs update.
NetBeans requires quite a lot Java programs. As such, there are some programs from Sun which require an agreement check box to be ticked before download, ergo there are files that must be downloaded manually. The links to those files are provided here for your convenience:

x86 Architecture

These downloads are only needed if you do not have java5 flag enabled either globally or for dev-java/tomcat-servlet-apidev-java/aspectwerkz and dev-java/jdbc-postgresql packages.
  • Download j2sdk-1_4_2_18-linux-i586.bin from:
  • Download jce_policy-1_4_2.zip from:

All Architectures

  • Download sjp-1_0-fr-ri.zip from:
http://jcp.org/aboutJava/communityprocess/final/jsr223/index.html (Click on Download button under the Reference Implementation and Technology Compatibility Kit heading.)

Once the downloads have completed, the only thing you need to do is move them to /usr/portage/distfiles/.

Portage

If you are on stable arch (so not using ~arch packages) and NetBeans is still in ~arch, you need to put dev-util/netbeans and other needed ~arch packages into/etc/portage/package.keywords. See
man 5 portage
for details. Simply said, you need to put every package that is needed for emerge of NetBeans but masked with ~arch into your /etc/portage/package.keywords.