Click to See Complete Forum and Search --> : Hi! I'm new and I have a Q!


balzarini
October 5th, 2000, 02:10 PM
Hi everybody!
I have recently found a txt file with a java code ... Now I wold like to know How can I build a .class file having the source what program do I need!
THNAKYOU for Your help!
Paolo

laneh
October 5th, 2000, 02:21 PM
to compile you are going to need the JDK 1.3, you can download it from java.sun.com

"There are no facts, only interpretations."
-Friedrich Nietzsche

balzarini
October 5th, 2000, 02:41 PM
Well I have jdk1.2.2 is it OK? if Yes How can I compile it?
THANKYOU for Your reply!
Paolo

laneh
October 5th, 2000, 04:34 PM
yeah it is fine.. java is case sensitive so make sure that the file name matches the class name
assumming that is right, you compile like this

javac filename.java

run it like this (if it is not an applet)

java filename

if it is an applet, you must make an HTML file w/ the applet tag

appletviewer something.html

check out java.sun.com tutorials section they offer a lot more for people getting started

"There are no facts, only interpretations."
-Friedrich Nietzsche

balzarini
October 11th, 2000, 03:36 PM
Well I have tried to do what You said but.. I receive an error message¨!
The file that I have is a class...
AnyWay ThankYou for YourHelp!
Paolo