Forums Register Login

classpath

+Pie Number of slices to send: Send
when i include the package in d and e drive in class path
i did as following
javac -cp d:;e:;.; Ex.java

but when i include package in c drive

javac -cp c:;.; Ex.java

it gives compilation error package does not exist

but the follwing runs successfully

javac -cp c:\;.; Ex.java by adding the forward slash to c drive..

so why \ is required only in c drive

+Pie Number of slices to send: Send
Would you mind pasting exact error/exception you are getting?
+Pie Number of slices to send: Send
i am only getting PACKAGE DOES NOT EXIST error
if i forget to include \ with c: in classpath
We noticed he had no friends. So we gave him this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 632 times.
Similar Threads
Can you answer this????
error javac + javaee.jar : custom classpath
Packages
how javac search file?
Ant building error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:36:14.