13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.2 NetBeans: The Open Source IDE239-J-Xms24m -J-Xmx96m-J-Xverify:n<strong>on</strong>e-jdkhome /usr/local/java/j2sdk1.4.1_01This specifies that the Java SDK is located in /usr/local/java/j2sdk1.4.1_01, and in that directory there is a bin directory which c<strong>on</strong>tainsjava, javac, javadoc, and so <strong>on</strong>.Finally, to make the executable easy to run, we will c<strong>on</strong>struct a symboliclink for easy access:$ ln -s /usr/local/netbeans/bin/runide.sh /usr/local/bin/nbThis creates a symbolic link from the runide.sh file in the currentdirectory to the /usr/local/bin directory, as a file named nb.10.2.2.3 RunningNow that you have the symbolic link to the script which runs NetBeans, simplyinvoke it with nb at a shell prompt. NetBeans will start loading (Figure 10.1).If you get a message like “Command not found,” check to see if the shellknows where to look. If you used the same name and locati<strong>on</strong> as in the previousexample, then make sure that /usr/local/bin is part of the search path forthe shell. (Reminder: echo $PATH will tell you what directories are searched.If you need to, add /usr/local/bin to PATH, as in:Figure 10.1 NetBeans begins

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!