• 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
  • Tim Cooke
  • Ron McLeod
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Eclipse Temurin Practical Use in Coommand Prompt

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse Temurin Downloaded and looking for actual use to run % javac file after editing in wordpad as .java file

My specific issues are which directory I shall store the wordpad .txt file as .java file

and

Later how to type in command prompt application to run the java file.

I am beginner, just started now.

Need help


 
Marshal
Posts: 81605
593
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Venkatesh Kairamkonda wrote:. . . which directory I shall store the wordpad .txt file as .java file

Don't. Either use Eclipse for everything, or run all your code from the command line.
Beginners are probably better off using the command line or terminal until they are familiar with its instructions, particularly how to set a CLASSPATH.
Don't set a system CLASSPATH, but do set a system PATH. Test your PATH by running the following command line or terminal instructions:-I recommend you don't use MS Notepad, but download Notepad++, an unrelated text editor, but much better.


. . . Later how to type in command prompt application to run the java file. . . .

Start by running the following two instructions at the command line. If you get names and numbers back, you are probably all right. You will have trouble if the result of the javac test is bigger than the result of the java test.You can of course call the new directory anything you like. Next time you open the command line or terminal, only use line 2 because line 1 won't do something twice. I recommend you put your Java® work in that directory, and you can of course create as many subdirectories as you want.Look at these FAQ, which include a section about your first Java® program.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic