File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Regarding .class files in windows vista Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding .class files in windows vista" Watch "Regarding .class files in windows vista" New topic
Author

Regarding .class files in windows vista

ravikolli kiran
Greenhorn

Joined: Jan 21, 2010
Posts: 4
Hi,
I would like to know where are .class files stored in windows vista. I compiled a program and it runs well but i cant see .class file in bin folder of java.
Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Class files don't go to java's bin directory. They stay in the same directory as the source file (.java), unless you tell the compiler to store them in a different location (using the -d flag of the java compiler)


[My Blog]
All roads lead to JavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

They should be located in the same location where they would be if compiled in Windows XP. In what folder were you when you compiled? What was the exact compile command?

Moving to Beginning Java.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
ravikolli kiran
Greenhorn

Joined: Jan 21, 2010
Posts: 4
i placed simple.java in C:\Program Files\Java\jdk1.5.0_22\bin and went to comand prompt and compiled with javac simple.java
then java simple.

Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Don't put your own files in the installation folder. They might interfere with the installation, and might vanish when you install an updated version of Java.

Do this, next time you open a command prompt
mkdir java
cd java
Obviously you can choose a different name for the directory. Now you can find all your Java work by writing
cd java
whenever you open a command line.

And welcome to JavaRanch
ravikolli kiran
Greenhorn

Joined: Jan 21, 2010
Posts: 4
Thanks for your advice.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding .class files in windows vista