Help displaying/ setting class path
On a Windows 2000 system, from the command line, how can I
1. display the classpath
2. add a search directory to the classpath
thanks,
Eric
On a Windows 2000 system, from the command line, how
can I
1. display the classpathecho %CLASSPATH%
I believe.
2. add a search directory to the classpathI think it's
set CLASSPATH=%CLASSPATH%;yourExtraClassPathPartHere
Also you can do it by going to Settings / Control Panel / System / Advanced tab / Environment Variables button.
Similar Messages
-
How can i set class path in ubuntu JAVA_HOME ?
how can i set class path in ubuntu <JAVA_HOME>?
Note that on *nix
environment variable names are case sensitive.
Also, you are again being vague; is it [this it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html] or [that it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html] -
hi,
I just downloaded and installed JDK 5 update 7 and need help setting the class path. Can someone give me instructions on how to do this in windows XP please.
Cheersthanks for the replies guys.
I'm still having problems. What I want to be able to do is compile a .java file using the Command Prompt in windows XP.
Currently, when I type javac I get the message:
'javac' is not recognized as an internal or external command, operable program or batch file.I set the classpath to C:\jdk1.5.0_07\bin\ but when I type path in the command prompt this path doesn't appear.
If I change the directory in the command prompt to C:\jdk1.5.0_07\bin\ then type javac it works (I get a list of commands) but I need it to work from within any folder.
Have I set the classpath incorrectly or is it something else?
Thanks -
How to set class path for mysql
hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
in the command prompt, i compile C:\javac abc.java and run java abc.
when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
i am using Window xp. can anybody help me??? TQ.hai, I have been trying to make a java program read
from mysql database. but i don't know how to set the
class path for mysql-connector-java-5_1_.0.6-bin. i
set the class path in system variable as C:\Program
Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
a-5_1_.0.6-bin.
in the command prompt, i compile C:\javac abc.java
and run java abc.
when run it come out error
java.lang.ClassNotFoundException:
com.mysql.jdbc.Driver
i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
Goto properties->advanced->environment variables.
Look for 'classpath' under system variable.
Select it and click edit.
put ';' and path of the mysql connector jar at the end
suppose if u have jar file under d:/driver/mysqlconnector.jar
thn put this value in variable value text box
;d:/driver/mysqlconnector.jar
or simply put ur driver jar file in jre/lib/ext folder
D:\j2sdk1.4.2_03\jre\lib\ext
[Servlet tutorial|http://www.jsptube.com] -
How do I set class path for 3rd-party classes?
Hello, I need to know how to set the classpath so that I can use the apache's third-party lang classes. I downloaded commons.apache.org/lang/download_lang.cgi. And I need to know next steps. Move the unzipped files to which location? And type what commands?
Thanks, MelissaHi, it's not the server that I am running. My instructor told me to download an apache class file for the Apache Lang library and then set my class path to point to the executable. Her instructions are for Windows users, however. I need to do something in the terminal shell but I don't know precisely what.
mg -
Help Required for Class Path Setting
Plz Inform me How I Set Classpath in DOS Environment.
as soon as Possible.
[email protected]You don't. Java doesn't run in DOS.
Presumably you are refering to windows.
From the command line
set CLASSPATH=.;c:\mydir
To always set it that way.
-in win 9x use the same 'set' command in the autoexec.bat file which should be in c:\
-in win NT use the start->settings->control panel->system. Use the 'environment tab' The variable can be set either in the user or system space.
For the newer windows they probably use something like the above (probably the second method.) -
How to set (class)paths for a Managed server?
How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin")
to a remotely-started managed server?
The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed
server's Remote Start tab says on pages 3-9 to 3-10 that, "If you don't specify
values for these fields and attempt to start the target server from the Administration
Console, the Node Manager will attempt to start the target server with the values
for these attributes that were used when starting the Node Manager. The Node Manager
will be able to start the Managed Server in that case if you specified the required
values on the command line when starting the Node Manager."
So it sounds as if I can get the java.library.path definition and CLASSPATH sent
to the server via the Node Manager startup command.
Does that work when using the Node Manager as an NT Service? Here is my Win2K
command file for setting up the Node Manager as an NT Service. Note that I'm trying
to tell it where to find the Windows native libraries (wlserver6.1\bin for wlntio.dll)
and the JDBC drivers (C:\SHADOW\jdbc\... and C:\Orant\jdbc\... ) :
========== BEGIN installNMNtService.cmd ================ @echo off
SETLOCAL
cd C:\p\bea\wlserver6.1\
rem *** Set Classpath to load Weblogic Classes
set CLASSPATH=.;C:\p\bea\wlserver6.1\lib\weblogic_sp.jar;C:\p\bea\wlserver6.1\lib\weblogic.jar;C:\SHADOW\JDBC\scjd12.jar;C:\orant\jdbc\lib\classes111.zip
rem *** Set Command Line for service to execute
rem *** %JAVA_HOME%\java will automatically be prepended.
set CMDLINE=" -ms16m -mx16m -classpath \"%CLASSPATH%\" \"-Dbea.home=C:\p\bea\"
\"-Djava.security.policy==C:\p\bea\wlserver6.1/lib/weblogic.policy\" \"-Dweblogic.nodemanager.weblogicHome=C:\p\bea\wlserver6.1\"
\"-Dweblogic.nodemanager.reverseDNSenabled=true\" \"-Djava.library.path=c:\p\bea\wlserver6.1\bin\"
\"-Dweblogic.nodemanager.listenAddress=111.111.111.123\" \"-Dweblogic.nodemanager.trustedHosts=./config/nodemanager.hosts\"
weblogic.nodemanager.NodeManager"
rem *** Install the service
"C:\p\bea\wlserver6.1\bin\beasvc" -install -svcname:EDANodeManager -javahome:"C:\p\bea\jdk131"
-execdir:"C:\p\bea\wlserver6.1" -extrapath:"C:\p\bea\wlserver6.1\bin" -cmdline:%CMDLINE%
ENDLOCAL
================= END installNMNtService.cmd ==================
But when I start a server remotely, it can't find the native libraries and it
can't find the JDBC libraries in the CLASSPATH. Otherwise, it can serve up HTML
pages at the correct port number so I know it's running.
When starting a managed server remotely via the WLS 6.1 console, how do I tell
the managed server where the native libraries and JDBC libraries are?
Thanks!Hi,
The memory setting on the WC_Spaces managed servers can be seen as mentioned below.
ps -eaf | grep Spaces
Above command shows something like this at the top of the output:
/a01/app/oraweb/middle/jrrt-3.1.2-1.6.0/bin/java -jrockit -Xms512m -Xmx1024m -Dweblogic.Name=WC_Spaces1 ...
Regards
Sreedhar -
Setting class path poi API...
Hi,
Please help me where to set the classpath for poi jar in my application?????If you're talking about a web application context, then just put the JAR file in one of the default classpath paths, e.g. /WEB-INF/lib.
-
I recently installed 1.4.2_01 on my computer with Windows 98. I have a previous version 1.1.2_01 installed. Everything worked fine until I went to update classpath. I have changed autoexec.bat to the new version
but when I run a "path" coomand in DOS it still reflects the old 1.1.2_01 in the PATH=. I have uninstalled everything and reinstalled but that seemed to be of no help. Any suggestions? SteveI recently installed 1.4.2_01 on my computer with
Windows 98. I have a previous version 1.1.2_01
installed. Everything worked fine until I went to
update classpath. I have changed autoexec.bat to the
new version
but when I run a "path" coomand in DOS it still
reflects the old 1.1.2_01 in the PATH=. I have
uninstalled everything and reinstalled but that seemed
to be of no help. Any suggestions? StevePath and Classpath are two different variables. In your autoexec.bat, put a line at the endset Path=c:\j2sdk1.4.2_01\bin;%path%[pre](I am assuming c:\j2sdk1.4.2_01 is where you installed java.) If your autoexec does not contain any line with "set Classpath=..." then don't worry about it for now. If you do have a Classpath setting, post it if you are having trouble. -
Need help with setting a path - AppleScript
This works on the local drive:
tell application "Finder"
set Path_00 to "Macintosh HD:foo:" as alias
set FileList_00 to files in Path_00
set FileList_00 to sort FileList_00 by name
set imgFile_00 to name of last item in FileList_00
set the FullPath to "Macintosh HD:foo:" & imgFile_00
end tell
But when i change it a server mount (AFP), i get "file wasn't found:
tell application "Finder"
set Path_00 to "Macintosh HD:Volumes:server:foo:" as alias
set FileList_00 to files in Path_00
set FileList_00 to sort FileList_00 by name
set imgFile_00 to name of last item in FileList_00
set the FullPath to "Macintosh HD:foo:" & imgFile_00
end tell
I mucked around with POSIX paths, searched google, and still i'm missing something.
os 10.6
as 2.1.2
ThanksI got it. Amazing what a lunch break can do.
I was thinking i need to follow the unix path /Volumes/... But i'm dealing with the Finder so it doesn't know that directory even exists.
Fixed with:
tell application "Finder"
set Path_00 to "server:foo:" as alias
set FileList_00 to files in Path_00
set FileList_00 to sort FileList_00 by name
set imgFile_00 to name of last item in FileList_00
set the FullPath to "Macintosh HD:foo:" & imgFile_00
end tell -
Imm new to Java Techology...plz tell me in detail bout how to "Set Class path", ....In Detail...Bye
To set class path
we type
set classpath= c:\j2sdk folder\lib;.;
set path = c:\j2sdk folder\bin;.;
setting these both will work out. in this .; ending means the class path will be available throught otu the command prompt where ever which ever folder it is..
well for setting permanent in the system for win2000 OS
right click on myComputer icon there from that option you select properties
then you get a pop up window where you have few tabs in which last one is advanced -- click on it
then you get there button placed vertically .... in which there is button callled Environment variables
click on it... you will get an window...
in that see the user variables box
In this if there is a variable to see as classpath then append the path of j2sdk folder\lib;.;
if not present then create a variable and set the name to classpath and value to the pathof folder\bin;
similalry path in that also if exist then edit it and give path to bin folder of j2sdk folder..
this will work out for you..
All The BEst -
Hey there. I've installed java on a system with windows me, I followed the instructions on the homepage and got java working but I cant get my class path to work.
the file is located in my c:\ST151CLASSES\classes
I put "SET CLASS PATH c:\ST151CLASSES\classes" in my autoexec.bat. Is there something I'm missing? any help would be nice thanks.if you set your classpath in autoexec.bat, i think the line should go like this:
set classpath = %classpath%;c:\ST151CLASSES\classes
but it'd be a better way to add it to the CLASSPATH environment variable in your system properties (My Computer -> Properties -> Environment Variables) -
Hi guys I brought new machine with xp operating system. I installed j2re1.4.1
I am confused while setting class path, Any one help me...
How to do that...Follow this link and then folow the thread through - it has it all.
http://forum.java.sun.com/thread.jsp?forum=54&thread=297394&start=15&range=15#1195467 -
Hi
I am new to solaris environment. I have a java file which is dependent on xerces.jar. to compile the file i need to set the classpath. pleas let me know how to set class path for xerces.jar which is in usr/raj/ folder structure of solaris machine.
if there is any on the fly method of setting classpath plz let me know....
thanks a lot
rajWhat shell are you using?
csh: setenv CLASSPATH ${CLASSPATH}:/usr/raj/xerces.jarsh/ksh: CLASSPATH=${CLASSPATH}:/usr/raj/xerces.jar
export CLASSPATH -
hi ,
i am facing classpath issue when try to run rmi server. i have a jar file
(RmiServer.jar) for rmi server , which contain some other jar file .
when i run this jar file it throws ClassNotFoundException
the java classloader are not able to load class from jar(RmiServer.jar)
file. pls. tell me what i did wrong .
Regards
Brajesh KActully you dont understand my problem.
i have 2 jar file RmiClient.jar and RmiServer.jar
when i run RMIserver.jar it throws following exception.
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: RmiServer_Stub
the RmiServer.jar contain all the class file (stub/skelton,remote,etc) whichever needed.
even i set class path to that folder where RMIserver.jar is placed
inspite of that it throws ClassNotFoundException : RmiServer_Stub
i dont undersatand why classloder , not able to load class file from Rmiserver.jar.
any idea.
thanks in advance
Regards
Brajesh K
Maybe you are looking for
-
Search Function does not work in Community Help
Thanks in advance for anyone that can help. I use the Adobe Master Suite and have enjoyed the Community Help Application/Client. I could do online searches for information with no issues. In checking were I stood as far as offline documenation, I
-
It is a well known fact that the J2EE spec (Servlets, JSP and EJB) donot allow user threads to be created. Now we have a situation where we need to call a third party API (TIBCO API) to interact with the workflow. We have analyzed that the TIBCO API
-
Force scroll bar on JOptionPane?
Is there a way to force some type of scroll bar in a JOptionPane.INFORMATION_MESSAGE ? I have written a program that figures the first 1000 prime numbers as required by my instructor. However, when the final output box prints it runs off the screen.
-
Can't open links/hyperlinks in my mails....
Maybe its not the right forum, but I havn't been able to find help elsewhere. I'm using Outlook for Mac 2011 but can't open links/hyperlinks in my mails. The cursor turns into a hand as expected, but nothing happens when I try to activate the link.
-
Report error : REP-771: and ORA-12162:
Hi , i run report and it terminated with error message The report terminated with error: REP-771: A fatal PL/SQL error occurred in program unit afterpform. ORA-12162: TNS:net service name is incorrectly specified does anyone know how to fix this issu