473,520 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CMD Prompt for writing JAVA codes

xploreraj
46 New Member
Hi there, would you please explain me in detail on how to use the command prompt for writing, compiling and running java programs (JSE).

Thanks.
Feb 16 '10 #1
5 3588
pbrockway2
151 Recognized Expert New Member
Well, good luck but if you stop and think about it, it is you who should be providing the detail. Things like what your operating system or shell is, since this has a huge bearing on how you use the command line.

Lots of very detailed explanations and descriptions already exist. If nobody cares to reinvent the wheel you might want to check out "Hello World for Windows" (there's a Linux version of the tutorial near by).

If there's anything there that you can't understand, ask about that.
Feb 16 '10 #2
xploreraj
46 New Member
No no, I am a beginner and don't want to use the IDE now. I want to start from the beginning using "cmd prompt".

I want to
(i) create a classname.java file using cmd, (how?)
(ii) save it using cmd, open the editor with C:\>Program.....jdk1.6.0_11>bin>??? edit ???, that has by default blue background, (code?)
(iii) write the source code in that editor, (I know basic programs!!)
(iv) then go back to cmd prompt, compile with javac classname.java, and finally run it by java classname.

I am not getting the exact codes for them. Please help me.

Thanks
Feb 17 '10 #3
xploreraj
46 New Member
Thank you, Pbro, very much.

It's all about writing, saving, compiling and running basic JAVA programs solely with the help of and on cmd prompt in DOS. This is what exactly recommended for beginners.

I have cured the flaws, and summarised them in picture attachments for reference purposes.

Dear beginners, please look at the attachments, if you want to know about the above mentioned situations. Gladly speaking, have patience!! It will be helpful.

Click on the following link.

http://ow.ly/18bPv

Regards,
xploreraj
Feb 17 '10 #4
napster161
2 New Member
Guys sorry for disturbing all of you..
Im new here,just registered >_<
My point is,where can i post my question??
Its about..
I need to make some simple coding for calculator for convert binary to hexadecimal..and vice versa in JAVA
Anyone can help me plz?? T_T

p/s: sorry with my English
Feb 17 '10 #5
xploreraj
46 New Member
1. Read this before you act any further.
2. Ask a Question.
3. Select the appropriate topic.

Hope that helps :-)

Regards,
xploreraj
Feb 17 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
341
by: Brilliance Qian | last post by:
I was used to write codes based on MFC on VC++ 6.0. Now the development platform in our company is immigranted to Microsoft Visual C++ .Net. Can anyone recommend some reference books on Visual C++ .Net? Thanks in advance.
1
1493
by: cheng | last post by:
can anyone give me java codes for dropdown menus for website.....
1
1510
by: fAnSKyer/C# newbie | last post by:
private void startupServer() { try { serverscoket = new ServerSocket(Listener.PORTNUMBER); SERVER_ON = true; } catch (IOException e1) { e1.printStackTrace(); } } public void run() {
7
2991
by: rohitsripathi | last post by:
i need help writing this program... i am in college and i do not have time do this right now as i need to study for another test....but this is due tonight...i will pay $5 if you accept to do it and i will pay another $10 upon completion> CISY 103 - Project 01 - Fall 2007 - 02x Daily Sales report for Kahuna Burgers Overview The manager of...
3
1545
by: Rajesh V | last post by:
Why Java codes take more run time than C/C++ ?
4
1671
by: phpuser123 | last post by:
I just happened to read abt vectors in java..For some practice,I implemented this small script where I Store objects in a vector..Then,I want to invoke the methods of the corresponding objects.My problem is that in this line System.out.println(vc.elementAt(i).test3()); the test3() method of my object is being underlined..I know I am...
0
7299
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7201
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7559
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3282
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1646
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
506
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.