• Post Reply Bookmark Topic Watch Topic
  • New Topic

classpath  RSS feed

 
saravanan ragunathan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you mind pasting exact error/exception you are getting?
 
saravanan ragunathan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am only getting PACKAGE DOES NOT EXIST error
if i forget to include \ with c: in classpath
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!