Java problems

I’m having problems with Netbeans, Eclipse and Java in general - I guess because of gnome 3 ( same thing with fedora 15 and fedora 16 )
will this be solved if I switched to KDE ? Does anyone have a stable Java development environment with the new release ?

Hello cap10ibraim and welcome to the community!:slight_smile:

First of all, which version of openSUSE do you run?

And which version of java do you use?
Because I don’t think it has something to do with GNOME, but with openJDK.
By default fedora ships openJDK, so does openSUSE (there’s no sun java in the default 12.1 repositories).

So you’ll probably have to install sun java.
http://en.opensuse.org/SDB:Installing_Java#openSUSE_12.1

Best of luck!:wink:

Am 20.11.2011 07:46, schrieb Edward Iii:
>
> Hello cap10ibraim and welcome to the community!:slight_smile:
>
> cap10ibraim Wrote:
>> I’m having problems with Netbeans, Eclipse and Java in general - I
>> guess because of gnome 3 ( same thing with fedora 15 and fedora 16 )
>> will this be solved if I switched to KDE ? Does anyone have a stable
>> Java development environment with the new release ?
> First of all, which version of openSUSE do you run?
>
> And which version of java do you use?
> Because I don’t think it has something to do with GNOME, but with
> openJDK.
Very unlikely, all versions of openJDK (6 and 7) just work with eclipse
(I don’t use Netbeans).
We need the info Edward requested and a proper description what “does
not work” means exactly.
> So you’ll probably have to install sun java.
> http://en.opensuse.org/SDB:Installing_Java#openSUSE_12.1
That will NOT help. This describes the JRE (Java runtime
Environment!!!) for executing programs the OP is doing development and
needs a JDK (Java Development Kit) for making programs.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Hello martin_helm,

I thought the OP was talking about running/starting the applications.
And since both Eclipse as Netbeans are written in Java you’ll have to have a working JRE.

My experience with openJDK is that it works well but sometimes fails.
Sun Java gives an overall stabler feeling in my opinion.

Is the package java-1_6_0-openjdk-devel installed? Without that you just
have the JRE but no JDK.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Am 20.11.2011 16:06, schrieb Edward Iii:
> I thought the OP was talking about running/starting the applications.
You are right, this sounds like a problem even at this level, sorry. So
something is fishy here.

>
> My experience with openJDK is that it works well overall but
> sometimes fails. Sun Java gives an overall stabler feeling, that’s my
> opinion.
>
Being a java developer in my real live and working with both flavors of
Java I can guarantee you that this is not true, it was in the early days
of openJDK, but this times are past for a long time now.
What you probably see as instability is running java programs or
applets which are poorly written and somehow work with the proprietary
java and often enough only with some minor versions of it. Solution is
for the user of such programs to switch to the oracle java since the
user cannot change the programs and applets and hope the very best that
the next update of oracle java will not trash this applications.

Again something is wrong with the users install but it is deeper than
just openJDK vs. oracle Java.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

What is the output from


java -version
javac -version


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Hi,

I can confirm that netbeans works well with KDE.

HTH

Lenwolf

Am 20.11.2011 17:56, schrieb lenwolf:
>
> Hi,
>
> I can confirm that netbeans works well with KDE.
>
Out of curiosity, do you use openJDK or Oracle Java?


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Hi,

the short answer is both.

Development is generally made with the Oracle SDK, and then also tested on OpenJDK.
Sometimes it’s even vice-versa.

OpenJDK sure has come a long way from where it started…

Lenwolf

Am 20.11.2011 18:46, schrieb lenwolf:
>
> Hi,
>
> the short answer is both.
>
> Development is generally made with the Oracle SDK, and then also tested
> on OpenJDK.
> Sometimes it’s even vice-versa.
>
> OpenJDK sure has come a long way from where it started…
>
Thanks, I hoped to hear that it also works with both, the same applies
to me with eclipse instead of netbeans. Main development is done with
oracle java, then it is tested with openJDK.
My private programming is done with openJDK.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

The fun thing with netbeans is that you can work on the same project from within windows and Opensuse.
For my private stuff, i have both OSes on the same, dual boot, machine. If you take care, in netbeans, to make the path to additional libraries “relative” to your project folder, you can use the same project folder indifferently from either OS (provided the project in an an NTFS drive since windows can’t read other filesystems). The only problem is the path to a splash screen, which in netbeans is always an absolute path, but you can get around this if you write your own manifest.mf file.

Lenwolf