Re: NB and Ubuntu

View: New views
8 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: NB and Ubuntu

by Geertjan Wielenga :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Theuns Heydenrych wrote:

>
> HI Geertjan
>
> What version of Ubuntu do you use?
>
> I am using ubuntu 8.04 and when I run a open source GIS app I get GTK
> warnings and paint errors in the output window.
>
> I goggled a bit and saw that it looks like a sun java issue with combo
> boxes on gtk?
>
>  
>
> Do you now of this , do you maybe have a work around for this.
>
> Please keep in mind I am new to linux.
>
>  
>
> Cheers
>
> Theuns Heydenrych
>
Hi Theuns,

I'm on Feisty Fawn (7.04). I'm forwarding this to nbusers, hope you're
subscribed to it.

Gj

Re: NB and Ubuntu

by Kristian Rink-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Folks;

Geertjan Wielenga schrieb:
[...]
>> I am using ubuntu 8.04 and when I run a open source GIS app I get GTK
>> warnings and paint errors in the output window.
>>
>> I goggled a bit and saw that it looks like a sun java issue with combo
>> boxes on gtk?
[...]

Not having seen the rest of the conversation, may I ask what exactly the
problem is? Another reappearance of [1]? I have been using NetBeans (6.x) on
Ubuntu versions ranging from 6.10 to (now) 8.04 so maybe I could provide
some assistance...

Cheers,
Kristian


[1] http://bugs.sun.com/view_bug.do?bug_id=6624717


--
Kristian Rink
cell    :  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
JUG     : kristian <at> jugsaxony.de
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

RE: NB and Ubuntu

by theunsgis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI
Yes I looks like the one [1].
Is this a ubuntu issue?
Is there work arounds for it?

-----Original Message-----
From: Kristian Rink [mailto:kawazu@...]
Sent: Tuesday, July 22, 2008 7:55 AM
To: nbusers@...
Cc: Theuns Heydenrych
Subject: Re: NB and Ubuntu

Folks;

Geertjan Wielenga schrieb:
[...]
>> I am using ubuntu 8.04 and when I run a open source GIS app I get GTK
>> warnings and paint errors in the output window.
>>
>> I goggled a bit and saw that it looks like a sun java issue with combo
>> boxes on gtk?
[...]

Not having seen the rest of the conversation, may I ask what exactly the
problem is? Another reappearance of [1]? I have been using NetBeans (6.x) on
Ubuntu versions ranging from 6.10 to (now) 8.04 so maybe I could provide
some assistance...

Cheers,
Kristian


[1] http://bugs.sun.com/view_bug.do?bug_id=6624717


--
Kristian Rink
cell    :  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
JUG     : kristian <at> jugsaxony.de
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

Re: NB and Ubuntu

by Kristian Rink-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Theuns;

Theuns Heydenrych schrieb:
> Yes I looks like the one [1].
> Is this a ubuntu issue?
> Is there work arounds for it?

I am not sure about this, to be honest: I remember conversations on nbusers
where people reported combo boxes to be merely unusable thanks to this. In
my case however, this never really happened, the only thing I noticed were
combo boxes broken in Swing applications using the GTK LaF (which is what
will per default happen if you use a recent JDK and the stock Ubuntu (Gnome)
desktop). In my case however...

- ... this used to be at the very best a "cosmetic" issue with no real
impact on usability of the application,

- ... this also seemed to depend upon the theme used for the Gnome UI, worse
in some, better in others.

Maybe however this also is due to the fact I never really used JDK installed
from the Ubuntu repositories but still do keep Java downloaded from
java.sun.com and installed to /opt/ like I did for the last ten years, so I
am also always running the "latest" JDK update. In your case, though, I
would first see whether switching the Gnome visual appearance / theme does
change anything about this - obviously some GTK engines don't go that well
with GTK LaF, and maybe the default Ubuntu "Human" theme is amongst them.
Afterwards, I'd possibly try to see whether or not using a JDK newer than
the one provided by your Ubuntu installation might address this issue (maybe
using the pre-release JDK 6u10 builds?). Feel free however to get back with
any questions that might arise here; maybe we can provide you with some more
hints on that...

Cheers & good luck,
Kristian


--
Kristian Rink
cell    :  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

RE: NB and Ubuntu

by theunsgis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI Kristian

I have java 6 update 6 on my machine at the moment , I am busy getting Java 6 update 7 , and the beta 10 version to see if there is any improvement.

My java is installed by the synaptic package manager under /usr/lib/jvm/
or must it be under the opt/ folder?

cheers

-----Original Message-----
From: Kristian Rink [mailto:kawazu@...]
Sent: Tuesday, July 22, 2008 8:32 AM
To: Theuns Heydenrych
Cc: nbusers@...
Subject: Re: NB and Ubuntu

Theuns;

Theuns Heydenrych schrieb:
> Yes I looks like the one [1].
> Is this a ubuntu issue?
> Is there work arounds for it?

I am not sure about this, to be honest: I remember conversations on nbusers
where people reported combo boxes to be merely unusable thanks to this. In
my case however, this never really happened, the only thing I noticed were
combo boxes broken in Swing applications using the GTK LaF (which is what
will per default happen if you use a recent JDK and the stock Ubuntu (Gnome)
desktop). In my case however...

- ... this used to be at the very best a "cosmetic" issue with no real
impact on usability of the application,

- ... this also seemed to depend upon the theme used for the Gnome UI, worse
in some, better in others.

Maybe however this also is due to the fact I never really used JDK installed
from the Ubuntu repositories but still do keep Java downloaded from
java.sun.com and installed to /opt/ like I did for the last ten years, so I
am also always running the "latest" JDK update. In your case, though, I
would first see whether switching the Gnome visual appearance / theme does
change anything about this - obviously some GTK engines don't go that well
with GTK LaF, and maybe the default Ubuntu "Human" theme is amongst them.
Afterwards, I'd possibly try to see whether or not using a JDK newer than
the one provided by your Ubuntu installation might address this issue (maybe
using the pre-release JDK 6u10 builds?). Feel free however to get back with
any questions that might arise here; maybe we can provide you with some more
hints on that...

Cheers & good luck,
Kristian


--
Kristian Rink
cell    :  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

Re: NB and Ubuntu

by Kristian Rink-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Theuns;

Theuns Heydenrych schrieb:
> I have java 6 update 6 on my machine at the moment , I am busy getting
> Java 6 update 7 , and the beta 10 version to see if there is any
> improvement.

For what I have seen now, there are at the very least some performance
improvements in beta10 that make dealing with it surely worth it, even
you're likely to stumble across one bug or the other (after all it's in
beta... ;) ).

> My java is installed by the synaptic package manager under /usr/lib/jvm/
> or must it be under the opt/ folder?

Actually it doesn't matter. :) For the packages installed via synaptic,
/usr/lib is perfectly fine. If you manually install a JDK using the
installer i.e. from java.sun.com, you should put it to /opt per convention
as this is the place where "third-party" software more or less generally is
supposed to be installed. The only thing then is to keep your environment
variables (most notably $PATH and $JAVA_HOME) set up right, more or less
something like this

export PATH=/opt/java/bin:$PATH

in my case to "override" the distro-installed JDK. As far as this is
concerned: I have yet to find out what's the difference between Ubuntu
shipped JDK and a "stock" java.sun.com JDK, but there are at least two
differences make me fall back to the java.sun.com one:

- In some VMWare ESX installation of Ubuntu Hardy, I installed Glassfish and
JDK off the Ubuntu archives and had rather strange exceptions being thrown,
totally failing to start glassfish. Googled around a while without really
finding a solution, eventually replaced both glassfish and JDK by bits
installed using the "non-Ubuntu" packages and never saw that issue again.

- Installing a JDK on Ubuntu is likely to make the package manager install a
whole load of dependencies caused by the visual components in the JDK, so
doing an "apt-get install sun-java6-*" all of a sudden might fill up your
server drive with a lot of xorg-* stuff which you wouldn't really need but
which is required by the java packages because you _could_ want to use it.
Installing a simple JDK knowing you'll not use any UI (ControlPanel,
JConsole, ...) on the headless server anyhow is an easier way here.

So, cutting it short: In case of any JDK problems using a
repository-installed JDK, I'd go for a java.sun.com JDK first, trying to see
whether the problems disappear then. And don't forget about playing around
with the GNOME themes, of course, in your special case. ;)

Cheers,
Kristian

--
Kristian Rink
cell    :  +49 176 2447 2771
business: http://www.planconnect.de
personal: http://pictorial.zimmer428.net
"we command the system. calling all recievers.
we are noisy people for a better living".
(covenant - "monochrome")

Parent Message unknown Re: Re: NB and Ubuntu

by stroudcuster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ubuntu uses the /etc/alternatives construct (aptly described as "an impenetrable forest of symlinks") to determine which version of java (and other executables) is used when working from the command line.  Install the galternatives package to get a GUI admin tool to change the default settings.  This will help ensure that you are using the same version of java if you run you app outside of NetBeans.

Stroud Custer

 -------------- Original message ----------------------
From: Kristian Rink <kawazu@...>

> Hi Theuns;
>
> Theuns Heydenrych schrieb:
> > I have java 6 update 6 on my machine at the moment , I am busy getting
> > Java 6 update 7 , and the beta 10 version to see if there is any
> > improvement.
>
> For what I have seen now, there are at the very least some performance
> improvements in beta10 that make dealing with it surely worth it, even
> you're likely to stumble across one bug or the other (after all it's in
> beta... ;) ).
>
> > My java is installed by the synaptic package manager under /usr/lib/jvm/
> > or must it be under the opt/ folder?
>
> Actually it doesn't matter. :) For the packages installed via synaptic,
> /usr/lib is perfectly fine. If you manually install a JDK using the
> installer i.e. from java.sun.com, you should put it to /opt per convention
> as this is the place where "third-party" software more or less generally is
> supposed to be installed. The only thing then is to keep your environment
> variables (most notably $PATH and $JAVA_HOME) set up right, more or less
> something like this
>
> export PATH=/opt/java/bin:$PATH
>
> in my case to "override" the distro-installed JDK. As far as this is
> concerned: I have yet to find out what's the difference between Ubuntu
> shipped JDK and a "stock" java.sun.com JDK, but there are at least two
> differences make me fall back to the java.sun.com one:
>
> - In some VMWare ESX installation of Ubuntu Hardy, I installed Glassfish and
> JDK off the Ubuntu archives and had rather strange exceptions being thrown,
> totally failing to start glassfish. Googled around a while without really
> finding a solution, eventually replaced both glassfish and JDK by bits
> installed using the "non-Ubuntu" packages and never saw that issue again.
>
> - Installing a JDK on Ubuntu is likely to make the package manager install a
> whole load of dependencies caused by the visual components in the JDK, so
> doing an "apt-get install sun-java6-*" all of a sudden might fill up your
> server drive with a lot of xorg-* stuff which you wouldn't really need but
> which is required by the java packages because you _could_ want to use it.
> Installing a simple JDK knowing you'll not use any UI (ControlPanel,
> JConsole, ...) on the headless server anyhow is an easier way here.
>
> So, cutting it short: In case of any JDK problems using a
> repository-installed JDK, I'd go for a java.sun.com JDK first, trying to see
> whether the problems disappear then. And don't forget about playing around
> with the GNOME themes, of course, in your special case. ;)
>
> Cheers,
> Kristian
>
> --
> Kristian Rink
> cell    :  +49 176 2447 2771
> business: http://www.planconnect.de
> personal: http://pictorial.zimmer428.net
> "we command the system. calling all recievers.
> we are noisy people for a better living".
> (covenant - "monochrome")


Re: Re: NB and Ubuntu

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Based on info that I found researching this on the Internet, I believe that you need beta 10 or higher.

Kristian Rink wrote:
Hi Theuns;

Theuns Heydenrych schrieb:
  
I have java 6 update 6 on my machine at the moment , I am busy getting
Java 6 update 7 , and the beta 10 version to see if there is any
improvement.
    

For what I have seen now, there are at the very least some performance
improvements in beta10 that make dealing with it surely worth it, even
you're likely to stumble across one bug or the other (after all it's in
beta... ;) ).

  
My java is installed by the synaptic package manager under /usr/lib/jvm/ 
or must it be under the opt/ folder?
    

Actually it doesn't matter. :) For the packages installed via synaptic,
/usr/lib is perfectly fine. If you manually install a JDK using the
installer i.e. from java.sun.com, you should put it to /opt per convention
as this is the place where "third-party" software more or less generally is
supposed to be installed. The only thing then is to keep your environment
variables (most notably $PATH and $JAVA_HOME) set up right, more or less
something like this

export PATH=/opt/java/bin:$PATH

in my case to "override" the distro-installed JDK. As far as this is
concerned: I have yet to find out what's the difference between Ubuntu
shipped JDK and a "stock" java.sun.com JDK, but there are at least two
differences make me fall back to the java.sun.com one:

- In some VMWare ESX installation of Ubuntu Hardy, I installed Glassfish and
JDK off the Ubuntu archives and had rather strange exceptions being thrown,
totally failing to start glassfish. Googled around a while without really
finding a solution, eventually replaced both glassfish and JDK by bits
installed using the "non-Ubuntu" packages and never saw that issue again.

- Installing a JDK on Ubuntu is likely to make the package manager install a
whole load of dependencies caused by the visual components in the JDK, so
doing an "apt-get install sun-java6-*" all of a sudden might fill up your
server drive with a lot of xorg-* stuff which you wouldn't really need but
which is required by the java packages because you _could_ want to use it.
Installing a simple JDK knowing you'll not use any UI (ControlPanel,
JConsole, ...) on the headless server anyhow is an easier way here.

So, cutting it short: In case of any JDK problems using a
repository-installed JDK, I'd go for a java.sun.com JDK first, trying to see
whether the problems disappear then. And don't forget about playing around
with the GNOME themes, of course, in your special case. ;)

Cheers,
Kristian

  
LightInTheBox - Buy quality products at wholesale price