Click to See Complete Forum and Search --> : What to do with java after a compile.


miteycasey
11-26-2002, 05:42 PM
I ran javac file name and I got 5 .class files. What do I do now? How do I access the files? I have a machine running tomcat. do I need to put the files on that machine and run them there after I create a webpage?

Any help would be appreciated since I'm by no means a programmer(sys admin actually). Is there a good howto? This is a project that fell into my lap at work.

Thanks!!!!

shaggz2dope
11-26-2002, 05:50 PM
<applet applet code="YourClassFile.class" width=500 height=120>
</applet>


Create an html file and use the tags above in order to put an applet into an html page.


Once this is done you can of course open the html page in your browser or use


appletviewer YourHtmlFile.htm

mingshun
11-26-2002, 10:38 PM
Originally posted by miteycasey
I ran javac file name and I got 5 .class files. What do I do now? How do I access the files? I have a machine running tomcat. do I need to put the files on that machine and run them there after I create a webpage?


Hold on, are you writing servlets? Or normal Java applications? For servlets, you need to put it in a specific directory (which I forgot where) first for the tomcat engine to invoke it. You are not writing client-side programs, aren't you?

miteycasey
11-27-2002, 12:01 PM
Actually I'm not sure.
I'm trying to run a java chat client/chat server. The code can be found here:
http://www.planet-source-code.com/xq/ASP/txtCodeId.2932/lngWId.2/qx/vb/scripts/ShowCode.htm
I tried to put the client.class file in a html page put I got a class not found error.

As I mentioned before I'm more of a sys admin than a programmer. So thanks for any help possible.