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?
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.
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:
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)
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.
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
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.