|
楼主 |
发表于 2005-4-19 18:59:22
|
显示全部楼层
Sun environment.
1. To keep it simple, put all the java files in your public_html subdirectory.
2. We shall need to tell Java where to find its and your classes. Put the following into your .cshrc file (please cp .cshrc .cshrc.backup before making the changes in case you make a mistake):
* Put this near the top: set javapath = ( /opt/local/java/bin )
* Look for the following, then add: set path = (... $javapath ... ) (But don't add the ...!)
* You can source .cshrc to reexecute the script.
Windows environment.
I created a simple batch jasset.bat file in my java subdirectory that I invoke just before compiling and executing:
set classpath=.;c:\jdk1.1.5\bin;
set path=c:\jdk1.1.5\bin;%path%
:beat :beat :beat :beat :beat :beat :beat :beat :beat :beat :beat :beat :beat |
|