• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is there any thing like javac -d .../apple Ankur.java

 
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i mean does .../ mean anything ?bi have tried everything but couldnt find the answer....but i think i have seen it somewhere
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-d is the flag that mentions the target directory into which class files go. The ../apple means "go to the parent directory and then go into the apple folder and put the class files there".
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey i was asking about 3 dotes and not 2 dotes, by the way 2 dotes means go back one directory ....not necessarily the parent directory

and then into the apple directory
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankur kothari wrote:by the way 2 dots means go back one directory ....not necessarily the parent directory


Can you show an example where "back one directory" is not the parent directory (unless the current directory is the top of a partition where ../ won't have any effect)...
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what if my java file was in c:\javaankur\a\kothari and i wanted to put the class file in ankur directory which is inside the a directory
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you want to go the ankur directory(if present inside the parent directory(c:\)) we could use
javac -d /ankur Ankur.java

. refers to the current directory

i hope i am right and not being stubborn
 
Ankit Garg
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ankur, I'm unable to understand your example. If you use ./ankur, that means ankur directory in current directory not parent directory. Basically parent directory is the directory which contains the current directory, here current directory is the directory where the shell/command prompt is. If shell/prompt is in the directory "a", then the parent directory is "javaankur" directory not the directory "a" itself.

[Edit: Ankur edited his post and changed a few things so the above stuff doesn't makes any sense]

if you want to go the ankur directory(if present inside the parent directory(c:\)) we could use
javac -d /ankur Ankur.java

. refers to the current directory


Where is the . in the command??
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in c:\javaankur\a\kothari isnt my current directory kothari and parent directory a? if my java file was in kothari dir then .. will make me go to a dir....

i think am getting confused with parent word...parent means the dir will be in if we do ..

then Deepak was right
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javac -d ./ankur Ankur.java

in this . refers to the current directory

this is what i meant

and i didnt change anything to look right or senseless

my actual question was is there thing like

javac -d .../ankur Ankur.java

dont mind the dir structure.....can we use "..." anywhere? is it used anywherE?
 
Ankit Garg
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankur kothari wrote:and i didnt change anything to look right or senseless


I was talking about the 6th post of this thread. Originally you wrote

if you want to go the ankur directory(if present inside the parent directory a) we could use
javac -d ./ankur Ankur.java

. refers to the current directory

i hope i am right and not being stubborn


And then you changed it to

if you want to go the ankur directory(if present inside the parent directory(c:\)) we could use
javac -d /ankur Ankur.java

. refers to the current directory

i hope i am right and not being stubborn

 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dude just tell me if javac -d .../ankur Ankur.java can be used in any condition?
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ankur,

javac -d .../ankur Ankur.java
This command of .../ does not mean anything

It would itself on the command prompt gives you an error that directory not found

if you would want to explore more options use javac -help
 
author
Posts: 23956
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankur kothari wrote:....but i think i have seen it somewhere



If you remember where you saw it, I would be interested to know... as I have never saw three dots to have any special meaning, in any OS filesystem.

Henry
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
page 793 k&B book......

"which it builds within the existing .../classes directory"
 
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's an ellipsis. It's not meant to be taken literally as three separate dots.
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ohhhhhh......so sorry
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic