Skip to main content

Instructions for Executing the Java Program.


  • If you don't have JDK in your system, then first you need to download and install Java Development Kit.
  • Instructions to DOWNLOAD and INSTALL JDK.

    Instructions for Executing the Java Program.

  1. Locate the class in which the main() function is present.
  2. Save the program in the name of the class with an extension (*.java). In this example the progm should be saved as ‘Test.java’.
  3. Open the cmd [Command Prompt] and set the address of the saved progm.
  4. Type ‘javac <file_name>’ –enter. [e.g.: javac Test.java] If any errors are there, that will be displayed here.
  5. After correcting all the errors, Save the progm again and compile.
  6. Now type ‘java <file_name_without_extention>’ [e.g.: java Test ].
  7. Your program is now executed.


Comments

Popular posts from this blog

Talky Messenger Documentation & Setup

( Github ) Just created a chat app that runs in Node and Socket. the attempt was worthy. Talky is a messenger app built with Node, Express, Socket, Angular & Bootstrap. It's like a server-client structure. (But obviously not like the one we done at OS lab using shared memory). It has a broadcasting structure. Talky does not keep a log on chat. i.e., It doesn't have a memory or database. When we close the browser window, chat history is lost. There I also added a basic console, protected by a password, to send real-time notifications to active clients. The name 'Talky' was suggested by a friend of mine. (hey, thank you for that. The fact is that I am not really good at naming...😝) What if sometimes your college blocks WhatsApp? Try Talky. ( There is also a website on internet in the name of 'Talky' which has no connection with this one. ) Download Talky Messenger To use Talky, all you need is 3 things: Node server Source code

Repairing my keyboard gone wrong and then right.

Few months ago I tried to repair an old unused keyboard. I opened it cleaned and put everything back in place. But didn't work. Thinking it has met it's end-of-life, I gave it to my sister's daughter, 2 year old Komal. She went hard with it. Once she even thrown it. To my surprise, after a few throws, it's now working properly 🙆.

How to pass variables to res.render() in Node.js

I was trying to figure out how to render a view inside a view, as I was stuck with this issue. Horrible Effects of Misplaced Extensions ;) I was using Node.js platform with ejs template engine. My index.ejs file has an included header.ejs file. Everything works well except that I can't pass values to the variable status in header.ejs. Here is my abstract code... index.ejs header.ejs app.js The most funniest solution ever! The solution is as easy as this. Just remove .ejs extension from the include command. I spent at least an entire night to figure it out.