there are 4 reasons you might want to check,
1. u might have to specify pacakagepath.class name while running the class using java command
2. check if the running version of JVM in ur machine, if you have compiled in Java1.4 and running on Java 1.5 you might face this problem.
3. This occurs because the classpath is not setup or referenced correctly.
Executing your program using this command should correct the problem:
java -classpath . helloworld
4. Most importantly please check your Classpath in the System-Env Variables in Windows, the CLASSPATH veriable should look like this %CLASSPATH%.;C:\Your\Path;. If it is not like that, then you will have only on path in your classpath, and hence you are having tought time figuring out why it is not working for your class. but if you try with java -classpath /your/path option it works, this is bcoz when you specify tht it over rules all other paths, but thts the only path there.
Monday, September 25, 2006
Tuesday, September 19, 2006
Activating Apache for CGI
ScriptAlias
The ScriptAlias directive tells Apache that a particular directory is set aside for CGI programs. Apache will assume that every file in this directory is a CGI program and will attempt to execute it, when that particular resource is requested by a client.
The ScriptAlias direcive looks like:
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
The example shown is from your default httpd.conf configuration file, if you installed Apache in the default location. LOOK IN MY WEB for details apache
The ScriptAlias directive tells Apache that a particular directory is set aside for CGI programs. Apache will assume that every file in this directory is a CGI program and will attempt to execute it, when that particular resource is requested by a client.
The ScriptAlias direcive looks like:
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
The example shown is from your default httpd.conf configuration file, if you installed Apache in the default location. LOOK IN MY WEB for details
Thursday, September 14, 2006
Subscribe to:
Posts (Atom)