• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing Java on Linux

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not clear to me either.
Xerces is an XML Parser and Eclipse is an IDE (with an editor, of course).
 
Shweta Pershad
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Shweta Pershad
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic