Josh Yaxley said:
I've just started learning to program in Java and I was just wondering (because I can't find this anywhere else - although maybe I've just not looked hard enough):
Once I have my final java project, how to I make it into a compatible ".pnd" file?
You have to bundle a JVM along with your PND, as the Pandora doesn't have one at the moment.
OR you can do it like this (I don't have a Pandora so I haven't actually tested it):
Code:
#!/bin/bash
# Checks for a JVM and installs it if it's missing,
jar='./bin/myjar.jar' #Insert the name of your JAR file here
if [ ! -x '/usr/bin/java' ]; then
gksudo ./bin/installjava.sh
fi
java -jar "$jar" $@
...and in a file 'bin/installjava.sh':
Code:
#!/bin/bash
# Installs a JVM on the Pandora
xterm -e 'opkg update'
xterm -e 'okpg install jamvm'