File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

practicing programs with cmd & notepad.

 
Senthil Kumaran
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, all.
what all should i do to practice programs in my system without using netbeans or eclipse,
i tried with sun site, it has got jdk, kre, jde ee , which one to download & install,
how to make link path to command prompt to compiler,
please somebody helpme,
 
k karthika
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i think jdk with jre is enough for you now.

http://faq.javaranch.com/java/HowToSetTheClasspath for setting classpath

try to search in for your doubts, that will help you to learn a lot



 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Senthil Kumaran wrote:how to make link path to command prompt to compiler


Just need to set the "path" environment variable (on windows) to the bin folder of your JDK installation.
Check the BeginnersFaq, which for all the details.

No need to set the CLASSPATH at the beginning (unless you are using any third party classes to compile your program).
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you install is called jdk6update12. Don't install jre; jdk includes the jre.
As you have been told, set your system PATH and forget about the CLASSPATH at this stage.
Download a nice text editor designed for programming, eg jEdit, Notepad2, Notepad++, if you are using Windows. Notepad as included with Windows is not very good for programming.
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Notepad as included with Windows is not very good for programming anything.

Fixed
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:
Campbell Ritchie wrote:Notepad as included with Windows is not very good for programming anything.

Fixed
I was being polite
 
Senthil Kumaran
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you didnt reply me yet sir, please say me about compiling with notepad2 using cmd prompt,.,
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Patience. It's been less than 10 minutes.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I had to download Notepad2 myself before trying it out.
I presume you have read the Java Tutorial section about the "hello world" application?
What you do is
  • Open Notepad2
  • Save the file in an appropriate location: create a "Java" folder somewhere, maybe in "my documents"
  • Save the file with an appropriate name, ClassName.java, where ClassName must be the same as the name of the class.
  • Write the Java code in Notepad2, and save again.
  • Open a command prompt and navigate to the folder where your .java file is. If you created a java file in my documents, you just write "cd Java".
  • write "javac ClassName.java"
  • Write "java ClassName"
  • Note where you do say .java and where you don't say .java. Look out for error messages. In the link I gave you, go up one folder (click on where it says "trail" at the top) and look for the "common problems" section.
     
    Campbell Ritchie
    Sheriff
    Pie
    Posts: 47293
    52
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Rob Prime wrote:
    Campbell Ritchie wrote:Notepad as included with Windows is not very good for programming anything.

    Fixed
    When www.vnunet.com recommended Notepad2 (and the similar Notepad++) as better text editors than Notepad (about 3-4 years ago) somebody wrote in to complain and said Notepad was good because it can support right-to-left writing.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic