Sun's big netbeans strategy and why it will fail

I noticed that a Register article about where Sun will go from here mentioned they wanted to drive users from Eclipse towards Netbeans or SunOne or whatever they are calling it now.

I don’t think it’s going to work. The reason is that I have been using Netbeans since version 3 and I am about to stop. I expect that the new version of the IDE is brilliant, does 90 percent of the work I could ever want to do automatically and telepathically anticipates every piece of code I may write.

That doesn’t matter at all because I can’t work out how to import an existing Java file into Netbeans. Ive tried going through the filesystem and project trees, no result. Maybe the file menu? No. By tracking the right set of options in the file menu I can actually open the file in the IDE editor but there is no way I can find to add it to the project.

I’m sure it can be done, that’s not the point- I’ve been using various IDEs for the last five years. I have never found one so obstructive on such a simple task. I’m probably about to move to Eclipse - if I netbeans can’t manage this most basic of tasks what serious tasks is it going to render impossible?

Ahh yeah, how do you do that?

I’ve been CUT AND PASTING the code from a text viewer to the class I have to make in advance (empty) in a Project…

I’ve been having to do the same, all the time growling to myself and thinking “Visual Studio doesn’t make me do this…”

normal java code you just pop it in the src folder or a folder in the src folder if you want to import from eclipse youse the modual that dose tah and so on 8)

I’ve never used an IDE for Java… I’ve always used notepad for every java app (private apps and ones I get paid to do). it fails me not, and my bosses love me oO;

I can’t imagine managing hundreds of classes in notepad

Any refactoring is out of the question then.

(you’re gonna say good code doesn’t need refactoring, eh?)

I hope you’re messing with us :slight_smile:

WTF???

You drop the sodding file into the src directory. Done!

NetBeans since version 4 has been a better IDE for me than Eclipse (which I used to use exclusively). Yes, the NB3 version was crap, but FFS, why the hell are you using that and not the much-improved newer versions???

Sheesh! That;s like saying Eclipse 1.1 sucked, so I won’t use Eclipse 3.x.

He said “since version 3”, that doesn’t imply he never upgraded

How about filling an RFE instead of complaining? :slight_smile:

or even contribute by implementing the desired feature yourself…
…but I know: I’m myself that lazy, always wanting the possiblity to exclude files in the src-folder from compilation… :-\

I would switch back to NetBeans (from Eclipse) if they improve the code editor. It’s just much faster for me to edit code in Eclipse because:

  • there are more refactoring options,
  • the refactoring workflow is smoother,
  • the code auto-complete is much smarter,
  • the auto-complete is much faster,
  • the ability to change code while I am debugging it without restarting my app is a huge bonus

I like the NetBeans profiler (though I have an app that hangs when it runs under the profiler, sigh…)
I like that NetBeans will make an Ant build file for me.
I hate that NetBeans projects force me to make a single JAR when I want logical separation of the classes into different Jars (custom ant scripts can deal with that of course, but such projects are a bit crippled in the IDE)
I don’t mind the GUI editor (Matisse) much , but find that it is often still more trouble than it is worth because your UI become far less accessible to your code, so dynamic UI elements are very hard to code.

Adding a file to a project has never been a problem. As others have said - put the file in your source folder where it is supposed to be and NetBeans “just works”, same with Eclipse - though it may need to be manually refreshed so it sees the new file.

I can’t imagine what you are expecting NetBeans to do for you in this case. NetBeans is not a file manager, your OS has that.

All that is true. I believe that extended the refactoring options is on the agenda for the next version, but that doesn’t help you right now :slight_smile:

Regarding the single jar issue - the approach I take is to have a project per jar file. You can make any project depend on another, so any edits will cause the required rebuilds to occur.

As for Matisse - I hear what you’re saying. I find that if you enter your code snippets via the GUI builder interface you get that brittleness that GUI builders are reknowned for. But… you can keep GUI and logic totally seperate if you want. What I do when using Matisse is to draw up the GUI and name the bits that I want to hook into (such as buttons), then in my main code, just add listeners to the named objects. Keeps all the logic in code and GUI in the GUI builder. Works for adding stuff to GUI components as well - name the component in the GUI and grab that name in code and add to / manipulate as per usual.

'Zactly - that was the bit that got me a tad exasperated - there are reasons to like Eclipse - which you mention, but not being able to add files is a not a reason to dislike NB unless you have no clue how it works.

Personally speaking, I think it was the non support of Java5 that made me switch to NB from Eclipse. They’re both good IDEs, thou, and I do think the compition between them is good for us all.

[quote=“kaffiene,post:11,topic:27380”]
I can’t disagree with that. NetBeans in particular has improved tremendously since v3. I use both IDEs now

Another thing I forgot to mention when comparing with Eclipse is the automatic compilation on every save… it really speeds things up combined with not having to relaunch the app. Half the time I’m coding the application is running in the Eclipse debugger at the same time. It would be great if NetBeans did something similar… even if it did take a second or two longer. There have been several times when using NetBeans that I wonder why my code is behaving as if the fix I just made wasn’t applied - because I forgot to actually do a compile of course :)… I just have gotten used to having the code ready to run all the time without thinking about it.

I don’t like using separate projects to get separate jars because then I have to split my source tree and organize my projects differently in Subversion. I already have multiple projects with dependencies, but I like to split out things like resources versus classes into different jars.

I used to be the same, and then I saw the light. Seriously, try it for a couple of weeks and you will never go back.

The downsides are that I find myself trying to ctrl-space things in other apps, wondering why the computer can’t read my mind.
Also it’s now extremely tedious to write code manually.

I used to be solely Emacs based, but Eclipse convinced me that Java IDEs were worth changing for. ;D

No, not done. If that was done that way then I wouldn’t have a problem with it. In versions 3 and 4 that was all you had to do. The current version has some weird thing that means that what you see in the file and project explorer is completely different to what is actually in the directory and there I could find no way to make them sync up. I’m sure there is a way somewhere deep in the depths of the IDE, I don’t care. If they want programmers to be using their product, especially if there is a more than viable competitor, they have to make things work the way their users expect them to. Make them so that you can just drop source files into the src directory and it’s done, you could perhaps have an include/exclude files option on a right click like Visual Studio does but it should be no more complex than that.

It’s like they have gone out of their way to implement complex and clever features and completely forgotten the basic needs of their users.

[quote]NetBeans since version 4 has been a better IDE for me than Eclipse (which I used to use exclusively). Yes, the NB3 version was crap, but FFS, why the hell are you using that and not the much-improved newer versions???
[/quote]
Since version 3, not I am still using version 3. But thanks for ignoring what I wrote and assuming I’m retarded, I appreciate that.

In fairness, if you haven’t run into the problem - maybe you’re running a different version of Netbeans from before it was broken - I can see that you would think it was a really odd post, but I’ve been around here a long time which doesn’t put me above criticism but it should at least suggest that I’m not going to be making the worst of n00b mistakes. There is a feature of the version of Netbeans that I have just upgraded to which means you can’t add existing files to your source tree.

I dumped my JCreator-made source files in the NetBeans src folder and it worked fine.
To add my 2c worth:
I like NetBeans for its auto-jarring & its profiler (especially heap analysis). I hate the way its so slow, clunky & has a busy UI.

JCreator is better in the above respects & it is the only option on slow machines (runs even on my 800MHz box). But I feel bad that I develop Java on a non-Java IDE… :-\

You should give Eclipse a try - I used to use it on my old 800Mhz system and it was plenty fast enough (assuming you have enough ram). Eclipse seems to have got faster since then too. ;D

[quote]Since version 3, not I am still using version 3. But thanks for ignoring what I wrote and assuming I’m retarded, I appreciate that.

In fairness, if you haven’t run into the problem - maybe you’re running a different version of Netbeans from before it was broken - I can see that you would think it was a really odd post, but I’ve been around here a long time which doesn’t put me above criticism but it should at least suggest that I’m not going to be making the worst of n00b mistakes. There is a feature of the version of Netbeans that I have just upgraded to which means you can’t add existing files to your source tree.
[/quote]
Just what version EXACTLY are you using? You have posted twice with vague references to some version after version 3, and that version 4 worked as we have stated… You suggest the “current” version… which might mean 5.5 beta, or 5.0.

I’m using Netbeans 5.0 and it does work by just putting the files in the appropriate place under the src folder. If that isn’t working for you, then something has gone wrong with your particular configuration.

Was your project converted from an Eclipse project, or anything that might make it different from a typical Java Application project?

Since version 3, not I am still using version 3. But thanks for ignoring what I wrote and assuming I’m retarded, I appreciate that.

In fairness, if you haven’t run into the problem - maybe you’re running a different version of Netbeans from before it was broken - I can see that you would think it was a really odd post, but I’ve been around here a long time which doesn’t put me above criticism but it should at least suggest that I’m not going to be making the worst of n00b mistakes. There is a feature of the version of Netbeans that I have just upgraded to which means you can’t add existing files to your source tree.
[/quote]
incorrect unless your using netbean 5.5 beta (which i have not tyred) i drop code in the SRC folder you can event take a class from one project and cut it in to another (in the editor that is) and it changes all imports and packages ;D
plus i tried eclipse and i couldnot make head nor tail of it :stuck_out_tongue:

I’d be REALLY wary of saying “you’re wrong” when someone’s got a bug in elcipse or NB. I’ve had a couple now where I’ve had dozens of people telling me I’m a liar, or a retarded moron, because it works on THEIR mahcines, so obivously it HAS to work on my machine too!

Each time, I’ve eventually found a root cause, usually different internal bugs in the guts of the IDE that have a knock-on effect that some basic functionality doesn’t acutally work later on. e.g. copy/paste not working - that was a good one :).

Or, last week … I found that in eclipse if a source image file timestamp changes, and you do NOT refresh, you can cause your app to run at 1/20th the normal speed. God knows why :slight_smile: but my guess is that it causes some glitch in the live-code-compilation, which gets its knickers in a twist. Took 3 days to discover that all I had to do was select the project and do a force-refresh (and, note, to all the self-righteous idiots: I have had hundreds of files get out of synch before, and never had this problem or anything like it. I generally refresh every now and then “just to be on teh safe side” :))