Installation on Ubuntu 8.04

Hi,

I'm totally new to Arduino and I'm trying to install the software arduino-0015 on my Ubuntu 8.04 Linux box. I'm following the instructions in the tutorial and have all the necessary support software like gcc-avr installed.

When I try to run the arduino script nothing happens. The script just seems to set up PATHs and I can't see anything that looks like an IDE application in any of the files I downloaded in the tar ball. The tutorial gives a Windows example with an arduino.exe file but I don't seem to have a Linux equivalent.

Can anyone tell me what I might be missing and where I should get it?

Thanks, bjs

Look for arduino.bin maybe?

I have it working on my ubuntu box, but no port opened up on the outside for ssh :P.... or else I'd just connect and tell you.

The binary might also be just named arduino... or arduino-0015 or some thing like that. Try running it from a command line using ./sudo arduino

I just open the folder containing the files with a file browser and double click on the file called "arduino" then select run.

If this doesnt work try a terminal and use "./arduino"

Gordon

Thank you, I have the script file arduino and have tried running it in a terminal as a normal user and as sudo but neither work. I understand that the IDE is written in Java which I know nothing about. I have Sun Java 6 installed and some apps written in Java which work fine. I suspect that I must have a problem with PATHs or with dependencies but I don't know what to look for. I have tried running individual .jar files in the Lib directory but get an error message saying that Java 1..5 can't be found. Will the ISP only run under an earlier vers of Java? I'm running out of ideas and really want to get this thing working. :cry:

Hi bjs,

I have the script file arduino and have tried running it in a terminal as a normal user and as sudo but neither work.

You see nothing, no messages on the console, anything?

This is what you are doing right:
You cd into the directory where you unpacked the arduino-0015.tgz
You type ./arduino to start up the IDE

What happens? The prompt comes back and nothing?

Eberhard

Since last post I have been installing Eclipse which may have changed the Java environment. So trying again.

Well that worked, so many thanks. But the IDE seems to have hung as soon as it got started. When I tried again I got an Open pop up box instead of the IDE main window. The terminal o/p was as follows:

oSoftware/Arduino-0015Unziped/arduino-0015$ ./arduino
java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:lib/,file:lib/build/,file:lib/pde.jar,file:lib/antlr.jar,file:lib/oro.jar,file:lib/registry.jar,file:lib/mrj.jar,file:lib/RXTXcomm.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.81)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at java.lang.ClassLoader.loadClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)
at javax.swing.UIManager.setLookAndFeel(libgcj.so.81)
at processing.app.Base.(Base.java:131)
at processing.app.Base.main(Base.java:104)

It still seems to be missing something? I've had ti kill the process to shut it down.

This page Arduino Playground - Ubuntu says that gcj may be the problem and suggests you try re-installing. I googled and found that others suggested running:

update-alternatives --config java

HTH

Ver

I had nothing but troble with gcj so first thing I do is to remove it from a newly installed Ubuntu.

I suggest you install one (or both) of the
sun-java-5-jdk or (better because faster and supports javafx) sun-java-6-jdk packages.

I guess your problems will be solved with that.

Eberhard

OK, thanks. I've removed gcj and I've got sun-java6-jdk installed. I now get a pop up called 'Select (or create new) folder for sketches' when I run ./arduino but I do not get the IDE main window. The terminal output is as follows:

$ ./arduino

(:32406): Gtk-WARNING **: Attempting to add a widget with type GtkButto n to a GtkComboBoxEntry (need an instance of GtkEntry or of a subclass)

(:32406): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_AN CHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

(:32406): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gd k_drawable_get_depth (window)' failed

Am I short of some libraries?

Hi
I had a similar problem on my machine, but thought It was due to the fact that I run the KDE-version of ubuntu (KUbuntu with KDE4.2) with Java-6.

One solution for fixing this was to install the slightly older sun-java-5 package on Ubuntu. You can have both installed and switch between them using the hint Veronica gave

update-alternatives --config java

The IDE worked fine when run with java-5. (Open a console and type
java -version
should print something like "java version 1.5.xxx"

This is the only workaround I know of besides compiling the Arduino-IDE yourself.
A bug-report and patches for this has been sent to the Arduino team
but wasn't comitted to the Arduino code yet.

Eberhard

Many thanks indeed to you and Veronica. It now works :). I had not understood the significance of the update-alternatives call with only one java vers loaded.

I found by googling this morning that other apps have similar problems with sun-java6-jdk and a bug has been reported so its not an Arduino problem.

Again many thanks. Now I can get down to the serious stuff :wink:

Hi
glad it works now!
Even though the arduino-code is not the basic reason for the problem it prevents an easy fix which wouold be possible by simply switching to another LookAndFeel.

I hope will will see this bug fixed soon.

Eberhard