Page 1 of 2

Duke-Pad

Posted: Tue Sep 24, 2013 1:09 pm
by ric96

Re: Duke-Pad

Posted: Wed Sep 25, 2013 7:45 am
by sirkope
Funny, I've thinking to build a tablet with RPi since it has came out. I've bought the same LCD panel with HDMI adapter, and the same battery pack from Amazon they wrote in the part list. I also have camera module. So, except the case, MPU 9150 Gyro/Accel/Mag, and some small accessories, I have everything for it :) Last night I've started to build the software part of it, today I will finish it.
I've printed the case plan in A3 format, compared the LCD panel to it but the print is smaller :( So it can't be use without modification) I would order cutting the case from acrylic if I had the plan in proper format.

Re: Duke-Pad

Posted: Wed Sep 25, 2013 11:58 am
by ric96
how am i supposed to do this???

Re: Duke-Pad

Posted: Wed Sep 25, 2013 12:08 pm
by ghans
On Ubuntu/debian/Mint

Code: Select all

sudo apt-get install mercurial
man hg
On Windows :

http://tortoisehg.bitbucket.org/

ghans

Re: Duke-Pad

Posted: Wed Sep 25, 2013 12:32 pm
by DanielBarker
I am very interested in this.

Apologies if it's a basic question but - will the Duke-Pad run 'typical' Raspberry Pi things - in my case:

- Terminal and GNU/Debian tools (e.g. gcc, bash, apt);
- Web browser;
- Some kind of office software (e.g. LibreOffice)?

I don't care about X11 specifically - if the GUI is achieved by other means this is fine.

Thank you,

Daniel Barker

Re: Duke-Pad

Posted: Wed Sep 25, 2013 12:43 pm
by ghans
I guess fullscreen JavaFX and X11 are exclusive on the Pi : You can't have both at the same time , but you
should be able to shutdown the one to launch the other , without rebooting the OS (similiar to XBMC on Raspbian) .


ghans

Re: Duke-Pad

Posted: Fri Sep 27, 2013 4:18 am
by ric96
a little bit help on
If you are using IntelliJ IDEA, locate under rt/apps/experimental the DukePad project. Open it and build. It should build, auto-downloading dependencies from maven central. Alternatively, you can try using the gradle build file. To do so, cd into rt/apps/experimental/DukePad. Execute:


me@my-computer:$ gradle artifacts
cant get this to work
using ubuntu 13.04

Re: Duke-Pad

Posted: Fri Sep 27, 2013 6:37 am
by ghans
http://www.gradle.org/downloads

Gradle is in the repos for 12.04 LTS though.


ghans

Re: Duke-Pad

Posted: Fri Sep 27, 2013 12:54 pm
by sirkope

Re: Duke-Pad

Posted: Fri Sep 27, 2013 1:19 pm
by ric96
i think you can give it a try on the pi ;)

Re: Duke-Pad

Posted: Sat Sep 28, 2013 8:05 pm
by sirkope
rt/apps/experiments/DukePad# gradle artifacts

FAILURE: Build failed with an exception.

* Where:
Build file '/home/gabor/a/rt/apps/experiments/DukePad/build.gradle' line: 54

* What went wrong:
A problem occurred evaluating root project 'DukePad'.
Cause: 7

build.grade line 54:

sourceCompatibility = 1.8;

:(

Re: Duke-Pad

Posted: Sat Sep 28, 2013 11:11 pm
by Markamc
Hi trying the same...

set JAVA_HOME to the correct JDK1.8.0 directory location and can get it to build with errors, 20, reduced from 100 with variable set. First error being..

Code: Select all

/home/lamiii/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:29: error: package org.eclipse.core.runtime.preferences does not exist
import org.eclipse.core.runtime.preferences.ConfigurationScope;
Still trying to build using virtualbox ubuntux64 on win7x64

will post progress as & when, cheers mark

Re: Duke-Pad

Posted: Sun Sep 29, 2013 6:41 am
by ric96
i am also getting 20 errors

Code: Select all

sahaj@sahaj-Ubuntu:~/rt/apps/experiments/DukePad$ gradle artifacts
:core:compileJava
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:29: error: package org.eclipse.core.runtime.preferences does not exist
import org.eclipse.core.runtime.preferences.ConfigurationScope;
                                           ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:30: error: package org.osgi.service.prefs does not exist
import org.osgi.service.prefs.BackingStoreException;
                             ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:31: error: package org.osgi.service.prefs does not exist
import org.osgi.service.prefs.Preferences;
                             ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:38: error: cannot find symbol
    private Preferences preferences;
            ^
  symbol:   class Preferences
  location: class DukeApplication
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:83: error: cannot find symbol
    protected final Preferences getPreferences() {
                    ^
  symbol:   class Preferences
  location: class DukeApplication
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:38: error: package org.osgi.framework does not exist
import org.osgi.framework.BundleActivator;
                         ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:39: error: package org.osgi.framework does not exist
import org.osgi.framework.BundleContext;
                         ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:40: error: package org.osgi.framework does not exist
import org.osgi.framework.Constants;
                         ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:41: error: package org.osgi.framework does not exist
import org.osgi.framework.ServiceEvent;
                         ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:46: error: cannot find symbol
public class CoreActivator implements BundleActivator {
                                      ^
  symbol: class BundleActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:54: error: cannot find symbol
    @Override public void start(final BundleContext bundleContext) throws Exception {
                                      ^
  symbol:   class BundleContext
  location: class CoreActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:89: error: cannot find symbol
    @Override public void stop(BundleContext bundleContext) throws Exception {
                               ^
  symbol:   class BundleContext
  location: class CoreActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:63: error: cannot find symbol
            Preferences prefs = getPreferences();
            ^
  symbol:   class Preferences
  location: class DukeApplication
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:66: error: cannot find symbol
        } catch (BackingStoreException e) {
                 ^
  symbol:   class BackingStoreException
  location: class DukeApplication
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/DukeApplication.java:84: error: package ConfigurationScope does not exist
        if (preferences == null) preferences = ConfigurationScope.INSTANCE.getNode(getName());
                                                                 ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:67: error: cannot find symbol
        }, "("+ Constants.OBJECTCLASS+"=com.javafx.experiments.dukepad.core.DukeApplication)");
                ^
  symbol:   variable Constants
  location: class CoreActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:64: error: cannot find symbol
                case ServiceEvent.REGISTERED: root.add(app); break;
                     ^
  symbol:   variable ServiceEvent
  location: class CoreActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:65: error: cannot find symbol
                case ServiceEvent.UNREGISTERING: root.remove(app); break;
                     ^
  symbol:   variable ServiceEvent
  location: class CoreActivator
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:54: error: method does not override or implement a method from a supertype
    @Override public void start(final BundleContext bundleContext) throws Exception {
    ^
/home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java:89: error: method does not override or implement a method from a supertype
    @Override public void stop(BundleContext bundleContext) throws Exception {
    ^
Note: /home/sahaj/rt/apps/experiments/DukePad/modules/core/src/main/java/com/javafx/experiments/dukepad/core/CoreActivator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
20 errors
:core:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.526 secs

Re: Duke-Pad

Posted: Sun Sep 29, 2013 11:16 am
by chromebookbob
I have been wrangling with this problem, you should be able to build it using this: http://www.jetbrains.com/idea/download/
I am attempting to build it now. so far without sucess

Re: Duke-Pad

Posted: Sun Sep 29, 2013 11:44 am
by sirkope
My result:

-VirtualBox:~/a/rt/apps/experiments/DukePad$ gradle artifacts

FAILURE: Build aborted because of an internal error.

* What went wrong:
Build aborted because of an unexpected internal error. Please file an issue at: http://www.gradle.org.

* Try:
Run with --debug option to get additional debug info.

* Exception is:
org.gradle.api.UncheckedIOException: java.io.IOException: File '/home/gabor/.gradle/caches/1.0-milestone-3/scripts/settings_5h15qd86ho110tchu6nr4durur/buildscript_SettingsScript/emptyScript.txt' could not be created
at org.gradle.util.GFileUtils.touch(GFileUtils.java:60)
at org.gradle.groovy.scripts.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:123)
at org.gradle.groovy.scripts.DefaultScriptCompilationHandler.compileToDir(DefaultScriptCompilationHandler.java:60)
at org.gradle.groovy.scripts.CachingScriptCompilationHandler.compileToDir(CachingScriptCompilationHandler.java:33)
at org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.loadViaCache(DefaultScriptCompilerFactory.java:90)
at org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.compile(DefaultScriptCompilerFactory.java:69)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:114)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.applySettingsScript(ScriptEvaluatingSettingsProcessor.java:64)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:55)
at org.gradle.initialization.PropertiesLoadingSettingsProcessor.process(PropertiesLoadingSettingsProcessor.java:37)
at org.gradle.initialization.SettingsHandler.loadSettings(SettingsHandler.java:97)
at org.gradle.initialization.SettingsHandler.findSettingsAndLoadIfAppropriate(SettingsHandler.java:87)
at org.gradle.initialization.SettingsHandler.findAndLoadSettings(SettingsHandler.java:46)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:133)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
at org.gradle.launcher.Main.execute(Main.java:55)
at org.gradle.launcher.Main.main(Main.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Caused by: java.io.IOException: File '/home/gabor/.gradle/caches/1.0-milestone-3/scripts/settings_5h15qd86ho110tchu6nr4durur/buildscript_SettingsScript/emptyScript.txt' could not be created
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:175)
at org.apache.commons.io.FileUtils.touch(FileUtils.java:220)
at org.gradle.util.GFileUtils.touch(GFileUtils.java:58)
... 30 more


BUILD FAILED

Total time: 6.207 secs

Re: Duke-Pad

Posted: Sun Sep 29, 2013 12:09 pm
by chromebookbob
managed to build, got 100 errors but also some .jars etc. it doesn't work as of yet.

Re: Duke-Pad

Posted: Mon Sep 30, 2013 1:53 pm
by ric96
chromebookbob wrote:I have been wrangling with this problem, you should be able to build it using this: http://www.jetbrains.com/idea/download/
I am attempting to build it now. so far without sucess
have already tried , same problem :cry: :cry:

Re: Duke-Pad

Posted: Wed Oct 02, 2013 10:53 am
by sirkope
Has anyone tried this? : jdk-8-ea-b109-linux-arm-vfp-hflt-25_sep_2013.tar.gz

Re: Duke-Pad

Posted: Thu Oct 03, 2013 3:44 pm
by ric96
sirkope wrote:Has anyone tried this? : jdk-8-ea-b109-linux-arm-vfp-hflt-25_sep_2013.tar.gz
just another weekly build
will and probably does have the same result!

Re: Duke-Pad

Posted: Fri Oct 04, 2013 9:41 am
by sirkope
And then? We should gave it up?

Re: Duke-Pad

Posted: Fri Oct 04, 2013 9:54 am
by Markamc
I've managed to build in virtualbox - ubuntu13.04 using itellijidea 12.
After adding OSGI/maven plugins inside Intellijidea and changing project structure settings etc, I can build/run with no errors in Ubuntu but not yet Rpi, still working on it. Will post later with update.

Cheers,
mark

Re: Duke-Pad

Posted: Sat Oct 12, 2013 3:01 pm
by sirkope
Any news?

Re: Duke-Pad

Posted: Wed Oct 23, 2013 6:24 am
by idorel77
Any news? heeeeellllp! :D

Re: Duke-Pad

Posted: Wed Oct 23, 2013 7:53 pm
by Markamc
Sorry, not had too much time and reached a standstill,. Can compile and run in windows/linux (virtualbox), but can't run released or on pi, so stumped for the moment.

Re: Duke-Pad

Posted: Thu Oct 24, 2013 5:27 am
by ric96
ric96 wrote:Anyone brave enough to try this : https://wiki.openjdk.java.net/display/OpenJFX/DukePad
that's y i mentioned BRAVE,, it needs a lot of debugging! :? :( :(