Variables path & classpath
Hello
i'm using tomcat 5.x -> 5.5.12
and editor: Textpad
when compiling: these are the errors:
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:11: cannot find symbol
symbol: class HttpServlet
public class Controller extends HttpServlet
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:13: cannot find symbol
symbol : class HttpServletRequest
location: class Controller
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:13: cannot find symbol
symbol : class HttpServletResponse
location: class Controller
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:13: cannot find symbol
symbol : class ServletException
location: class Controller
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:64: cannot find symbol
symbol : class HttpServletResponse
location: class Controller
private void sendPage(HttpServletResponse reply, String s_Resultaat) throws IOException
^
C:\Documents and Settings\Michelle & Bastiaan\Bureaublad\261139bl\Controller.java:16: cannot find symbol
symbol : class HttpSession
location: class Controller
HttpSession session = request.getSession();
^
.\DBConnection.java:10: package javax.servlet does not exist
import javax.servlet.*;
^
.\DBConnection.java:11: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
10 errors
these are my user variables:
JAVA_HOME C:\Program Files\Java\jdk1.5.0_12
TEMP %USERPROFILE%\Local Settings\Temp
TMP %USERPROFILE%\Local Settings\Temp
these are my system variables:
CLASSPATH .;C:\Program Files\Java\jdk1.5.0_12\lib\tools.jar;apache-tomcat-5.5.23/common/lib/servlet_api.jar
ComSpec %SystemRoot%\system32\cmd.exe
FP_NO_HOST_CHECK NO
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\Program Files\Java\jdk1.5.0_12\bin;apache-tomcat-5.5.23/bin
PATHTEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 15 Model 2 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 15
PROCESSOR_REVISION 0204
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
windir C:\WINDOWS
can somebody help me?
gr. Bastiaan
The Netherlands
CLASSPATH .;C:\Program Files\Java\jdk1.5.0_12\lib\tools.jar;apache-tomcat-5.5.23/common/lib/servlet_api.jarThe second part of that is unlikely to be correct unless you are in a specific directory.
Similar Messages
-
Environment variables like classpath,JAVA_HOME,path
Sir,
I work as a java developer in a software company.I had more problems when executing servlets."could not create the java vitual machine" error comes when i try to compile java servlet file.also I do not know that how to set environment variables like classpath,path and JAVA_HOME.Also I want to know them with proper examples.
Thanking you.
KRameshHi Teches
I am facing few problem in starting eclipse 3.0 ; I had gone trogh forum , 1 of the persone suggest me to upgrade the java version.For this
I had installed java 1.5 and set the following variable
JAVA_HOME ---> to the home dir of JAVA
PATH ---><home dir>/bin
CLASSPATH --><jre>/lib
But when ever i m giving "java -version" command on console , the result is as follows:
C:\>java -version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
suggestion are welcome Plz.
; -
Troubles with PATH/CLASSPATH
I have been trying to set up my PATH/CLASSPATH variables on my WINDOWS XP computer for quite some time but cant quite get it right. In the PATH variable, if I put the entry for the java SDK first, I can use java commands via cmd.exe but I cant use windows commands (such as ping). If I put the default entries at the begining then the java entry at the end, I can use windows commands, but not the java ones. Why does it only register the first entry on the list?
The CLASSPATH variable works fine.Possibly you are including a space " " in the expression?
They aren't allowed. Here's my path statement (on 98SE):
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.2_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
Copy and paste your statement here if you still have problems. -
How do I make a variable path in AppleScript?
I'm mass distributing an application, and for the next update I want to add customization. My application currently make a folder in the "Documents" folder. The folder is called "MCL_CONFIG". What I need to do is make a unicode text file in "MCL_CONFIG". Since it's going to be used on many different computers the path to where I'm making the new file has to change depending on the user. How can I make a variable path to a non-directory? Here's the section of my code with the problem:
tell application "Finder"
if folder MCLConfig exists then
else
display dialog "Welcome to Mc Launcher! You will only recieve this message once, unless you delete the MCL_CONFIG folder." buttons {"Ok"} default button 1
make new folder at New_User with properties {name:"MCL_CONFIG"}
end if
end tell
It's not shown but I set the variable MCLCONFIG to (path to documents folder from user domain) & "MCL_CONFIG" as text.
As a side note how do I make the code look like it does in applescript, here?You can do something like:
set supportFolder to ((path to application support from user domain) as text)
set appName to "My Spiffy App"
set subFolder to "MCL_CONFIG"
tell application "Finder" -- add application support folders if needed
if not (exists folder (supportFolder & appName)) then
make new folder at folder supportFolder with properties {name:appName}
make new folder at result with properties {name:subFolder}
end if
end tell
Edit: it is recommended that the folder in Application Support be named with your application's bundle identifier, but most just use the application name. -
Dynamic ORACLE_HOME in env variable PATH not working
Hi,
We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
Have changed system env variable PATH to have %ORACLE_HOME%\bin; at very start
when do PATH to check value shows
literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.user5716448 wrote:
Hi,
We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
Have changed system env variable PATH to have %ORACLE_HOME%\bin; at very start
when do PATH to check value shows
literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.
open Command Window & issue command belowecho %ORACLE_HOME%COPY the results, then PASTE all back here -
when i am going to Install 11gR2 then thsi error shows how to solve it plz give me guidance
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Expected Value: 1023
Actual Value: 0HELLO iSHAN SHAH
JUST EXPLAIN US YOUR PROBLEM IN DEPTH.
TELL US YOUR HARDWARE AND SOFTWARE CONFIGURATION.
ALSO TELL US IN WHICH STEP OF INSTALLATION , THIS ERROR RAISED.
THANKS
HARSH SHAH -
Environment variable path failed in oracle 11g installation
hi all,
i am reinstalling oracel 11g in my window 7 64 bit machine after i uninstalled it. however, i got an issue that is environment variable path failed in the installation process. this didn't happen when i firstly successfully installed oracle. how can i fix the issue? thanks in advance.
regards,
honguser571093 wrote:
hi,
the problem is i uninstalled oracle 11g in my windows 7 64 bit machine and then try to install it on my machine. during the prerequisite check stage, an error message popped up like this:
environment variable: "PATH" failed
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length. (more details)
Expected Value
: 1023
Actual Value
: 1433
so, what is the reason caused this problem and how to fix it. thanks in advance.
hongI believe the error message is self-explanatory - assuming you you using a supported database and OS combination (which are unknown)
environment variable: "PATH" failed+
This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.+
Expected Value+
*: 1023*
Actual Value+
*: 1433*
Your PATH variable exceeds the limit of 1023 characters
HTH
Srini -
Shorten environment variable path
I am installing Oracle database 10G on Windows XP. I am getting an error message saying 'The value of the environment variable path is more than 1023 characters.' How do I shorten this path, where do I go? thanks
My Computer ( right click) -> property -> Advance -> Environment Variable
Select patch and edit it , remove all not required paths
Virag -
Hi all,
I am installing 11g database in order to play with it. My OS is windows 7 premium edition, personnal PC and I am having that message:
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Valeur attendue
: 1023
Valeur réelle
: 1558
Liste des erreurs :
PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "DATAEBULLITION" - Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;". However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows. - Action: Ensure that the sum of the lengths of your current PATH environment variable and that of "%ORACLE_HOME%/bin;" does not exceed the operating system limit. Restart the installer after correcting the setting for environment variable
Is anyone could help me as I don't understand what is PATH and how to reinstall it ?
THank youI found the answer by reading other user question.
-
Linux - j2sdk1.4.2_06 can't set path/classpath
I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..
I am trying to break this down as simple as possible.
-I am logged into Linux as root.
-then download the j2sdk1.4.2_06 in the /USR/ dir
-I did chmod +x j2sdk1.4.2_06...
-then./j2sdk1.4.2_06...
it installed successfully.
but setting up the path classpath is different.
I would like two things:
for my mozilla browser to now be java enabled, AND
I would like to create a directory called javasrc to hold all my java source code
but I do not want to develop in root, I want any user to be able to use the javasrc directory and be able to compile and run the programs..
what exactly do I edit. someone said I need to edit a file in /ETC/PROFILE
I want to try this..but I dont think it is correct
export JAVA_HOME=/usr/j2sdk1.4.2_06
PATH=$HOME:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/X11:/sbin:/home/mqm/bin:$JAVA_HOME/bin
export PATHthanksI'd advice you to not touch CLASSPATH until you've studied how packages and classloading work. Until then it will just get on your way.
What comes to setting PATH, the file to modify in /etc depends on your distribution -- a least in some versions of SuSE /etc/profile is generated by a script and you are supposed to modify /etc/profile.local instead. You could also edit a file called ".bashrc" in your home directory. The manual page of bash explains the differences between using these files. If you modify /etc/profile you need to either start a new login shell or source the file for the change to have effect. The lines to write are:export JAVA_HOME=/usr/j2sdk1.4.2_06
export PATH=$PATH:$JAVA_HOME/bin -
this is really frustrating ive been googling for hours trying to find the solution! any help would be greatly appreciated. I have windows 7 and the newest gen ipod nano
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
AS3 alternatives to _global variable path?
Hi, through out a very old complicated fla there are buttons which set variables using _global paths
such as:
function menu1_2(Event:MouseEvent) {
global.mode = "hide_hotbox";
MovieClip(this).gotoAndStop("stage_1_b");
How can I make the variable "hide_hotbox" and others like it accessible and changeable from any movie clip -- whether they be nested in other movie clips or on the main timeline, etc?
Thank you...(wits end)...extremely appreciatedyes I will
and post the code here
in the meantime, I'm also going to ask as a side note on future threads: how can one keep up with scripting trends and expected actionscript changes?
I just have one, very, very complicated website -- and otherwise work in CG, etc. most of my time...a few times a year I make graphical changes to this website but updating it from AS 1 to AS 2 and now AS 3 has been a heart stopping nightmare...I'm sure, absolutely confident, if and when I have a family and children I just will not be able to keep up this site...I plan to scale it down, but, how can one be sure to write code now which has a chance of lasting? Are there trends and viewpoints within the Actionscript community which one could use to anticipate changes in AS 4. I would have put my code on timelines rather than buttons and named all the buttons when I originally created the site in AS 1 if I had known I'd have to refamiliarize myself with the guts and bolts of this monster horrific site once again. When I am senial, this site is dead...it is taking every neuron I have.
sources used for research thus far:
http://www.uza.lt/codex/as3-global-object/
most elegant:
http://www.kirupa.com/forum/showthread.php?p=2110832
clear:
http://www.websitemediaplayers.com/blog/global-variables-as3/
thanks again -
Path, classpath, java build path???
I am happy with what path and classpath does but what is java build path for? could someone point me in the direction of where I can find more info?
cool but the IDE also had a place where you could set the classpath. so is the java build path just like an extra way of setting up classes for different projects where the classpath in the IDE is used by all projects?
-
Hi everybody,
I am new to the Freebsd env, and I am having trouble with compiling java code. Below is my system configurations. Note. I am able to compile and run the Hello World program., but when I import classes into my code I get "cannot resolve symbol".
The path and classpath are setup in the .cshrc file as I am using the csh shell.
%which java
/usr/local/jdk1.4.2/bin/java
%which javac
/usr/local/jdk1.4.2/bin/javac
%echo $CLASSPATH
/usr/local/jdk1.4.2/lib/tools.jar:/usr/local/jdk1.4.2/lib/dt.jar:/usr/local/jdk1.4.2/jre/lib/rt.jar:
%echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/local/jdk1.4.2/bin:/usr/X11R6/bin:/home/george/bin
set JAVA_HOME=/usr/local/jdk1.4.2
If anyone has any suggestions they are welcome. ThanksI am pretty clueless on Freebsd but you might need to add .: to your Classpath or may be try to use the -classpath option in your command line:javac -classpath some_directory your_class.java
-
Setting Path,Classpath in Mandrake 8.2
I have added the following lines to the .bashrc .bash_profile for my regular user
and /etc/profile and i still cannot find the java path with a regular user but using root i can
Shouldn't the /etc/profile allow all users to access the java directory?
export JAVA_HOME=/usr/local/j2sdk1.4.0/
export PATH=$PATH:$JAVA_HOME/bin/
export CLASSPATH=$JAVA_HOME/lib/
ThanksI'm in the same boat as you are. Did you ever get the java working??
Maybe you are looking for
-
Itunes 10.6.3 - Just update to the new Itunes and the album artwork is not sticking anymore... I upload the artwork and when I change songs and go back the art is gone. Anyone with similar issue ?
-
Navigation buttons not working in iPad Adobe Content Viewer
I am reposting this as a separate discussion from this thread (http://forums.adobe.com/message/5551618#5551618), since Bob B. said this is a separate bug from the nav button problems in Single Edition apps that people were encountering. Here is my pr
-
I need to make a flash banner with three images, with a simple "cover left" or "reveal to right" type transition between them with maybe a 7 second delay and then repeat infinitely. I have been trying for days to do it in various programs, and have r
-
updated ipad after syncing. now it's in lala land and i have to restore before it will come on. I DON'T WANT TO LOSE WHAT'S ON THERE. HELP!
-
How to use code in iphone 4s verizon?
Hi, I have iphone 4s verizon mobile. I have unlocked the mobile and i have unlock code. while changing the sim there is no option for give the code and i cannot use the phone.