syed.abidi
Posts: 3
Joined: Tue Oct 30, 2012 11:59 pm

Installing Processing & Arduino UNO Software on Wheezy

Wed Oct 31, 2012 12:12 am

Dear All,

I am quite new to raspberry Pi and I am facing problems in installing Processing and Arduino Software on the Wheezy Linux. After unzipping when I try to run the above mentioned software's execution files I get the following error:

/root/Desktop/arduino-0023/java/bin/java: 1: /root/Desktop/arduino-0023/java/bin/java: Syntax error: "(" unexpected

Please guide me if there is some additional step I need to perform before I can proceed with the installation to avoid the above error.

Please reply asap and let me know if you need more info about my issue!

Thanks!

Khizar

dtokez
Posts: 18
Joined: Mon Oct 22, 2012 11:33 am

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Oct 31, 2012 12:11 pm

Does wheezy run java then? I didn't think it did but I may be totally wrong

User avatar
penguintutor
Posts: 380
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Oct 31, 2012 1:25 pm

I have installed the install Arduino, which is now available through the normal repositories

Code: Select all

sudo apt-get update
sudo apt-get install arduino
(the update is not always needed if run previously, but may improve the chance of this succeeding).

This will install the icedtea Java vm as well as all the other per-requisites for the avr compiler.

I haven't tried Processing - I recall it being fussy about the JavaVM in the past, so that may need the SUN VM.

syed.abidi
Posts: 3
Joined: Tue Oct 30, 2012 11:59 pm

Re: Installing Processing & Arduino UNO Software on Wheezy

Thu Nov 01, 2012 9:28 am

Dear fellows,

I tried to install the headless as well as headful version of the Java Embedded SE but both have not solved my problem. I followed following links to solve my issue but in vain!

http://forum.processing.org/topic/proce ... spberry-pi
http://www.savagehomeautomation.com/pro ... endly=true

Please refer to the end of this post for more info about the errors I got.
I will try to connect my raspberry pi to my home internet because my office internet is not allowing me to connect to some sites for direct updates installation.

Any suggestions will be highly welcomed.



WHEN I REMOVED THE JAVA FOLDER FROM THE PROCESSING FOLDER

[email protected] ~/Desktop/Arduino/processing-2.0b3

$ java.lang.ClassNotFoundException: com.sun.jdi.VirtualMachine
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at processing.app.Base.initRequirements(Base.java:237)
at processing.app.Base.createAndShowGUI(Base.java:165)
at processing.app.Base.access$000(Base.java:46)
at processing.app.Base$1.run(Base.java:136)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711)
at java.awt.EventQueue.access$000(EventQueue.java:104)
at java.awt.EventQueue$3.run(EventQueue.java:672)
at java.awt.EventQueue$3.run(EventQueue.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:681)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)


[email protected] ~/Desktop/Arduino/processing-2.0b3 $
[email protected] ~/Desktop/Arduino/processing-2.0b3 $


java.lang.ClassNotFoundException: com.sun.jdi.VirtualMachine
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at processing.app.Base.initRequirements(Base.java:237)
at processing.app.Base.createAndShowGUI(Base.java:165)
at processing.app.Base.access$000(Base.java:46)
at processing.app.Base$1.run(Base.java:136)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711)
at java.awt.EventQueue.access$000(EventQueue.java:104)
at java.awt.EventQueue$3.run(EventQueue.java:672)
at java.awt.EventQueue$3.run(EventQueue.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:681)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)



WHEN I PASTED BACK THE JAVA FOLDER IN THE PROCESSING FOLDER


[email protected] ~/Desktop/Arduino/processing-2.0b3 $ sh processing
[email protected] ~/Desktop/Arduino/processing-2.0b3 $ /home/pi/Desktop/Arduino/processing-2.0b3/java/bin/java: 1: /home/pi/Desktop/Arduino/processing-2.0b3/java/bin/java: Syntax error: "(" unexpected



WHEN I REMOVED THE JAVA FOLDER FROM THE ARDUINO FOLDER

[email protected] ~/Desktop/Arduino/processing-2.0b3 $
[email protected] ~/Desktop/Arduino/processing-2.0b3 $ cd ..
[email protected] ~/Desktop/Arduino $ cd arduino-0023/
[email protected] ~/Desktop/Arduino/arduino-0023 $ sh arduino
java.lang.UnsatisfiedLinkError: /home/pi/Desktop/Arduino/arduino-0023/lib/librxtxSerial.so: /home/pi/Desktop/Arduino/arduino-0023/lib/librxtxSerial.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/Desktop/Arduino/arduino-0023/lib/librxtxSerial.so: /home/pi/Desktop/Arduino/arduino-0023/lib/librxtxSerial.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.app.Editor.populateSerialMenu(Editor.java:957)
at processing.app.Editor.buildToolsMenu(Editor.java:694)
at processing.app.Editor.buildMenuBar(Editor.java:479)
at processing.app.Editor.<init>(Editor.java:201)
at processing.app.Base.handleOpen(Base.java:699)
at processing.app.Base.handleOpen(Base.java:664)
at processing.app.Base.handleNew(Base.java:561)
at processing.app.Base.<init>(Base.java:301)
at processing.app.Base.main(Base.java:190)

^C
[email protected] ~/Desktop/Arduino/arduino-0023 $
[email protected] ~/Desktop/Arduino/arduino-0023 $ java -version
java version "1.7.0_06"
Java(TM) SE Embedded Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Embedded Client VM (build 23.2-b09, mixed mode)
[email protected] ~/Desktop/Arduino/arduino-0023 $


WHEN I PASTE BACK THE JAVA FOLDER IN THE ARDUINO FOLDER I GET THE PREVIOUS ERROR AS POSTED IN MY 1ST POST

syed.abidi
Posts: 3
Joined: Tue Oct 30, 2012 11:59 pm

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Nov 07, 2012 12:26 pm

Dear All,

I have managed to install Arduino & processing on Raspberry Pi. I will soon post the correct procedures for the installation!

Thanks for your inputs!

User avatar
scruss
Posts: 2910
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Nov 07, 2012 12:45 pm

This is how I got it to work: Running Processing on Raspberry Pi.

Also, you don't need to delete any subfolders of the Arduino software installation. It should just work.

Please note that both of these are painfully slow. Arduino is usable (just), but Processing is so slow that it's easy to think that it's not working.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
fdion
Posts: 307
Joined: Sun Sep 16, 2012 2:33 pm
Location: North Carolina, USA
Contact: Website

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Nov 07, 2012 12:54 pm

These simple instructions (basically apt-get update and apt-get install) have worked for months now, no need to do complicated stuff:
http://raspberry-python.blogspot.com/20 ... duino.html
In french, but just scroll down past several pictures, to section "L'installation", or use google translate on the right and read the whole thing.

Also, in order to make this more usable, it is possible to run arduino IDE on the Pi but display on a PC, using my sidekick technique here: http://raspberry-python.blogspot.com/20 ... ekick.html (in english this one)

François
Francois
http://raspberry-python.blogspot.com - http://www.3dFutureTech.info - @f_dion

Dog glitz
Posts: 4
Joined: Thu Sep 06, 2012 3:35 pm

Re: Installing Processing & Arduino UNO Software on Wheezy

Sat Nov 24, 2012 12:03 am

Help --

I am new to linux and have had trouble getting the arduino ide to run on my pi. I am using wheezy which I just installed a few days ago, have repartitoned my 8 meg sd and still can't make headway.
Per edition 6 of magpi, i used the sudo apt-get install arduino insyructions and was able to download and expand the files. When i try to run the ide, I get an error message: Exception in thread "main" java.lang.Exceptioninitializererror at processing.app.Base.main(Base.java:113) Caused by java.awt.HeadlessException.

I read through other posts and found other people with this problem, but never did find an answer on how to fix it.

Would appreciate any suggestions

Thanks

Fred

User avatar
scruss
Posts: 2910
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Jan 02, 2013 2:45 am

Dog glitz wrote:When i try to run the ide, I get an error message: Exception in thread "main" java.lang.Exceptioninitializererror at processing.app.Base.main(Base.java:113) Caused by java.awt.HeadlessException.
Are you running it from an X session? You should be able to call it up from the LXDE menu.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
scruss
Posts: 2910
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Installing Processing & Arduino UNO Software on Wheezy

Wed Jan 08, 2014 2:49 am

‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

Return to “Beginners”