• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding .class files in windows vista

 
ravikolli kiran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Rob Spoor
Sheriff
Pie
Posts: 20753
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ravikolli kiran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51457
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your advice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic