Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class file MIA

 
Peter Powers
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

Ive created a simple applet in Eclipse, I need a Class file to run it in my browser. When I look in the file system all I can find is a .java. Where is the class file ?

Thanks in advance.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12146
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you compile it?
 
Peter Powers
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I did it works fine in eclipse and runs in the eclipse window.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49411
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which case, Eclipse will have put it in a different folder. It defaults to putting .java files in a src folder and .class files elsewhere, maybe the classes folder.
 
Tony Docherty
Bartender
Posts: 2965
59
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on where Eclipse is configured to put it. Normally there is a classes or bin folder in the project directory which contains the class file. If you still can't find it, go to the Eclipse package explorer window and right click on the project icon. From the menu select 'Build Path' then 'Configure Build Path'. In the dialog that opens select the 'Source' tab and look at the field at the bottom of the window labeled 'Default Output Folder'. This is where the class files are put.
 
Peter Powers
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for the help found it in the bin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic