Java just won't play!

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Java just won't play!

Postby Gmac » Fri Jul 11, 2014 4:28 am

Hey guys, I have developed a basic application in netbeans 8 using java 1.7 (On my mac). The built .jar file runs perfectly on my mac (only the .jar file is needed to execute it).

The system utilised is ARMv6 (Raspberry pi) and I am attempting to run the developed .jar file. I can run basic java GUI applications I wrote such as simply drawing rectangles etc but every time I run this new .jar file I get a huge error output:

http://pastebin.com/eSunCFmd

The system is running using openjdk-7 for archlinux, but I have also tried using the Java 7 ARM release (soft float) from the java website, as illustrated in a comment in my /etc/profile.d/jre.sh file below:

$this->bbcode_second_pass_code('', 'export JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/java-7-openjdk/jre}
# Other Java install DIR: /home/badger/builds/jdk1.7.0_60/jre
# Enable this for non-reparenting window managers:
#export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swin$')

The application code for the java .jar file is:

http://pastebin.com/B2rm2GUb

I would really appreciate it if someone could help me out!
Gmac
 
Posts: 1
Joined: Fri Jul 11, 2014 4:26 am

Re: Java just won't play!

Postby moonman » Fri Jul 11, 2014 7:35 am

Try
export _JAVA_OPTIONS='-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'

https://bugs.debian.org/cgi-bin/bugrepo ... bug=711180
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 31 guests