Hi,
After messing up with grub, I reformatted my hdd and installed opensuse 11.4 (gnome+kde) from the dvd and also included the java sdk while installing, now the problem is that whenever i compile a java program,
I get this error
/usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
Are you explicitly using the javac from the JDK or are you using the one
in your PATH (by not specifying one) and using the one from GCC instead
that maybe doesn’t work the same way?
yeah, i used gcc compiler for java. But now, i downloaded eclipse. any ways to clear the above error?
shud i need to have the jdk package for java to run smoothly?
Eclipse is a Java application, I am not sure if it is a stand alone run time Java app, but regardless of that it uses the environment Java compiler.
So please install the Java JDK and every thing should be ok.
Just go to Yast and search for Java, among the options there should be the Sun Java JDK.