Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting started

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
Hi,


It has been a while since I did java...please help.

The server for my web site supports java.

I want to write scripts and include them on my web site..

I can write the code in a text editor, but how can I compile them and load the class file up.

That would be the .java file and the .class file?
 
Hi z35,

I'm a newbie with Java also, but I think you want to do the following:

1) Download the Java SDK (Software Developer Kit) from Sun at:


This will enable you to compile the code that you write in your text editor into a .class file.

2) FTP your .class files up to your server. I don't think you need to upload the .java files as these are just the source code that is compliled into the .class files (I say "I don't think" because I haven't worked with applets, so I'm not sure how you deal with them).

Also, Sun has a Java tutorial at:


Hope this helps!

Sincerely,

Codehead
 
okay you are right.

Download JDK 1.4 SE from java.sun.com
install that correctly...
make sure you have the correct CLASSPATH variables
and the PATH set.

then download textpad from that tool does it all...
it highlights syntax and even compiles *.java files to *.class files... and the *.class files are the ones that do the magic.

enjoy and welcome to the world of JAVA...
 
Are you wanting to write applets or servlets/jsps? When you say that you web server has java support it sounds to me like you want to run servlets/jsps. If that is the case you need to either write and compile you servlets, or write your jsps and put them in a place where your servlet engine can get to them.

-jw
 
hello everyone,

Thanks for your posts. I got the answers I needed.

I am starting with some simple servlets for my web site.

I hope this works!

bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top