I am required to develop an XML Parser using JAVA on Linux. Since I am new to Linux, can someone tell me how to go about doing so. I think I need to use an editor, but which one, I do not know. Also, the program should finally compile and run on esither Eclipse or Xerces (which again are not very clear to me). Can someone please help!!!
Originally posted by Ben Souther: It's not clear to me either. Xerces is an XML Parser and Eclipse is an IDE (with an editor, of course).
Well what I am looking to do is write my own parser at the moment using an editor on Linux. Can I simply use the vi to do so an then also compile my code? Or will I need Eclipse or any such editor to write the code and then compile it?
I am sorry if my question sounds vague. Just started with XML after a break of couple of years, and unfortunately I am required to develop on Linux (I use Windows) and show my work.
yes, you can use vi to write Java code on linux. i do.
you don't necessarily have to use vi, however. pretty much any decent linux distribution should come with more different editors to choose between than any one person will ever need; try a few and use the one that you like most. so long as you save your files as plain text - and any editor short of a word processor will do that by default, anyway - you'll be able to compile the Java code you write without any trouble.
posted 15 years ago
Thanks! That is definitely a relief.
Now, how do I use the vi editor? I have come to realise that Linux commands are very different. I tried to make a new file by using 'make' and 'write', but did not work. What should I key in to open a blank file that I will save as a text file. And then how to compile it on Linux itself?
Thanks again, in advance.
posted 15 years ago
Never mind my last question. I have another problem....
I got to open a file and started typing my code at the vi editor. After a couple of lines I had to go back to the previous line to fix something. My Backspace did not work. Is there a different way of correcting what you wrote in vi?
Learning Vi is a project in itself. If you want to learn it (which is an excellent thing to do IMHO) go to vim.org and download one of the free books or tutorials.
If you're new to Linux and Java and really need to get something done, you might want to put learning Vi off until you get comfortable with everything else. [ February 13, 2005: Message edited by: Ben Souther ]
Listen Shweta, why don't you write and compile it on Windows and run on Linux? True, for many people (and I am one of them) the user-friendlyness of Linux desktop is superior, but it has a learning curve and you better use what you are comfortable with. You definitely, can't expect to be comfortable with Linux tomorrow.
Just wondering: these commands "write" and "make" to create an empty file with, you saw them in any version on vi? Or in Windows?!?