473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Writing Java code in cmd??

Hi people, just seen a video with a guy writing actual java code in cmd, he was using some command like "VI" then his file name to launch the editor which opened up a new cmd line window where he could start editing the file! I've never seen this before so did a little digging around on google and all i can find is a "VI" editer for Unix based platforms.

Anybody got any ideas what this program might be??? (oh and he was using windows Xp!)

Thatnks
Oct 13 '11 #1
4 2715
sweet:)i did a little more digging and found it in terminal on my macbook! must be something similar for windows to though?
Oct 13 '11 #2
Rabbit
12,516 Expert Mod 8TB
vi is just a text editor. Like notepad. You can write java code in any text editor. It just won't run it unless you have the java compiler/interpreter installed.
Oct 13 '11 #3
Frinavale
9,735 Expert Mod 8TB
Hehe :)

VI does look a lot like a "cmd" window on some operating systems I guess.

It's available natively on all of the Linux operating systems that I've used in the past. I don't know if it's native on every Linux system though. Apparently you discovered it's available on your macbook too.

There is a Windows version of VI (I used to use it) but it doesn't look like a "cmd" window.

VI's pretty complicated...so be prepared to read the manual a lot! Once people figure out all of the "short cuts" and how to use VI they seem to be pretty happy with it. I found it overly complicated and so, being a lazy programmer, started using different text editors and IDEs for software development.

-Frinny
Oct 14 '11 #4
drhowarddrfine
7,435 Expert 4TB
It would be unusual to find any *nix system without vi. It's the only editor we use at my company except for emacs. Macbook has it because OSX is Unix.

What's cool about vi is your hands never need to leave the keyboard. You can jump around anywhere on the page or the full document using short, simple, quick commands. You can search, edit, select whole blocks, subsitution of chars, words, paragraphs, and on and on with a quick keystroke.

An improved version of vi is vim that includes better functionality.

vi is not complicated but learning just comes with usage.
Oct 14 '11 #5

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

Similar topics

40
by: post400 | last post by:
Hi, there is another famous book 'Writing solid code' but does it apply to Python ? Or it's usable only by Microsoft C programmers ? The author seems to be an ex-Microsoft guy ! Thanks ,...
13
by: Ravi | last post by:
Do we have anything that could convert C++ code to java code? To what extent are such tools reliable? TIA. -- main(){char s="sbwjAeftqbnnfe/dpn!ps!CSbwjACjhgppu/dpn"; int...
22
by: larry | last post by:
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading...
2
by: Deepak | last post by:
Hi, is there a way to call Sun Java code from C# code ? I have seen a way that is posted somewhere on the web that says to use System command to spawn a DOS window and then pass a string to this...
4
by: Khan | last post by:
hi, i'm writing java code inside <body> tag of java script file. all the java code is executing at frame startup. how can i call that java code only when i click on a button. I can call jscript...
4
by: mjahabarsadiq | last post by:
HELLO FRIENDS I HAVE ONE JAVA CODE WHICH PARSES AN XML FILE AND PRODUCE A QUERY TO CREATE TABEL IN A DATABASE. BUT I NEED THE CODE TO BE USED IN A JSP PAGE. HOW TO USE THIS PAGE WITH JSP. ...
2
by: kutzi_lala_yey | last post by:
If You were hired by a gasoline firm to create a program that will tell whether which route is faster and which route is more likely to be fuel efficient separately. A test car was provided for you...
2
by: KyleUbenk | last post by:
Hello, I am attempting to compile java code from within my program. Basically I have a file in the directory with Java source code, and I want to be able to compile it from within my program. The...
0
by: anuptosh | last post by:
Hi, I have been trying to run the below example to get a Oracle Array as an output from a Java code. This is an example I have found on the web. But, the expected result is that the code should...
6
by: bw171 | last post by:
I got some java code below, and upon trying to compile it in my unix environment, i get the following error ()> javac Downloader.java Downloader.java:37: ';' expected private enum...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.