Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a .Class file?

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
US
New to Java - trying to hack through a little program that was developed by another employee who left. Typical story, no documentation.

In any event, I have a .java file with one minor change that needs to be compiled into a .class file. Can someone tell me how to do this simple task? Thanks, Steve...

Steve Medvid
Atlas Commerce ("ebusiness evolved")
 
Hi, I am also new to Java but I know how to compile it...
C:\javac YourJavaFile.java

make sure Path is set to bin directory of JavaSDK e.g. C:\JDK1.2.2\bin and file name is case sensitive too.

i will create the .class file in the same folder where .java file exists. for specifying a different location

javac -sourcepath sourcepath/filename -d /classpath

HTH
 
1) Open your.jpr(Java project file) with the compiler prgram(eg: JBuilder)
2) right-click the. jpr file and go to properties and set the path for the.class
3) Make sure the .java file is under your.jpr.
4) Run the program
5) the.class file is made automatically in the path folder that was set up in the 2) step

Good Luck!
 
Anran,

How can I create a project .jpr, using what tool? I have JDK1.2.2 installed and I use notepad for writing code. Please, let me know more to introduce with environment(s).

Thanks
 
forget it,
a JPR file is just a project file, a collection of file names. if your programming in notepad u wont need a JPR.
JBuilder is a programming environment that is extremely useful, its probably the best on the market (keep away from MS J++, theyll be discontinuing it soon).

hope it helps
Dreeze
 
forget creating a JPR file,
a JPR file is just a project file, a collection of file names. if your programming in notepad u wont need a JPR.
JBuilder is a programming environment that is extremely useful, its probably the best on the market (keep away from MS J++, theyll be discontinuing it soon).

hope it helps
Dreeze
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top