Windows=No such file or directory & Ubuntu=IDE setup Solved

I have looked through the forum and I haven't seen anyone mention the problem I am having with the Arduino Yun Sketch (unless I missed it). I have also been reading through the Playground. I am running Windows 7, I upgraded the Yun to 1.5.2, I am using the Arduino 1.5.8 version of Sketch, I select through tools the Yun Board, I connect to the Com listed that the Yun is connected to(Since I know not all examples run wirelessly), I connected wirelessly to my home network and I can ping through my command prompt and through my Yuns LUCI diagnostics with out a dropped packet. I have reset and followed all the Set-Up steps again to make sure I did not miss anything. Even running a Basic Sketch like Blink I get the following error I pasted below. I just downloaded Ubuntu to run along side my Windows 7 so I am just starting to set things up in Ubuntu as a last ditch effort to get the Yun to respond because I understand Linux and Windows sometimes have trouble meshing but I am new to Ubuntu. I am trying to get the Yun to run Sketches for a school project and I am running out of time so any help I can get is much appreciated. I apologize if it is a oversight on my part but really could use some help. Thanks

Arduino: 1.5.8 (Windows 7), Board: "Arduino Yún"

C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\yun C:\Users\Tommy's\AppData\Local\Temp\build5170701097953504400.tmp\Blink.cpp -o C:\Users\Tommy's\AppData\Local\Temp\build5170701097953504400.tmp\Blink.cpp.o

avr-g++: error: C:\Users\Tommys\AppData\Local\Temp\build5170701097953504400.tmp\Blink.cpp -o C:\Users\Tommys\AppData\Local\Temp\build5170701097953504400.tmp\Blink.cpp.o: No such file or directory
avr-g++: fatal error: no input files
compilation terminated.
Error compiling.

I have issues with the Arduino Sketch not compiling in Windows so I decided to go with Ubuntu as the operating system and at the end of this thread the IDE setup issue I was having with Ubuntu was solved by Angelo9999. Thanks again Angelo9999

I would reinstall the IDE

Thanks for the reply. Yes I already reinstalled Arduino 1.5.8 BETA when I reset the Yun and went through the set up again. It has to be something with Windows blocking the Yun from being seen by the program. I started playing with it in Ubuntu using the Arduino 1.0.6 IDE and selecting a different board since Yun is not supported on it and I can get it to Blink, Blink without delay that way now. I am looking to see if I can install the proper Arduino 1.5.8 BETA on Ubuntu and then I will just run everything through that platform but since I have never used Ubuntu I am trying to figure it out. So its a slow process.

Have you upgrade your yun linux to openWrt like is explained in some posts ?

Thanks for your reply. Yes I used the OpenWrt-Yun 1.5.2 download and installed it from a MicroSD card to the Yun so it has the updated version. I followed the Yún sysupgrade tutorial.

It is not a problem related to computer-Arduino communication, but it is a compilation error. Are you using the IDE with installer or the portable version?

About Ubuntu: to use the IDE in linux you just need to download the zip file, extract the archive and then move inside the extracted folder and double click on the file named "arduino".

Angelo9999:
It is not a problem related to computer-Arduino communication, but it is a compilation error. Are you using the IDE with installer or the portable version?

About Ubuntu: to use the IDE in linux you just need to download the zip file, extract the archive and then move inside the extracted folder and double click on the file named "arduino".

I am using the Arduino 1.5.8 (release notes): Windows: Installer from the download page. On Windows.

I tried double clicking on the arduino file in Ubuntu and nothing happens. So when I put the code into the Terminal I get an error message>

Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base
Caused by: java.lang.ClassNotFoundException: processing.app.Base
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: processing.app.Base. Program will exit.

Thanks for your reply

I followed the Complete Numpties Guide to installing the Arduino IDE on Ubuntu. Everything is fine until it says to double click on the arduino file and run it. It never gives me a run option. It just pops up on the notepad. I have opened Terminal and tried running it through there. Still I get the error mentioned above.I gave up on the Windows issue for now since Ubuntu at least can Sketch using the wrong IDE other than the one the Yun calls for. I would be happy to get either a 32 bit or 64 bit IDE 1.5.8 to work on either system. Any hints that can help I am ready to learn? Any help would be greatly appreciated. Thanks

Did you move the arduino file or it is in its original directory?

It is in its original directory when I double click on it. Then I also tried to move the file itself to the Terminal. I was going to try the zip from github next. I am an electronics major not a programming major so this is all relatively new to me. The code I saved below is the Arduino file that pops up after double clicking on it. Thanks for you help

#!/bin/sh

CURDIR=pwd
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"

cd "$APPDIR"

for LIB in
java/lib/rt.jar
java/lib/tools.jar
lib/*.jar
;
do
CLASSPATH="${CLASSPATH}:${LIB}"
done
export CLASSPATH

LD_LIBRARY_PATH=pwd/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

export PATH="${APPDIR}/java/bin:${PATH}"

java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base --curdir $CURDIR "$@"

Open a terminal, move to the folder with the cd command and then run

sudo chmod +x arduino

After this you can double click on the executable and it will run instead of opening the text editor.

Inside Terminal

tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~$ cd ~/usr
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr$ ls
arduino-1.5.8
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr$ sudo chmod +x arduino
[sudo] password for tommyspace2099:
chmod: cannot access ‘arduino’: No such file or directory
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr$

and Thanks for your help and being patient with me.

after you do ls
you have to do:

cd arduino-1.5.8
chmod +x arduino

After you run chmod please paste the output of the command pwd and ls -la just to give more information to us.

:smiley: tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~$ cd ~/usr
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr$ ls
arduino-1.5.8
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr$ cd arduino-1.5.8tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ chmod +x arduino
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ #!/bin/sh
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ CURDIR=pwd
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ cd "$APPDIR"
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ for LIB in \

java/lib/rt.jar
java/lib/tools.jar
lib/*.jar
;
do
CLASSPATH="${CLASSPATH}:${LIB}"
done
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ export CLASSPATH
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ LD_LIBRARY_PATH=pwd/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ export LD_LIBRARY_PATH
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ export PATH="${APPDIR}/java/bin:${PATH}"
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base --curdir $CURDIR "$@"

Sketch uses 4,872 bytes (16%) of program storage space. Maximum is 28,672 bytes.
Global variables use 157 bytes (6%) of dynamic memory, leaving 2,403 bytes for local variables. Maximum is 2,560 bytes.
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ pwd
/home/tommyspace2099/usr/arduino-1.5.8
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ lsarduino examples hardware lib libraries reference revisions.txt tools
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$ laarduino examples hardware lib libraries reference revisions.txt tools
tommyspace2099@tommyspace2099-Dell-System-Inspiron-N7110:~/usr/arduino-1.5.8$

AWESOME!!! You are the man. Thanks for Baby stepping me through the Ubuntu setup for the Arduino 1.5.8 IDE. After I ran the chmod +x arduino command I double clicked the Arduino file and nothing happened. So I pasted the file that was on the Text editor to Terminal and ran it and my problem is solved. Thank you very much. Now I can start on my school project. Have a good one. Peace

The only issue I have with it now is I have to reinstall the IDE if I close it out. The Icon is under the shell of the quick launch bar. I will figure that all out later. At least I can program the Yun now.