Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under netbeans...

Quân says...

- download JBossAS 5.x GA http://www.jboss.org/jbossas/downloads/,
- decompress to a folder, ex: /home/quan/jboss-5.1.0.GA
- netbeans > Services tab > Servers > add jBoss Server

Filed under: Netbeans

Matt says...

GlassFish has just recorded a record-setting September in terms of downloads, registrations, and admin pings. The GlassFish downloads graph is indicative of a "breakout" for GlassFish within the application server market sphere.

I'm still a big Tomcat fan myself, but have others made the switch from Tomcat to Glassfish (or use both)? Any big advantage to Glassfish if I don't need the full JEE bits?

I wonder also if this includes downloads of Glassfish with NetBeans. Since it's the default servlet container with the full version of NetBeans that could skew the numbers a bit.

Filed under: NetBeans

Quân says...

java-library-path.png

Filed under: Netbeans

I found netbeans better than eclipse. It consumes less CPU and the UI and SVN support is also better. I recommend it for PHP development.

Here is the list of shortcuts:

  1. alt+shift+O open file in current project
  2. ctrl+E delete line
  3. ctrl+del delete next word
  4. ctrl+back_space delete prev word
  5. ctrl+shift+open_brac goto matching bracket
  6. ctrl+G goto line
  7. alt+shift+up move selection one line up
  8. alt+shift+down move selection one line down
  9. ctrl+shift+up copy selection one line up
  10. ctrl+shift+down copy selection one line down
  11. ctrl+slash toggle comment
  12. alt+shift+h toggle highlight search
  13. alt+shift+left shift line left
  14. alt+shift+right shift line right
  15. shift+ESC maximize or minimize
  16. Alt+Enter View fix suggestions
  17. ctrl+ O to open the file location of the current word. something like ctrl+shift+R in eclipse
  18. Alt+Insert Generate code
  19. Ctrl+0 – Editor
  20. Ctrl+1 – Project Window
  21. Ctrl+shift+1 - current file in Project Window
  22. Ctrl+2 - Files browser
  23. Ctrl+Shift+2 - current file in files browser
  24. Ctrl+4 – Output Window
  25. Ctrl+7 - navigator window
  26. Ctrl+K and Ctrl+L Auto complete with previous/next matched word
  27. Ctrl+Q last edit location

Filed under: netbeans

NetBeans IDE

The only IDE you need! Runs on Windows, Linux, Mac OS X and Solaris. NetBeans IDE is open-source and free.

Download NetBeans IDE

arrow Learn More about NetBeans IDE

Filed under: netbeans

Quân says...

Maven
- Install
  + Download: http://maven.apache.org/download.html
  + Extract the distribution archive to the directory you wish to install Maven 2.2.0, i.e. /usr/local/apache-maven
  + Add environment variable:

export M2_HOME=/usr/local/apache-maven/apache-maven-2.2.0
export PATH=$PATH:$M2_HOME/bin
  + Run mvn --version to verify that it is correctly installed

- Notes
Maven's project object model (POM): pom.xml
Local Maven repository: <user_home>/.m2/repository

- Command

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
mvn compile
mvn test
mvn package

Getting started with Maven and Spring on Netbeans 6.7
- maven config
Tools/Options: External Maven Home, Local Repository

- create maven project
New Project > Maven > Maven Project > Maven Quickstart Archtype (1.0) > Finish

- add Spring dependency

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>2.5.6.SEC01</version>
        </dependency>

compile to load Spring library

- create class SayHello.java

package com.mycompany.springapp;

public class SayHello {

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void greet() {
        System.out.println("Hello " + getName());
    }
}


- create beans file src/main/resources/application-contenxt.xml
<beans>
    <bean id="hello" class="com.mycompany.springapp.SayHello">
        <property name="name" value="Quan" />
    </bean>
</beans>

- Updated App class
public class App {

    public static void main(String[] args) {
        BeanFactory factory = new XmlBeanFactory(
                new ClassPathResource("application-context.xml"));

        SayHello hello = (SayHello) factory.getBean("hello");
        hello.greet();
    }
}


run to see result.

Filed under: Netbeans

Antoine says...

Netbeans 6.7.1 with javafx support in finally available for download: http://www.netbeans.org/servlets/NewsItemView?newsItemID=1407
Hurray!

Filed under: netbeans

Antoine says...

Netbeans 6.7 is out, the integration with kenai is really nice and there is still no javafx version of Netbeans 6.7: it's a shame!
The connection with kenai and the integrated chat window is a really usefull improvement. As we were to impatient to work with this new version we googled for hours and finally founded a release candidate for netbeans 6.7.1 with javafx (don't try to find it again, we tried with no success!). Just try it yourself: http://bits.netbeans.org/netbeans/6.7.1/rc/2009-07-16_23-01-10/

Filed under: netbeans

teeparham says...

I've been experimenting with Textmate vs Netbeans as my Ruby editor on my mac. Here is the current scorecard:

Textmate wins:
* UI. The interface is cleaner and I like the way the file tabs stack up on top.
* Opening files from the finder or another program is easier (I had problems getting Versions to open files in Netbeans).
* Extensibility. There are lots of bundles you can download and write to do just about anything.
* Inline ruby evaluation.

Netbeans wins:
* Price: It's free
* Searching in files: super-easy, nice UI, & you can select a folder for sub-searches. Textmate's tiny box for entering a regular expression to constrain folders and files for searching is ridiculous. Also Textmate search is quite slow.
* Formatting html files: easy and looks good. Right-click & format (or ctrl-shift-F). I find html tidy in Textmate worthless.
* Usability. It's not extensible like Textmate, but I haven't invested time to find and figure out good Textmate extensions since I'd rather get something done (update: Textmate's Rails bundle has all kinds of snippets built in).
* Sometimes the code completion and navigation works. I know Ruby makes this hard but someone's got to figure this out at some point.
* Automatically creates a matching end for you when you create a def. I'm sure textmate could do this if I installed some bundle that I have not heard of.

At this point I like Netbeans better, which is surprising, since I want to like Textmate and I paid for it. Show me the light, Textmate folks, I want to believe.

Versions: Textmate 1.5.8, Netbeans 6.5

Filed under: netbeans