Go to advanced search

by xranby
Wed Sep 30, 2015 1:40 pm
Forum: Java
Topic: Can't change System Property in Java (java -D)
Replies: 3
Views: 1345

Re: Can't change System Property in Java (java -D)

... What I tried is: java -D sun.security.smartcardio.library=/usr/lib/arm-linux-gnueabihf/libpcsclite.so.1 it is the space between the -D and sun.security.smartcardio.library=/usr/lib/arm-linux-gnueabihf/libpcsclite.so.1 that cause the problem use java -Dsun.security.smartcardio.library=/usr/lib/a...
by xranby
Wed Sep 30, 2015 10:20 am
Forum: Java
Topic: Pi4J Serial Comms NO Exception
Replies: 4
Views: 977

Re: Pi4J Serial Comms NO Exception

Hi xranby, thanks for your response. This is a very nice solution of using network connection and ser2net. I managed to it working with a slight hack. What I did was when the connection is make to ttyUSB* I create a instance of java io File to this device. On each read/write I check file.exists() T...
by xranby
Wed Sep 30, 2015 7:01 am
Forum: Java
Topic: Pi4J Serial Comms NO Exception
Replies: 4
Views: 977

Re: Pi4J Serial Comms NO Exception

I have built a project where i wanted to know when a serial usb dongle is attached and removed that is working reliable. my solution composed of two parts: 1. I decided to add custom /etc/udev/rules.d/ udev rule to make the serial usb dongle always to get a fixed /dev/ttySerialUSB when attached. My ...
by xranby
Mon Sep 28, 2015 7:34 am
Forum: Java
Topic: Java Setup Not Working Properly
Replies: 6
Views: 2527

Re: Java Setup Not Working Properly

It is ok to use OpenJDK If you want to use Java on the Pi for any use-case. OpenJDK is free software thus you then have the freedoms to run it for any purpose, study it, share it, modify it and share your modified version. Oracle has confirmed that you may use OpenJDK for any purpose without having ...
by xranby
Wed Sep 23, 2015 2:51 pm
Forum: Java
Topic: JGLES2PI
Replies: 12
Views: 1885

Re: JGLES2PI

Okay, pushed a new commit, removing the cross platform stuff with the stuff that needs to be RPI specific (like hard coded paths /opt/vc) I made a new raspbian sd card and tested it and it all seems hunky dory :) It compiles fine for me now as well! I'm thinking of making a few tutorials from simpl...
by xranby
Wed Sep 23, 2015 10:29 am
Forum: Java
Topic: JavaFX on Raspberry Pi 2 B with 4Dpi-24-HAT
Replies: 1
Views: 908

Re: JavaFX on Raspberry Pi 2 B with 4Dpi-24-HAT

I have a Raspberry Pi 2 B with display 4DSystem 4DPi-24-HAT . Display works fine but When I running the JavaFX app on terminal this command java -jar Hello.jar app is showed in HDMI, not in 4DPi-24-HAT. What I can do to show the application in 4DPi-24-HAT? By default it is "impossible" to make the ...
by xranby
Wed Sep 23, 2015 10:13 am
Forum: Java
Topic: JGLES2PI
Replies: 12
Views: 1885

Re: JGLES2PI

I tried to compile your project by running ant on a raspberry pi. however the pkg-config failed to resolve the include path of egl thus the build fail on a default installed raspbian system. $(shell pkg-config egl --libs) It would be good if the build instructions mentioned which -dev packages if an...
by xranby
Wed Sep 23, 2015 8:41 am
Forum: Java
Topic: JGLES2PI
Replies: 12
Views: 1885

Re: JGLES2PI

I'm not a lawyer.... But as I understand it code published without a licence is implicitly public domain, which was certainly my intention... Do what you like with the code, it can certainly be improved ! Thank you for explicit clarify that you intend to put the work under public domain. KUDOS! The...
by xranby
Tue Sep 22, 2015 11:36 pm
Forum: Java
Topic: JGLES2PI
Replies: 12
Views: 1885

Re: JGLES2PI

Hi! Nice to see one more Java OpenGL ES bindings that can be used on the Pi. It would be good to know which license your work use or if you have contributed the work to be under public domain. I ask because there is much code overlap how to hande mouse and keyboard input systems with existing java o...
by xranby
Tue Sep 22, 2015 3:33 pm
Forum: Java
Topic: Call web service in handleGpioPinDigitalStateChangeEvent?
Replies: 2
Views: 1704

Re: Call web service in handleGpioPinDigitalStateChangeEvent

It looks like the sequence:

Code: Select all

GeoIPService service = new GeoIPService();
service.getGeoIPServiceSoap();
fail if you run it twice inside the same application.

Does the code work once if you only do this once inside the event handler?
by xranby
Sun Sep 20, 2015 5:43 pm
Forum: Java
Topic: JOGL, Swing and BlueJ
Replies: 7
Views: 2300

Re: JOGL, Swing and BlueJ

Thanks for all your help but I think I'll give up on jogl2 on the RPi! I'm not an opengl, jogl, linux expert!! I'd like to use it out of the box and not start installing any different drivers. Also, being able to place or embed an opengl window on a canvas is a basic requirement for using Java Swin...
by xranby
Sun Sep 20, 2015 5:14 pm
Forum: Java
Topic: JOGL, Swing and BlueJ
Replies: 7
Views: 2300

Re: JOGL, Swing and BlueJ

Thanks for taking the time to rejig the example. It runs, but I get red errors (glGetError 0x500) in the terminal window. Also it generates 2 cursors and does pretty weird things. A bit unusable really. The Broadcom OpenGL ES driver is designed to be used from text-mode (before you run startx). Thu...
by xranby
Sun Sep 20, 2015 1:09 pm
Forum: Java
Topic: JOGL, Swing and BlueJ
Replies: 7
Views: 2300

Re: JOGL, Swing and BlueJ

Solution C (easy, workaround the issue, require modification of your JOGL application): The example application JOGLQuad done by GouesseJ uses OpenGL 2, GL2, and depends on AWT/Swing using a GLCanvas and a Frame. https://gist.github.com/gouessej/3420e2b6f632efdddf98 The Raspberry Pi Broadcom OpenGL...
by xranby
Sun Sep 20, 2015 9:58 am
Forum: Java
Topic: JOGL, Swing and BlueJ
Replies: 7
Views: 2300

Re: JOGL, Swing and BlueJ

Three solutions to your issue below: A, B and C Solution A (hard, require modification of JOGL, a good solution in log term): Mixing OpenGL ES 1 or OpenGL ES 2 in combination with xorg X11 windows is not easily done one the Raspberry Pi when using the Broadcom OpenGL ES driver. The technical reason ...
by xranby
Fri Sep 18, 2015 12:37 pm
Forum: Java
Topic: Java OpenGL ES 2 bindings using JogAmp JOGL 2
Replies: 78
Views: 35948

Re: Java OpenGL ES 2 bindings using JogAmp JOGL 2

Thanks for your reply. I now get another runtime exception: pi@raspberrypi ~/jogamp-all-platforms $ java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:/usr/share/java/junit4/jar:jar/jogl-test.jar:jar/gluegen-test-util.jar com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT -time 400000 -wid...
by xranby
Thu Sep 17, 2015 1:41 pm
Forum: Java
Topic: Java OpenGL ES 2 bindings using JogAmp JOGL 2
Replies: 78
Views: 35948

Re: Java OpenGL ES 2 bindings using JogAmp JOGL 2

Can't seem to get the junit Gears program to run using the pasted command of " xranby": pi@raspberrypi ~/jogamp-all-platforms $ java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:/usr/share/java/junit4.jar:jar/jogl-test.jar \ com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT \ - time 4000...
by xranby
Wed Sep 16, 2015 8:51 am
Forum: Java
Topic: Processing 3 is running for the first time on a Raspberry Pi
Replies: 35
Views: 19071

Re: Processing 3 is running for the first time on a Raspberr

If you are only interested in running OpenGL ES 2 applications then continue use the default OpenGL ES 2 driver shipped with Raspbian. If you are interested in running OpenGL 2 applications then do continue to test the new driver. Thanks for the answer. i'm use pi1. And use vc4 driver slow down all...
by xranby
Wed Sep 16, 2015 7:56 am
Forum: Java
Topic: Processing 3 is running for the first time on a Raspberry Pi
Replies: 35
Views: 19071

Re: Processing 3 is running for the first time on a Raspberr

Yes the system image is using an uptodate kernel and we have enabled quite a lot of debugging in order to be able to fix issues that we encounter. When we develop and test then we must reduce speed in order to have better debugging . Cheers Xerxes Ok. But i'm think this not true. i'm try disable vc...
by xranby
Tue Sep 15, 2015 8:12 am
Forum: Java
Topic: Running Java not through a web browser?
Replies: 10
Views: 2049

Re: Running Java not through a web browser?

I was just given the code and asked to get it running on the raspberry pi If the code is public domain or free software then you can publish it. If you are unsure then ask the author to license the code under a public domain or a free software license. If you cant get a public domain or a free soft...
by xranby
Mon Sep 14, 2015 7:18 am
Forum: Java
Topic: Running Java not through a web browser?
Replies: 10
Views: 2049

Re: Running Java not through a web browser?

Java contains the tool jjs that allows you to run javascript using the java virtual machine. example if you have a test.js file that is using remote javascript librarys and some logic .. like this: load('http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js'); var odds = _.filt...
by xranby
Sun Sep 13, 2015 6:23 pm
Forum: Java
Topic: Running Java not through a web browser?
Replies: 10
Views: 2049

Re: Running Java not through a web browser?

I have an HTML5 program that I want to run on my Pi 2. I have the program hosted on the Pi and can pull it up using any web browser but it is a bit too slow this way. It's my understanding that this HTML5 program is essentially java. If your HTML5 page is served by a "java server" then you are righ...
by xranby
Sun Sep 13, 2015 2:47 pm
Forum: Java
Topic: No result with Oracle JAVA8
Replies: 2
Views: 822

Re: No result with Oracle JAVA8

It sound that you need a java plugin for your browser to view the camera image. The Oracle Java do not include a java browser plugin for ARM systems such as the pi. However the IcedTea community have made a browser plugin that is available for use on ARM that you can install by running: sudo apt-get...
by xranby
Tue Sep 08, 2015 12:13 pm
Forum: Java
Topic: Problem Jquery
Replies: 5
Views: 962

Re: Problem Jquery

Try change the href to the style.css and src to the js files and remove the initial / that would make the URL's relative and the browser will look for the files next to the index.html file. like this: <link rel="stylesheet" href="style.css" type="text/css"> <script src='http://code.jquery.com/jquery...
by xranby
Tue Sep 08, 2015 6:12 am
Forum: Java
Topic: Processing 3 is running for the first time on a Raspberry Pi
Replies: 35
Views: 19071

Re: Processing 3 is running for the first time on a Raspberr

Any chance of getting this all to work on Jessie? What I'm really looking to do is use this with opencpn like sparticus I think you should start a new thread about OpenCPN and we can check how to best make it work on the Pi. It is off topic for the Java forum and this Processing 3 thread. By lookin...
by xranby
Tue Sep 08, 2015 5:52 am
Forum: Java
Topic: Processing 3 is running for the first time on a Raspberry Pi
Replies: 35
Views: 19071

Re: Processing 3 is running for the first time on a Raspberr

On the last post you mentioned a noobs rasbean install, runstartx. Can you run the raspi-config, apt-updae, apt upgrade,... then run the processes 3 setup? Ater running processes 3 can you apt-get update, and upgrade without issues with overwriting files and settings,... Yes, if you use a "default"...

Go to advanced search