Go to advanced search

by xranby
Mon Aug 27, 2012 1:56 pm
Forum: Other programming languages
Topic: Need Help - Java into machine code
Replies: 3
Views: 2852

Re: Need Help - Java into machine code

The correct way to use GCJ: #First install gcj and ecj sudo apt-get install gcj-jdk #example 1: compile a HelloWorld with a known main class gcj -o hello HelloWorld.java --main=HelloWorld #then run the binary ./hello #example 2: compile a standalone Java .jar or .class with a known main class wget h...
by xranby
Fri Aug 24, 2012 7:29 am
Forum: Other programming languages
Topic: UCB logo
Replies: 1
Views: 1241

Re: UCB logo

UCB logo 5.5 is packaged in Debian and Rasbian, to install it you need to run the following lines from the command-line on the Pi.

Code: Select all

# Download an up-to-date list of all available packages
sudo apt-get update
# Download and install ucblogo
sudo apt-get install ucblogo
by xranby
Thu Aug 23, 2012 9:53 pm
Forum: Java
Topic: Java OpenGL ES 2 bindings using JogAmp JOGL 2
Replies: 78
Views: 37125

Java OpenGL ES 2 bindings using JogAmp JOGL 2

Hi friends, I have worked with the JogAmp community to create a low overhead Java binding to OpenGL ES 2 on the Raspberry Pi. The first JogAmp JOGL auto-build with included Broadcom VC IV NEWT driver got published on the 20 Aug 2012. You can use this build to run some impressive Java demos on your P...
by xranby
Mon Jul 09, 2012 5:38 pm
Forum: Other programming languages
Topic: java: no gui?
Replies: 3
Views: 5543

Re: java: no gui?

Local access: Remember to run your java GUI applications from inside a xorg session. After you have logged in then type: startx This will open up the lxde desktop using the xorg framebuffer drivers. Your java gui applications should start fine from inside xorg. Remote ssh access: If you want to logi...
by xranby
Mon Jul 09, 2012 4:43 pm
Forum: Other programming languages
Topic: java: no gui?
Replies: 3
Views: 5543

Re: java: no gui?

Try install the openjdk-6-jre or openjdk-6-jdk package. There have been many people who have successfully launched their headfull swing/awt applications without any issue. example: https://twitter.com/michaelkolling/status/193039128085004289 - Greenfoot running on raspberry pi http://englishjavadrin...
by xranby
Mon Jul 02, 2012 12:32 pm
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

On Wheezy most combinations (6 or 7, zero, cacao, jamvm) loads libraries and starts reasonably quickly so thats better than Squeeze but after a little the XAWT thread consumes all the CPU even if I just have a single, rather empty window open. Catching stack traces every few seconds and saving them...
by xranby
Mon Jul 02, 2012 12:22 pm
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

P.S. I also tried the xrender=true suggestion. JVM crash & bug file. Not so good :-) Hmm.. looks like this bug trigger when trying to use the java2d xrender backend in combination with the framebuffer xorg driver on the pi. you may send this crash log, and possibly a reproducer, to the icedtea bugz...
by xranby
Mon Jul 02, 2012 12:13 pm
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

On Wheezy most combinations (6 or 7, zero, cacao, jamvm) loads libraries and starts reasonably quickly so thats better than Squeeze but after a little the XAWT thread consumes all the CPU even if I just have a single, rather empty window open. Catching stack traces every few seconds and saving them...
by xranby
Fri Jun 29, 2012 1:44 pm
Forum: Other programming languages
Topic: MATLAB
Replies: 16
Views: 46396

Re: MATLAB

Hi there A novice in Pi family. Is it possible to run MATLAB for Linux on the Pi or any other alternative that can offer the simulations to be programmed and run on the Pi? Scilab is an alternative that is know to run on even less capable hardware compared to the Pi, scilab is also found in the deb...
by xranby
Fri Jun 29, 2012 12:53 pm
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

My software (a model railway control system written in Java) needs RXTX or similar (to connect to the interfacing hardware) and hsqldb (or some other JDBC SQL database). Are you using JMRI ? I have started with Debian and OpenJDK-6 Zero is so slow its totally unusable (but it works, I think). I bel...
by xranby
Mon Jun 25, 2012 10:49 am
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

I'm just starting to learn anything about the ARM architecture, so this may well be a stupid question - Do any of the JVM options available or pending make use of the Jazelle direct-byte-code-execution instructions? Thanks. It is a good question, There exist two variants of Jazelle: Jazelle v1 also...
by xranby
Tue Jun 19, 2012 12:57 pm
Forum: Troubleshooting
Topic: Has anyone got Java to read from Serial Port?
Replies: 17
Views: 9336

Re: Has anyone got Java to read from Serial Port?

You can also use ser2net to simplify your serial port setup. apt-get install ser2net and then edit the /etc/ser2net.conf In one of my projects i have used this ser2net tool to decouple my Java applications from the lowlevel serial IO. I only have to create a localhost Java TCP/IP connection to the s...
by xranby
Tue Jun 19, 2012 12:48 pm
Forum: Other programming languages
Topic: Java
Replies: 21
Views: 14779

Re: Java

Is that a version with JIT compilation? "java ..." runs Zero, which is an interpreter in the official OpenJDK JVM written by Gary Benson (http://gbenson.net/). It's portable, but very slow and can't JIT. There exist two variants of Zero, the generic C++ interpreter variant built from OpenJDK direct...
by xranby
Tue Jun 19, 2012 11:34 am
Forum: Pidora / Fedora
Topic: Dismal Java (OpenJDK) performance on F17
Replies: 11
Views: 12727

Re: Dismal Java (OpenJDK) performance on F17

The main reason why you see a magnitude difference in the Debian vs Fedora results really boils down to that there exist two variants of Zero. In Fedora you have installed OpenJDK Zero VM (build 22.0-b10, interpreted mode ) This is using the C++ interpreter only. In Debian you have installed OpenJDK...

Go to advanced search