Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart

Archive for the ‘Java IDE’ Category

Increase the JVM Memory Settings in NetBeans

Posted by: Chyne on: February 20, 2009

I encountered the following build errors when I compiled the source codes in the NetBeans:-

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space


more


BUILD FAILED (total time: 1 minute 50 seconds)

1. Access the etc/netbeans.conf in <NetBeans installation path>
2. Default settings:-

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true”

3. Change to:-

netbeans_default_options=”-J-client -J-Xss2m -J-Xms96m [...]

Code Templates

Posted by: Chyne on: April 19, 2008

The steps to specify what information needs to be included in the created class files:-
1. On the Menubar, choose Project —> Properties
2. Chosse Java Code Style —> Code Templates
3. Tick to enabled project specific settings
- Comments
- Types
—> Click the Edit button
—> Change the cursor within the comment body
—> Click Insert Variable
—> Insert date, time, author
Example:
/**
* [...]

Tags:

Compile and Build Projects using Ant

Posted by: Chyne on: January 14, 2008

Here are the steps to compile and build projects using Ant in Eclipse:

Choose Window in the Toolbar.
Show View —> Others.
Double click the ‘Ant’ directory and choose the ’Ant’ icon.
Click ‘Ok’.
Choose a specific project.
On the Ant tab, click the icon ‘Add buildfiles’.
Choose the buildfiles to add (build.xml).
After choosing the build.xml, you can do the [...]

Tags:

How to Create a Jar File

Posted by: Chyne on: January 8, 2008

Here are the steps to create a jar file in Eclipse:

Select specific file or package in the Package Explorer / Project Explorer.
Right click the selected file and choose ‘Export’ from the list.
Select the folder ‘Java’ and choose ‘JAR file’.
Click ‘Next’.
Make sure the ticked project in the ‘Select the resources to export:’ is the right location [...]

Tags:

Friday’s Java Snack


In Java, "thread" means:

  • An instance of class java.lang.Thread
  • A thread of execution


An instance of Thread is just an object that has variables and methods, and lives and dies on the heap.
 
A thread of execution is an individual process that has its own call stack (one thread per call stack).

 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Archives


  • Polprav: Hello from Russia! Can I quote a post in your blog with the link to you?
  • Alex: Huge Thanks! This bug has annoyed me for a long time.
  • Donnieboy: Just wanted to drop you a line to say, I enjoy reading your site. I thought about starting a blog myself but don't have the time. Oh well maybe one

StatCounter

free hit counters