473,520 Members | 11,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing Java code in cmd??

3 New Member
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 2716
Cjenna7
3 New Member
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 Recognized Expert Moderator MVP
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 Recognized Expert Moderator Expert
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 Recognized Expert Expert
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
4220
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 , post400
13
27972
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 i;for(i=0;i<39;putchar(s-1));return 0;}
22
2145
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 to me: "The search for an easy, productive, and very powerful programming language led to the birth of Visual C#. Visual C# incorporates the best...
2
1354
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 window so that the string (whihc looks like: java some_classname ) now acts as if we are invoking java from command prompt. But I would like to...
4
4013
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 function on button click , but i want to call java code on button click. advise some solution.
4
2485
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. I AM USING TOMCAT 4.1 WEBSERVER FOR COMPILING JSP PAGES.
2
2161
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 to model your software. This test car holds a full tank of 40 Liters and burns fuel at a rate of 7 Liters per kilometer. Your software should be...
2
2901
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 only solution I have found so far is running the javac process : Process.Start("javac source.java); But this doesn't seem to work (File not found). ...
0
4077
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 return me Array element type code 1, but it is returning me type code 12 and the array in a junk or unreadable format . Our environment is JDK 1.4,...
6
4367
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 ReportFormat { ^ 1 error This is a portion of the code below
0
7228
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
7457
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. ...
0
7620
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7195
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
7585
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
5761
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3292
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1672
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
850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.