Ask a Question related to Sun Solaris, Design and Development.
-
Michael Brophy #1
How to add to classpath using 'java -cp' in SunOS 8.5?
I have not used Unix in a LONG time, so pardon the seemingly stupid
question.
I need to add a .jar file to my java.class.path (classpath), using the
'java -cp' command preferably.
When I attempt to do so, my classpath does not change and there is no
error in the console other than it displaying the proper syntax for a
'java -cp' statement.
Here is what I enter:
java -cp /saba/myCompany/SabaWeb/lib/custom.jar
What am I doing wrong? I have alternatively tried setting the
$CLASSPATH env variable, but that does not work either.
Any help is appreciated.
Mike
Seattle
Michael Brophy Guest
-
no such classpath element
I am getting this error everytime I restart my Coldfusion MX 7.0.1 server. no such classpath element: D:\CFusionMX7\runtime/../../classes Any... -
actionscript-Classpath
Hi, i try to compile my App and the following error appears: 2 A file found in an actionscript-classpath must have an externally visible... -
ColdFusion Classpath
We installed ColdFusion MX 7 Multi-Server option and we want to add a Java CFX custom classpath to the CF administrator. In the past w/o... -
CFMX7 Classpath
Can someone please help me with this problem? I have some class and jar files that worked when I drop them in the WEB-INF folder of my standalone... -
Java classpath not reloading new class file
I set up a classpath in the Administration page to a directory that contains all my .class files. I can access the methods through Coldfusion... -
reb@cypress.com #2
Re: How to add to classpath using 'java -cp' in SunOS 8.5?
[email]m_brophy@hotmail.com[/email] (Michael Brophy) wrote in message news:<3d63b0eb.0307260007.6643c7c1@posting.google. com>...
My understanding: -cp is an option, you need to specify a class to> I have not used Unix in a LONG time, so pardon the seemingly stupid
> question.
>
> I need to add a .jar file to my java.class.path (classpath), using the
> 'java -cp' command preferably.
>
> When I attempt to do so, my classpath does not change and there is no
> error in the console other than it displaying the proper syntax for a
> 'java -cp' statement.
>
> Here is what I enter:
> java -cp /saba/myCompany/SabaWeb/lib/custom.jar
>
> What am I doing wrong? I have alternatively tried setting the
> $CLASSPATH env variable, but that does not work either.
>
> Any help is appreciated.
>
> Mike
> Seattle
execute (or use -jar to specify a jar file to execute). Also -cp
only modifies the classpath for that java process (you might be
thinking it persistently registers or stores a new classpath).
If your wished the class to execute (suppose: HelloWorld) to be found
in the current dir, then it would not be found anymore without
something like:
java -cp .:/saba/myCompany/SabaWeb/lib/custom.jar HelloWorld
--
Early warning sign #104:
Bonobo chimps around the world are mysteriously disappearing.
Indicates:
A megalomaniac dictator is finally initiating research to develop a
hybrid human and bonobo chimp super-soldier.
reb@cypress.com Guest



Reply With Quote

