This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Javac versus (Netbeans +Javac) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Javac versus (Netbeans +Javac)" Watch "Javac versus (Netbeans +Javac)" New topic
Author

Javac versus (Netbeans +Javac)

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
I have a question to ask

when i write simple program in Java file having following statement



and run it using JAVAC:

It does not create bytecode, and throw error.


Using Netbeans and Same program:
It will Show output with RunTimeException:

Output :


1) Is Netbeans forcefully generating bytecode?
2) Why it is forcefully Generating bytecode? is this best approach by netbeans?

Kindly Explain thank you

Regards
Azrael Noor
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3615
    
  14

No. If your program fails to compile, NetBeans just runs the last successfully compiled version.

You can disable this by going to the project properties and disabling "Compile on save" under Build>Compile.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javac versus (Netbeans +Javac)