This short article shows you how you can build NetBeans 6 Beta 2 from sources. I show you the default build.
Contributed by: Amit Kumar Saha
Make sure you have the following environment variables set:
ANT_HOME = ... # poin to your Ant 1.7.0 installation JAVA_HOME= ... # point to your JDK 1.5 installtion
Also, see to it that you are able to access your Sun Java Compiler (javac) and Sun Java Interpreter (java) from anywhere on your system. In short, have your PATH set properly
amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code$ unzip netbeans-6.0beta2-200710212201-src.zip
amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code$ cd nbbuild/ amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild$
export ANT_OPTS="-Xmx512m # 512m is the Heap size we are setting;
amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild$ /home/amit/temp-workspace/apache-ant-1.7.0/bin/ant
The build process should succesfully end with the total time taken by the build process displayed.
Your NetBeans 6 Beta 2 build is ready. Here is how you can use it:
amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild$ cd netbeans/ amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild/netbeans$ amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild/netbeans$ cd bin/ amit@ubuntu-laptop:/media/sda5/Current projects & Research/NetBeans-CFF-code/nbbuild/netbeans/bin$ ./netbeans
[javac] Compiling 320 source files to /media/sda5/Current projects & Research/NetBeans-CFF-code/form/build/classes [javac] Invalid maximum heap size: -Xmx512m [javac] Could not create the Java virtual machine. [nbmerge] Failed to build target: all-form
Hence, I removed the file.
| Nb-beta2.png | ![]() |
112394 bytes |