• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to compile a servlet from anywhere?  RSS feed

 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Suppose you are on holiday and a customer call you because something goes wrong in your code! You have to get access to your java classes, change the code, compile it and then upload it! You haven�t brought your computer with you, but you have access to an Internet cafe. How can you solve the problem???

My best solution is to get access through ftp with you browser, but how can you compile the java classes? Or are there any better solutions?

I suppose you are not allowed to install any applications at the Internet Cafe!
 
Alain Boucher
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tell your customer that you will take a look at the problem monday morning.

You are on Holiday...
 
Joe Ess
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I keep my laptop with me at all times, but if I were to go without, I'd have PuTTY on my USB thumb drive and log onto my servers via SSH. Learn how to use VI or EMACS and you'll never be without a development environment.
 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay that�s an idea... But I see two problems: The first things is that you have to install the SSH client...Maybe you aren�t allowed to do that?! The second is; how do you compile the classes? No problems with the the jsp files.

In the meantime I found an online compiler:
http://www.innovation.ch/java/java_compile.html
[ April 01, 2005: Message edited by: Jeppe Fjord ]
 
Joe Ess
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeppe Fjord:
The first things is that you have to install the SSH client...Maybe you aren�t allowed to do that?!

PuTTY doesn't need to be installed. Just run from the thumb drive. If you can't run from the thumb drive, there's no shortage of applets that would do the same thing.


The second is; how do you compile the classes? No problems with the the jsp files.


If you are have JSP's they have to be compiled by the app server. There must be a java compiler on that server somewhere.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!