This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
linux audio software using gcj&swt!
- From: Norbert Frese <postfach at nfrese dot net>
- To: java at gcc dot gnu dot org
- Date: 22 Oct 2003 23:23:37 +0200
- Subject: linux audio software using gcj&swt!
- Organization:
hi list!
i have written a little free software application for scheduled sound
recording on linux using swt and gcj.
http://www.scheinwelt.at/~norbertf/radiocap_homepage/
(sources)
just a few questions:
1) how can i do a static compile of my application with gcj? (cause
libgcj is not so common).
when i compile with:
swt-static:
gcj -c --classpath=$(SWTLIBCLASSPATH) -fjni -o lib/swt_gcj.o \
lib/swt.jar
gcj -c --classpath=$(SWTLIBCLASSPATH) -fjni -o lib/swt-pi_gcj.o\
lib/swt-pi.jar
app-static:
find src | grep .java >filelist.gcj
gcj -g -c --classpath=$(SWTLIBCLASSPATH) @filelist.gcj -o
bin/radiorip.o
gcj -static -g --main=app.radiorip.MainWindow lib/swt_gcj.o
lib/swt-pi_gcj.o bin/radiorip.o \
-o bin/radiorip_bin
the application starts but throws the following exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass()
(/mnt/tiny/gcc_cvs/gcc/libjava/java/lang
/natClass.cc:849)
at _Jv_AllocObjectNoFinalizer
(/mnt/tiny/bld_gcc/i686-pc-linux-gnu/libjava/ja
va/lang/Class.h:265)
at app.radiorip.MainWindow.main(java.lang.String[])
(/home/norbert/work/java/
radiorip/src/app/radiorip/MainWindow.java:536)
Caused by: java.util.MissingResourceException: Bundle
gnu.java.locale.Calendar n
ot found
at java.util.ResourceBundle.getBundle(java.lang.String,
java.util.Locale, jav
a.lang.ClassLoader)
(/mnt/tiny/gcc_cvs/gcc/libjava/java/util/ResourceBundle.java
:388)
at java.util.ResourceBundle.getBundle(java.lang.String,
java.util.Locale) (/m
nt/tiny/gcc_cvs/gcc/libjava/java/util/ResourceBundle.java:246)
at java.util.Calendar.Calendar(java.util.TimeZone, java.util.Locale)
(/mnt/ti
ny/gcc_cvs/gcc/libjava/java/util/Calendar.java:390)
at java.util.GregorianCalendar.GregorianCalendar(java.util.TimeZone,
java.uti
l.Locale)
(/mnt/tiny/gcc_cvs/gcc/libjava/java/util/GregorianCalendar.java:123)
at java.util.GregorianCalendar.GregorianCalendar(java.util.Locale)
(/mnt/tiny
/gcc_cvs/gcc/libjava/java/util/GregorianCalendar.java:110)
at java.text.SimpleDateFormat.SimpleDateFormat(java.lang.String,
java.util.Lo
cale)
(/mnt/tiny/gcc_cvs/gcc/libjava/java/text/SimpleDateFormat.java:204)
at java.text.SimpleDateFormat.SimpleDateFormat(java.lang.String)
(/mnt/tiny/g
cc_cvs/gcc/libjava/java/text/SimpleDateFormat.java:193)
at app.radiorip.Recorder.__U3c_clinit__U3e_()
(/home/norbert/work/java/radior
ip/src/app/radiorip/Recorder.java:23)
at java.lang.Class.initializeClass()
(/mnt/tiny/gcc_cvs/gcc/libjava/java/lang
/natClass.cc:863)
...2 more
(gcc version 3.4 20030801 (experimental))
2) what do you think will be the future of swt on linux: will it ever
become a kind of system-library (in its own package like gtk+ or wxgtk -
separated from applications)? this would have the advantage that pure
GPLed swt-apps could be written and distributed legally.
3) are there plans for a "fake" jni bridge, which would allow to compile
jni libraries and the "client-app" into a single binary (for better
performance?)
thanks
norbert