Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

practicing programs with cmd & notepad.

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Bartender
Posts: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Marshal
Posts: 74085
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 22461
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Notepad as included with Windows is not very good for programming anything.


Fixed
 
Campbell Ritchie
Marshal
Posts: 74085
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you didnt reply me yet sir, please say me about compiling with notepad2 using cmd prompt,.,
 
Campbell Ritchie
Marshal
Posts: 74085
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Patience. It's been less than 10 minutes.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
  • Download the JDK
  • Read the installation instructions
  • Start with Sun's Hello World tutorial
  •  
    Campbell Ritchie
    Marshal
    Posts: 74085
    332
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Marshal
    Posts: 74085
    332
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
    reply
      Bookmark Topic Watch Topic
    • New Topic