Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-2007, 05:04 AM
rivci rivci is offline
Newbie
 
Join Date: Nov 2007
Posts: 9
Rep Power: 0
rivci is on a distinguished road
Default compile from notepad++

ooo,

Is it possible to compile and run java from notepad++ ? What about Textpad ?
How?

It's very annoying to type 'java' and 'javac' in commad prompt each time I want to compile and run my java code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-03-2007, 08:56 AM
v0id's Avatar   
v0id v0id is offline
Super Mod
 
Join Date: Apr 2007
Location: Denmark
Posts: 1,880
Last Blog:
CherryPy(thon)
Rep Power: 23
v0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to all
Send a message via MSN to v0id
Default

There are IDE's specific for Java. I'll suggest you to look into one or some of them, instead of an all-around text-editor. Some of the most popular are:
  • NetBeans
  • BlueJ
  • Eclipse
  • JCreator
Use Google to reach them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-03-2007, 03:39 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,352
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default

Eclipse is by far the best Java IDE.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-03-2007, 10:40 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 391
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

AFAIK, Textpad can compile Java from within the editor because they use it in University (I haven't used their machines for a while, prefer my laptop. Sure that the above is the case though).

I really recommend Netbeans. Version 6 is out soon and has basically combined most of the nice Sun backed extensions for 5.5 into the core.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-03-2007, 10:52 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,352
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default

Quote:
Originally Posted by G_Morgan View Post
AFAIK, Textpad can compile Java from within the editor because they use it in University (I haven't used their machines for a while, prefer my laptop. Sure that the above is the case though).

I really recommend Netbeans. Version 6 is out soon and has basically combined most of the nice Sun backed extensions for 5.5 into the core.
Personally I've never used Netbeans, but from my experience with people posting their code that they created in Netbeans, its absolutely horrible code. I can only speculate, but it seems like the Microsoft Frontpage of Java.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-04-2007, 06:52 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 391
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

How does an IDE affect the code people post?

It's true that often auto-completion is used as a crutch and leaves you with unreadable code thanks to method names that could be mistaken for novels. That's a problem in all IDE's (unfortunately Java standards encourage unreadable long method names exacerbating this).

It's also possible/likely that IDE's attract poorer programmers to begin with. I think this most likely accounts for your experience.

Or are you talking about code generation through things like the GUI builder or the UML module?

In the end it comes down to the user though. If the user writes messy code because he uses a feature as a crutch that's his own fault. Whenever I have used an IDE it has never lowered the quality of what I do. Then again I make an effort not to write code that looks like

'object.myVeryLongMethodNameJustSpeedsUpAnnoyingSa neProgrammersEverywhereOnThePlanetInAllOfHistory() ;'

This verbose tendency is the worse thing about Java but is little to do with Netbeans itself. Also Netbeans does more than just Java these days. It has competent support for C/C++ and now Ruby.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-04-2007, 12:40 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,352
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default

If the user writes every line of code by themselves the IDE has hardly anything to do with their code - it just seems that most people who use Netbeans use the GUI builder because a) they are too lazy to build it themselves or b) they don't know how to do it themselves. Then they come to a [this] forum and expect people to debug code that looks like this:

Java Code:
  1. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  2.         getContentPane().setLayout(layout);
  3.         layout.setHorizontalGroup(
  4.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  5.             .addGroup(layout.createSequentialGroup()
  6.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  7.                     .addGroup(layout.createSequentialGroup()
  8.                         .addGap(73, 73, 73)
  9.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  10.                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  11.                                 .addComponent(jLabel1)
  12.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  13.                                 .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  14.                             .addComponent(jButton1)))
  15.                     .addGroup(layout.createSequentialGroup()
  16.                         .addContainerGap(34, Short.MAX_VALUE)
  17.                         .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE)))
  18.                 .addContainerGap())
  19.         );
I've built several games [Scrabble, Monopoly] along with a few other professional GUI's [file uploader, signature generator] and I never had code that looked like that. Why? Because its a product of Netbeans.

Also Eclipse does a lot more than just Java. It also does C/C++, PHP, AJAX, COBOL to name a few -- is also used as the platform of many other IDE's such as Adobe Flex [$499]
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-04-2007, 01:11 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 391
Rep Power: 10
G_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to allG_Morgan is a name known to all
Default

I know Eclipse does more than Java. I've used it previously. It's just you said Netbeans is the Frontpage of Java while it's so much more these days. I find the Netbeans extensions to be of very high quality since most of them are backed directly by Sun.

Eclipse has the same Metisse GUI builder as Netbeans so is capable of generating the same unreadable code.

The problem here is a particular section of Netbeans and it isn't even specific to Netbeans. All GUI builders I've ever seen are rubbish, there's an unwritten rule that none of them can ever be sane and generate code as you'd write it by hand (lots of reasons for this, MS like to lock you into their VS platform, some gain minor performance improvements at the expense of all readability).

If you want to blame anyone then blame MS for making flaky tools of questionable benefit to productivity the norm. By pushing flashy and generally worthless nonsense like GUI builders ahead of actually useful technology like unit testing and refactoring support they have polluted whole sections of the population with stupidity. Those who have been infected will produce rubbish code wherever they go because they will only touch platforms with ad hoc code generation which they don't understand.

The point. Good programmers will produce good code with any IDE. Bad programmers will produce bad code with any IDE. The only question is what tools the IDE provides which allows both to reach their inevitable conclusion the quickest. I just find Netbeans does that quicker for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-13-2007, 03:09 PM
lamagra lamagra is offline
Newbie
 
Join Date: Nov 2007
Location: Illinois
Posts: 6
Rep Power: 0
lamagra is on a distinguished road
Send a message via AIM to lamagra
Default

You cannot compile using notepad ++ but you can do it using the command line operators and or create a batch file that will compile and run it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you write html in notepad? kisna HTML Programming 231 Today 05:30 PM
printing out into notepad from the html using perl lichy Perl 8 12-14-2007 01:06 PM
Lost indentation in Notepad. - Problem solved. Tom Brown HTML Programming 6 11-07-2007 02:03 AM
About HTML Onur Tutorials, Classes and Code 0 08-28-2007 06:13 PM
Compile own file format Lop C# Programming 2 07-09-2006 06:50 PM


All times are GMT -5. The time now is 11:05 PM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads