
| View previous topic :: View next topic |
| Author |
Message |
Lawrensium Posted via mailing list.
|
Posted: Thu Jul 17, 2008 12:53 am Post subject: Netbeans on Linux, need help... |
|
|
Hi guys,
I just start to learn RoR and wish to seek some help here. Recently I
try to switch from Windows XP to Ubuntu 8.04. I used Netbeans 6.1 to develop
RoR application on Ubuntu. But I faced some problem with it, which I'm not
sure whether the problem is Netbeans, Ubuntu or Linux specific, because
Netbeans works fine on Windows XP.
1. When I switch to other application, like browser, pdf reader(to read
something) or console. and when I focus back(click on the editor) to
Netbeans, the cursor is there but I can't type anything. I need to click on
other part of Netbeans(says project explorer) then click back the editor,
then only i can edit it. This happen mostly when I switch between programs.
2. In Netbeans, there are times when it will pop up a yes/no confirmation
windows, like when you need to add plugins, or stop the server. And quite
often I got a empty windows(no message nor button) i need to redo the step a
few time in order for a proper windows to pop up.
Do you guys got any problems like that on linux? Please advise. Thank you.
--
View this message in context: http://www.nabble.com/Netbeans-on-Linux%2C-need-help...-tp18499573p18499573.html
Sent from the NetBeans Ruby - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Thu Jul 17, 2008 2:07 am Post subject: Netbeans on Linux, need help... |
|
|
On Thu, Jul 17, 2008 at 10:22 AM, Lawrensium <lawrensium@gmail.com (lawrensium@gmail.com)> wrote:
| Quote: |
Hi guys,
I just start to learn RoR and wish to seek some help here. Recently I
try to switch from Windows XP to Ubuntu 8.04. I used Netbeans 6.1 to develop
RoR application on Ubuntu. But I faced some problem with it, which I'm not
sure whether the problem is Netbeans, Ubuntu or Linux specific, because
Netbeans works fine on Windows XP.
1. When I switch to other application, like browser, pdf reader(to read
something) or console. and when I focus back(click on the editor) to
Netbeans, the cursor is there but I can't type anything. I need to click on
other part of Netbeans(says project explorer) then click back the editor,
then only i can edit it. This happen mostly when I switch between programs.
2. In Netbeans, there are times when it will pop up a yes/no confirmation
windows, like when you need to add plugins, or stop the server. And quite
often I got a empty windows(no message nor button) i need to redo the step a
few time in order for a proper windows to pop up.
Do you guys got any problems like that on linux? Please advise. Thank you.
|
These are common problems to experience and CAN be fixed.
The first problem may be associated with changing NetBeans default widget set to use MToolkit, most likely by setting the environment variable AWT_TOOLKIT=MToolkit .... DON'T DO THIS, there is a bug in Java that causes the behaviour you described when you use MToolkit, they are not planning to fix this. If yuo have deliberately changed this setting then maybe the SDK upgrade mentioned below will help.
The second problem is also a Java issue and related to Ubuntu using the Compiz window manager. The only solution I know of is to install the latest beta of the JAVA SDK from suns website. Steps to do this:
1) Goto: http://download.java.net/jdk6/binaries/ and download the "Linux self-extracting JDK file".This will look something like jdk-6u10-rc-bin-b27-linux-i586-08_jul_2008.bin
2) Rename the file to jdk-6-linux-i586.bin (you must do this for the next steps to work)
3) Ensure that you have the java-package insatlled.
sudo apt-get java-package
4) Create a DEB package from the sun installer
make-jpkg jdk-6-linux-i586.bin
5) Install the DEB
sudo dpkg -i sun-j2sdk1.6_1.6.0_i386.deb
6) Configure the newly install java to be the default
sudo update-alternatives --config java (here choose the one that points to the JDK you installed probably /usr/lib/j2sdk1.6-sun/bin/java)
7) Configure the newly install java compiler to be the default
sudo update-alternatives --config javac (most likely the correct one has been already selected, but best to check)
Cheers,
Anthony Richardson |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Fri Jul 18, 2008 1:16 am Post subject: Netbeans on Linux, need help... |
|
|
Anthony, I want to be sure that I am reading you correctly. Are you saying that the following statement, which I gleened from the internet, is FALSE:
| Quote: | For JDK releases less than 6 update 10, execute export AWT_TOOLKIT=Mtoolkit before running the installer, and before running the IDE: export AWT_TOOLKIT=Mtoolkit.
|
Anthony Richardson wrote: | Quote: |
On Thu, Jul 17, 2008 at 10:22 AM, Lawrensium <lawrensium@gmail.com (lawrensium@gmail.com)> wrote:
| Quote: |
Hi guys,
I just start to learn RoR and wish to seek some help here. Recently I
try to switch from Windows XP to Ubuntu 8.04. I used Netbeans 6.1 to develop
RoR application on Ubuntu. But I faced some problem with it, which I'm not
sure whether the problem is Netbeans, Ubuntu or Linux specific, because
Netbeans works fine on Windows XP.
1. When I switch to other application, like browser, pdf reader(to read
something) or console. and when I focus back(click on the editor) to
Netbeans, the cursor is there but I can't type anything. I need to click on
other part of Netbeans(says project explorer) then click back the editor,
then only i can edit it. This happen mostly when I switch between programs.
2. In Netbeans, there are times when it will pop up a yes/no confirmation
windows, like when you need to add plugins, or stop the server. And quite
often I got a empty windows(no message nor button) i need to redo the step a
few time in order for a proper windows to pop up.
Do you guys got any problems like that on linux? Please advise. Thank you.
|
These are common problems to experience and CAN be fixed.
The first problem may be associated with changing NetBeans default widget set to use MToolkit, most likely by setting the environment variable AWT_TOOLKIT=MToolkit .... DON'T DO THIS, there is a bug in Java that causes the behaviour you described when you use MToolkit, they are not planning to fix this. If yuo have deliberately changed this setting then maybe the SDK upgrade mentioned below will help.
The second problem is also a Java issue and related to Ubuntu using the Compiz window manager. The only solution I know of is to install the latest beta of the JAVA SDK from suns website. Steps to do this:
1) Goto: http://download.java.net/jdk6/binaries/ and download the "Linux self-extracting JDK file".This will look something like jdk-6u10-rc-bin-b27-linux-i586-08_jul_2008.bin
2) Rename the file to jdk-6-linux-i586.bin (you must do this for the next steps to work)
3) Ensure that you have the java-package insatlled.
sudo apt-get java-package
4) Create a DEB package from the sun installer
make-jpkg jdk-6-linux-i586.bin
5) Install the DEB
sudo dpkg -i sun-j2sdk1.6_1.6.0_i386.deb
6) Configure the newly install java to be the default
sudo update-alternatives --config java (here choose the one that points to the JDK you installed probably /usr/lib/j2sdk1.6-sun/bin/java)
7) Configure the newly install java compiler to be the default
sudo update-alternatives --config javac (most likely the correct one has been already selected, but best to check)
Cheers,
Anthony Richardson
|
|
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Fri Jul 18, 2008 2:39 am Post subject: Netbeans on Linux, need help... |
|
|
On Fri, Jul 18, 2008 at 10:46 AM, Chris Kutler <Chris.Kutler@sun.com (Chris.Kutler@sun.com)> wrote:
| Quote: | Anthony, I want to be sure that I am reading you correctly. Are you saying that the following statement, which I gleened from the internet, is FALSE:
| Quote: | For JDK releases less than 6 update 10, execute export AWT_TOOLKIT=Mtoolkit before running the installer, and before running the IDE: export AWT_TOOLKIT=Mtoolkit.
|
|
That will work to prevent the blank dialog problem when running under Compiz. However, this will also cause the keyboard lock out in NetBeans to occur whenever a dialog appears. (I will look for the issue numbers and threads of conversations about this for you if you want). Basic prior to current betas of the JDK you are damned if you do and damned if you don't.
Cheers,
Anthony |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Fri Jul 18, 2008 2:58 am Post subject: Netbeans on Linux, need help... |
|
|
Thanks, good to know.
Anthony Richardson wrote: | Quote: |
On Fri, Jul 18, 2008 at 10:46 AM, Chris Kutler <Chris.Kutler@sun.com (Chris.Kutler@sun.com)> wrote:
| Quote: | Anthony, I want to be sure that I am reading you correctly. Are you saying that the following statement, which I gleened from the internet, is FALSE:
| Quote: | For JDK releases less than 6 update 10, execute export AWT_TOOLKIT=Mtoolkit before running the installer, and before running the IDE: export AWT_TOOLKIT=Mtoolkit.
|
|
That will work to prevent the blank dialog problem when running under Compiz. However, this will also cause the keyboard lock out in NetBeans to occur whenever a dialog appears. (I will look for the issue numbers and threads of conversations about this for you if you want). Basic prior to current betas of the JDK you are damned if you do and damned if you don't.
Cheers,
Anthony
|
|
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Fri Jul 18, 2008 11:42 am Post subject: Netbeans on Linux, need help... |
|
|
On Fri, Jul 18, 2008 at 12:09 PM, Anthony Richardson <list.netbeans@techony.com (list.netbeans@techony.com)> wrote:
| Quote: |
On Fri, Jul 18, 2008 at 10:46 AM, Chris Kutler <Chris.Kutler@sun.com (Chris.Kutler@sun.com)> wrote:
| Quote: | Anthony, I want to be sure that I am reading you correctly. Are you saying that the following statement, which I gleened from the internet, is FALSE:
| Quote: | For JDK releases less than 6 update 10, execute export AWT_TOOLKIT=Mtoolkit before running the installer, and before running the IDE: export AWT_TOOLKIT=Mtoolkit.
|
|
That will work to prevent the blank dialog problem when running under Compiz. However, this will also cause the keyboard lock out in NetBeans to occur whenever a dialog appears. (I will look for the issue numbers and threads of conversations about this for you if you want). Basic prior to current betas of the JDK you are damned if you do and damned if you don't.
|
Relevant defect with comments telling to whole sordid tale
http://ruby.netbeans.org/issues/show_bug.cgi?id=138774 |
|
| Back to top |
|
 |
Lawrensium Posted via mailing list.
|
|
| Back to top |
|
 |
Anthony Richardson Posted via mailing list.
|
Posted: Sat Jul 19, 2008 10:30 am Post subject: Netbeans on Linux, need help... |
|
|
It uses whicher is set as the default as per the steps. you can check on the command line by doing
java -version
it should return something like:
java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b27)
Java HotSpot(TM) Client VM (build 11.0-b14, mixed mode, sharing)
On Sat, Jul 19, 2008 at 6:36 PM, Lawrensium <lawrensium@gmail.com (lawrensium@gmail.com)> wrote:
|
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Sun Jul 20, 2008 6:05 pm Post subject: Netbeans on Linux, need help... |
|
|
If, in addition to what runtime version the IDE runs on (which is what you see with the -version command), you can also set the version of the JDK that the IDE uses by passing it in the NetBeans command or by setting it in the <netbeans-install-dir>/etc/netbeans.conf file:
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_05"
Anthony Richardson wrote: | Quote: | It uses whicher is set as the default as per the steps. you can check on the command line by doing
java -version
it should return something like:
java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b27)
Java HotSpot(TM) Client VM (build 11.0-b14, mixed mode, sharing)
On Sat, Jul 19, 2008 at 6:36 PM, Lawrensium <lawrensium@gmail.com (lawrensium@gmail.com)> wrote:
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|