compile java program
Hi all, I am new to Java programming and just took over a task. We have a huge java application developed with Forte for java. I am trying to re-compile this program. Since Forte for java is no longer supported by Sun, I can't install it in my computer. Could anybody please tell me how I can compile and run the whole application from command line?
It is soooo confusing and I don't even know where to start. My work is stuck now. It would be appreciated if anybody could help me out.
> We have a huge java application
> developed with Forte for java. I am trying to
> re-compile this program.
Please describe "huge".
> Since Forte for java is no
> longer supported by Sun, I can't install it in my
> computer. Could anybody please tell me how I can
> compile and run the whole application from command
> line?
Best advice would be to either learn how to do it on the command line, download another IDE (Eclipse or NetBeans if you must have "free", IntelliJ if you want the best), or learn Ant.
> It is soooo confusing and I don't even know where to
> start. My work is stuck now. It would be appreciated
> if anybody could help me out.
How did you get the job if compiling Java is so confusing?
%
you could use 'javac' , read the manual for compiling your source (javac -help)javac <options> <source files>
Hi p_epi, thank you for replying. Yes, I know I should use javac to compile but I think it is only to compile single class files, like:
javac AFile.class
Is that right? How can I use javac to compile the whole application created with Forte for java? Could you give more suggestions? By the way, my application is composed of four projects.
Message was edited by:
betterandbetter
duffymo, I am not a java developer.
> Hi p_epi, thank you for replying. Yes, I know I
> should use javac to compile but I think it is only to
> compile single class files, like:
>
> javac AFile.class
>
> Is that right? How can I use javac to compile the
> whole application created with Forte for java? Could
> you give more suggestions? By the way, my application
> is composed of four projects.
>
> Message was edited by:
> betterandbetter
you can compile more than one of java file
for example
1. compile two java files file1.java and file2.java
javac <options> file1.java file2.java
or
2. compile all files in specific direktory
javac <options> *.java
Thank you! I am thinking of creating a new project with Sun Java Enterprise and migrate the existing java files into the new project so that I can compile and debug with Sun Java Enterprise. Do you have any suggestion on this?
> Thank you! I am thinking of creating a new project
> with Sun Java Enterprise and migrate the existing
> java files into the new project so that I can compile
> and debug with Sun Java Enterprise. Do you have any
> suggestion on this?
Yes, I do. Don't do that. Use Netbeans if you have to, but I don't see the point of all that other stuff that comes with it in Sun Java Enterprise.
Really I would advise you to hire a Java developer to do this work for you. But if you really want to do it yourself I would advise you to put it aside for a while. Go away and learn Java first before you start on a major project.
DrClap, NetBeans runs on JDK 5.0 and later but my application was developed with JDK 1.3. Therefore, I can't use NetBeans. Any other suggestions? Thanks.
> DrClap, NetBeans runs on JDK 5.0 and later but my
> application was developed with JDK 1.3. Therefore, I
> can't use NetBeans. Any other suggestions? Thanks.
Now I'm completely baffled. You were going to use Sun Java Enterprise, which as far as I can see is Netbeans plus a lot of things that have nothing to do with software development. But now you say you can't even use Netbeans? What was the point of that then?
Anyway, I'm sure Netbeans can be configured to compile classes using Java 1.3, even though it uses Java 5 itself. Eclipse can do that, so I would be surprised to learn that Netbeans can't.