aspose file tools*
The moose likes Linux / UNIX and the fly likes Developing Java on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Developing Java on Linux" Watch "Developing Java on Linux" New topic
Author

Developing Java on Linux

Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
Hi,

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!!!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It's not clear to me either.
Xerces is an XML Parser and Eclipse is an IDE (with an editor, of course).


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
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.

Thanks.
M Beck
Ranch Hand

Joined: Jan 14, 2005
Posts: 323
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.
Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
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.
Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
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?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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 ]
Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
Thanks Ben, vim.org is a big help!

I must mention here that this is an absolutely wonderful site. Getting help and giving it too has been more easier and efficient. You guys should give a pat on the back to yourself
Petr Blahos
Ranch Hand

Joined: Apr 28, 2004
Posts: 131
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?!?

Petr


Get a better web browser:<br /><a href="http://www.mozilla.org/products/firefox/switch.html" target="_blank" rel="nofollow">http://www.mozilla.org/products/firefox/switch.html</a>
Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
Petr,

I think you are right, I am going to develop on Windows and run it on Linux. I hope I don't run into too many problems!

No I did not get these commands from any book. I just tried them since sometimes the commands are just very simple. I know that wasn't right, but I was just tired of googling everything.

Well, going back to Windows for now. But I will keep learning Linux at the same time. The final software has to run on Linux afterall!

Thanks for your time guys.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Developing Java on Linux
 
Similar Threads
Java Blueooth on linux.
Where to get free linux OS
Configuring apache and tomcat
Linux System Variables
New to Linux!!!