Installation on Ubuntu 10

Hi,

I am brand new to Servoy. I just tried installing it on my Ubuntu 10 machine. I intend to develop both on Linux and Windows.

I see a few issues:

  1. It did not add any menu options for itself on the menu. I had to navigate to the install folder and run it from there.
  2. I tried out the CRM solution and it doesn’t run for me. Servoy just closed.
  3. When I was viewing the welcome videos, servoy just closed in the middle of that too.

Any ideas?

What is the output at the terminal from…

java -version

java version “1.6.0_20”
OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu1~10.04.1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

Servoy is not compatible with the OpenJDK, you must uninstall it and install a SUN JRE or JDK.

Hi bazianm

Yo don’t need to unistall Open JDK. Just install Sun Java from repositories and change to the new JVM.

sudo update-alternatives --config java

If you’re working with ubuntu 64, try with Sun Java 1.5

Best regards. Roberto Blasco.

Roberto,

the reason I advised uninstalling the OpenJDK first was that in my case on many instance, doing a simple update-alternatives didn’t work… only fully uninstalling the OpenJDK before installing the Sun JRE did work.
But there’s no harm trying :)

As for java 1.5 vs 1.6. If you install the 1.5, launch Developer and change the default L&F, then install the 1.6, this works (in my case on Mint 9 - and I tried 32 and 64-bit Gnome and KDE).

Thanks for the assist. I am trying to get OpenJDK off my system and I am not sure it is all gone. Here’s the situation. I removed it with the ubuntu software center. Then I look at:

sudo update-alternatives --config java

It tell me:

Selection Path Priority Status

0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode

  • 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

(I installed the Sun-Java runtime before I tried to uninstall OpenJDK.)

So, I tried these commands:

sudo apt-get remove openjdk-6-jdk

Ubuntu told me to run autoremove so I did. Now Ubuntu tells me that openjdk-6-jdk is gone but I still see all the alternatives so I do not know if it is gone. I don’t want to run Servoy until only Sun is left.

Am I missing something here? Is it safe for me to use Servoy?

Thanks. Sorry if the question is dum dum… I am new to all this…

Hi bazianm

You can install as many JVMs as you want in your linux System. Servoy will use the active one (java -version).

Look at /usr/bin/java, it’s just a symbolic link to the java’s directory. I’ve installed openJDK, Sun 1.5 and Sun 1.6 on my system, changing betwen jvms when I want and everything goes right.

Best regards. Roberto Blasco.

OK. I just tried it again. I did not reinstall Servoy, I just tried to run the crm solution and again it just ended Servoy.

A few other notes might be relevant here:

  1. When I installed, it wanted to install in the /usr tree but then it said that it could not write there so I installed it under home
  2. I can only run Servoy by navigating to the Servoy/Developer folder and running the servoy app from there. If I try to add it to my menu, it cannot find the application server.
  3. I have confirmed that the Sun jre is selected as shown here:
  Selection    Path                                      Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
* 2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

I also double checked my java version with java -version. Here’s the output from that.

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

Any ideas?

Hi bazianm

Try with java sun 1.5. You will have to install it manually, because it is not in the repositories.

Best regards. Roberto Blasco.