Seem like you have mastered the VM stuff. I am a beginner , Can i get some help on setting up the Remote VM, i have followed the turtorial on
http://remotevm.abstracthorizon.org/ecl ... orial.html , I have put the vm client jar on pi, and it running while on the eclipse, i press run. (not too sure hw this vm stuff works technically)
But what i like to do is complie my code on the pi and transfer the jar file to the pi.
help please thx.
BTW i am running java 7, (not sure abt the headless stuff either)
Error details
<--Pi4J--> GPIO Control Example ... started.
java.io.IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:45)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:40)
at com.pi4j.system.SystemInfo.getBashVersionInfo(SystemInfo.java:441)
at com.pi4j.system.SystemInfo.access$000(SystemInfo.java:43)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:193)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at com.pi4j.system.SystemInfo.isHardFloatAbi(SystemInfo.java:190)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:153)
at com.pi4j.wiringpi.Gpio.<clinit>(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.ah.remotevm.tutorial.GpioExample.main(GpioExample.java:13)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 18 more
java.io.IOException: Cannot run program "/usr/bin/readelf": CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:45)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:40)
at com.pi4j.system.SystemInfo.getReadElfTag(SystemInfo.java:472)
at com.pi4j.system.SystemInfo.hasReadElfTag(SystemInfo.java:459)
at com.pi4j.system.SystemInfo.access$100(SystemInfo.java:43)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:193)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at com.pi4j.system.SystemInfo.isHardFloatAbi(SystemInfo.java:190)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:153)
at com.pi4j.wiringpi.Gpio.<clinit>(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.ah.remotevm.tutorial.GpioExample.main(GpioExample.java:13)
Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 19 more
java.io.IOException: Cannot run program "bash": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:45)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:40)
at com.pi4j.system.SystemInfo.getBashVersionInfo(SystemInfo.java:441)
at com.pi4j.system.SystemInfo.access$000(SystemInfo.java:43)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:193)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at com.pi4j.system.SystemInfo.isHardFloatAbi(SystemInfo.java:190)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:154)
at com.pi4j.wiringpi.Gpio.<clinit>(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.ah.remotevm.tutorial.GpioExample.main(GpioExample.java:13)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 18 more
java.io.IOException: Cannot run program "/usr/bin/readelf": CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:45)
at com.pi4j.util.ExecUtil.execute(ExecUtil.java:40)
at com.pi4j.system.SystemInfo.getReadElfTag(SystemInfo.java:472)
at com.pi4j.system.SystemInfo.hasReadElfTag(SystemInfo.java:459)
at com.pi4j.system.SystemInfo.access$100(SystemInfo.java:43)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:193)
at com.pi4j.system.SystemInfo$2.run(SystemInfo.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at com.pi4j.system.SystemInfo.isHardFloatAbi(SystemInfo.java:190)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:154)
at com.pi4j.wiringpi.Gpio.<clinit>(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.ah.remotevm.tutorial.GpioExample.main(GpioExample.java:13)
Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 19 more
Dec 31, 2013 3:18:33 PM com.pi4j.util.NativeLibraryLoader load
SEVERE: Failed to load library [pi4j] using the System.load(file) method using embedded resource file: [jar:file:/C:/Documents%20and%20Settings/Administrator/Workspaces/Eclipse%20Standard%20431/eclipse-remote-vm-pi4j-rpi-tutorial/lib/pi4j-core.jar!/lib/soft-float/libpi4j.so]
Dec 31, 2013 3:18:33 PM com.pi4j.util.NativeLibraryLoader load
SEVERE: ERROR: The native library [pi4j : libpi4j.so] could not be found in the JVM library path nor could it be loaded from the embedded JAR resource file; you may need to explicitly define the library path '-Djava.library.path' where this native library can be found.
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.pi4j.wiringpi.Gpio.wiringPiSetup()I
at com.pi4j.wiringpi.Gpio.wiringPiSetup(Native Method)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:102)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:67)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:85)
at org.ah.remotevm.tutorial.GpioExample.main(GpioExample.java:13)