Hello there!!!
I'm trying to compile and run a program in Java, but I cannot get the handle of it. In windows, to compile Java code, I call, for example, javac Prog.java and it compiles. To test and run this application, I simple type java Prog.
I cannot get it to work under Linux. I've tried to compile it with:
gcj -c Prog.java
I've also tried -S, -E and a hole lot more. It does, compiles the program perfectly, but I cannot run the program by simply typing java Prog, because the Prog.class was not created as javac does.
however, I've tried to run a compiled program (in windows). In this directory I have Prog.java and Prog.class. Typing:
java Prog
runs the program fine. JSDK is installed fine, since when I type java it returns the version info. I've J2SDK1.4 installed, and the gcj package as well. I'm running Slackware 9.0, with defaults gcc and gcj if that's of any help.
Any ideas how to compile and run a program under Linux, or at least, create a .class for me to run my projects?.
Thanks in advance for any help
P.S: I cannot find my javac under Linux :S