Compiling under linux suse

Hi

A couple of weeks ago I installed linux suse 10 just to discover a little bit more about linux.

Now I want to run my java programs from linux. I installed java, but if I comile the code in linux it gives some error I didn't have in windows. However Ssme programs do work in linux...but most don't

I think it has something to do with the version of java. In windows I use 1.5 and in linux it is still 1.4 though I installed the latest version from the official website.

Could this be the problem? Is the java 1.5 available for linux suse?

Sorry if I ask any stupid questions, as I've said before I'm new to java.

Marty

[667 byte] By [flashpoint86a] at [2007-10-2 12:30:07]
# 1
Errors can easily occur if compiling with 1.4 code written for 1.5.Sure 1.5 is available. Whether SUSE or other distro - it does not matter much.
BIJ001a at 2007-7-13 9:26:52 > top of Java-index,Developer Tools,Java Compiler...
# 2

OK thnx for ur response

I've now installed java 5.

But how can I compile & run my programs.?

If I type java or javac in the shell konsole it says: 'command not found'

If i go to the installdir/bin there are the java and javac etc files. How can I run them and make them start if I type java/javac in konsole?

flashpoint86a at 2007-7-13 9:26:52 > top of Java-index,Developer Tools,Java Compiler...
# 3
Make yourself acquainted with the concept how a program is found and the role of the PATH environment variable. I am sure there are tutorials for Java beginners covering this topic too.
BIJ001a at 2007-7-13 9:26:52 > top of Java-index,Developer Tools,Java Compiler...