Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Beginning Java
Problem in UNIX ClassPath
Meet Gaurav
Ranch Hand
Posts: 492
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
HI
I need to set classpath for 15 jar files. I guess the below idea is bad, for setting one by one.
# path to classes12.zip file CLASSES12_PATH=/home/lib/classes12.jar export CLASSES12_PATH # Path to j2ee.jar J2EE_PATH=/home/lib/j2ee.jar export J2EE_PATH
Any way to set a classpath for lib folder. So that all the jar files have to be in classpath.Instead of setting one by one.
Gregg Bolinger
Ranch Hand
Posts: 15304
6
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
export CLASS_PATH=/home/lib/
Meet Gaurav
Ranch Hand
Posts: 492
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
HI Gregg Bolinger
Thanks for the reply.. But this is not working..Any other solution ??
Vijitha Kumara
Bartender
Posts: 4116
72
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use the classpath wildcards since JDK 6.
You may take a look at
this
SCJP 5 | SCWCD 5
[
How to ask questions
] [
Twitter
]
Meet Gaurav
Ranch Hand
Posts: 492
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
But am using
java
1.5 in unix BOX
Jesper de Jong
Java Cowboy
Posts: 16084
88
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The JVM only looks at the environment variable
CLASSPATH
(not: CLASSES12_PATH, J2EE_PATH or CLASS_PATH).
Jesper's Blog
-
Pluralsight Author Page
Meet Gaurav
Ranch Hand
Posts: 492
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Am getting this erroreven after setting the classpath
$ CLASSPATH=/home/oc4j/j2ee/home/lib/
$ echo $CLASSPATH
/home/oc4j/j2ee/home/lib/
MDBBean.java:27: cannot find symbol
symbol : class MessageDrivenContext
location: package javax.ejb
import javax.ejb.MessageDrivenContext;
Vijitha Kumara
Bartender
Posts: 4116
72
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That error gives what's wrong, isn't it? You don't have
JEE
jar file (which contains the package javax.ejb) in your CLASSPATH.
SCJP 5 | SCWCD 5
[
How to ask questions
] [
Twitter
]
Meet Gaurav
Ranch Hand
Posts: 492
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
No Javax.ejb is in ejb.jar and this ejb.jar is in lib. I checked
Vijitha Kumara
Bartender
Posts: 4116
72
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
According to one of your previous replies you are using JDK 5. Your CLASSPATH contains only the lib directory not the jar (whatever you are using). Do you get the point now? How come JVM finds it without specifying the jar file?
SCJP 5 | SCWCD 5
[
How to ask questions
] [
Twitter
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JDBC driver - java lang ClassNotFoundException
package oracle.jdbc.driver does not exist
ClassNotFoundException
Advice Client problem
Oracle.jdbc. driver.OracleDriver problem
More...