Thread: [Java-gnome-developer] compiling java-gnome-4.0.9 stable
Brought to you by:
afcowie
From: Adam A. <eid...@gm...> - 2009-01-08 15:24:35
|
hello, i am about to do work for the school, which involves creating a Java program (surprisingly) on any topic. i have chosen to do a media player, or more precisely music player. the aim is to write a lightweight, powerful player for the GTK/Gnome environment (as i plan to use it on my machine afterwards :)) now, the problem. the issue occurs at the 'make' step of the building process. i always end up with a message similar to: " Exception in thread "main" java.io.IOException: can't find class file java/lang/Object.class in java.net.URLClassLoader{urls=[file:/home/eidam/Software/Dossier/java-gnome/java-gnome-4.0.9/tmp/bindings/,file:/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/rt.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/eidam/Software/Dossier/JMF-2.1.1e/lib/jmf.jar,file:./,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}} " i see that it searches in some weird directories, i am especially worried about the "/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/rt.jar" thing, as i have java sdk 1.6 up and running. i would appreciate any help in getting rid of this problem. -AA |
From: Jacek <ja...@gm...> - 2009-01-08 15:35:49
|
What distro are you on? I was able to compile it on Ubuntu 8.10 without any issues (outside of some missing dependencies reported during the configure, which I had to add from the repos), with OpenJDK installed from the regular repositories. -- View this message in context: http://www.nabble.com/compiling-java-gnome-4.0.9-stable-tp21353956p21354177.html Sent from the Gnome - Java Binding - General mailing list archive at Nabble.com. |
From: Adam A. <eid...@gm...> - 2009-01-08 18:21:22
|
hi, i am also using Ubuntu 8.10, but I use Sun Java. and btw, which Java implementation offers better performance? OpenJDK or the Sun Java? i heard that so far the Sun Java is the fastest, that's why i use it. -AA Jacek wrote: > What distro are you on? > > I was able to compile it on Ubuntu 8.10 without any issues (outside of some > missing dependencies reported during the configure, which I had to add from > the repos), with OpenJDK installed from the regular repositories. > |
From: Adam A. <eid...@gm...> - 2009-01-08 19:18:42
|
ah. so you suggest a complete move to openjdk? Jacek wrote: > It looks like you have the old gcj java runtime, which OpenJDK made pretty > much obsolete...I am guessing if you remove it via Synaptic, it should > properly use OpenJDK? > > I don't think there is much of a difference between OpenJDK vs SUn Java in > terms of performance, with the exception of applets (the new 6u10 changes > are not rolled into the OpenJDK yet). For Java 7, the plan is that the two > will be identical. |
From: Jacek <ja...@gm...> - 2009-01-09 00:04:04
|
Well, that's what I am using and I managed to compile it without any major issues... -- View this message in context: http://www.nabble.com/compiling-java-gnome-4.0.9-stable-tp21353956p21363797.html Sent from the Gnome - Java Binding - General mailing list archive at Nabble.com. |
From: Adam A. <eid...@gm...> - 2009-01-10 11:10:23
|
hi, so i managed to get it working :) only thing needed to eb done was to remove the dir, untar again and ./configure && make :) now my only problem is finding the media framework. if you could help me with this, i would very appreciate it. thanks for support. -AA |
From: Jacek <ja...@gm...> - 2009-01-08 18:59:22
|
It looks like you have the old gcj java runtime, which OpenJDK made pretty much obsolete...I am guessing if you remove it via Synaptic, it should properly use OpenJDK? I don't think there is much of a difference between OpenJDK vs SUn Java in terms of performance, with the exception of applets (the new 6u10 changes are not rolled into the OpenJDK yet). For Java 7, the plan is that the two will be identical. -- View this message in context: http://www.nabble.com/compiling-java-gnome-4.0.9-stable-tp21353956p21358542.html Sent from the Gnome - Java Binding - General mailing list archive at Nabble.com. |
From: Andrew C. <an...@op...> - 2009-01-10 02:42:42
|
On Thu, 2009-01-08 at 20:18 +0100, Adam Ambrus wrote: > so you suggest a complete move to openjdk? If you have access to it, and no policy reasons not to use it, then definitely. And in so far as Sun's Java has usually been backwards compatible, there's little reason not to. icedtea 1.6, 1.7 or openjdk 1.7 ; doesn't matter. Regardless, java-gnome doesn't use *anything* in areas of Sun's standard library that are proprietary and patent encumbered (which makes sense; the stuff in the binary plugs was mostly the graphics stuff from Kodak, and we sorta use someone else's widget toolkit :)) So you can just worry about finding a VM that works period and you'll be set. As for "which is better", that will of course entirely depend on what your application is doing and how you tune it, but I don't think you'll find java-gnome the bottleneck. [we have areas we're working to improve, naturally, but nothing urgent at this point - indeed, every risk of premature optimization. The initial design decisions and architecture are holding up very well] AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Adam A. <eid...@gm...> - 2009-01-10 10:38:31
|
hello again, so i finally removed the 'gcj' package as suggested, and installed openjdk-6-jdk (with dependencies) and purged all sun-java-6 packages. but now i get a different error; here is the output of "./configure && make": ---- equivalence, v0.2 ...configuring Java projects to build and run on Linux & Unix Identify operating system: Debian Check for required jar files: - JUnit test framework found Check for required system libraries: - GTK+ found - Pango found - ATK found - GDK found - LibGlade found - GNOME printing (Unix backend) found Check Java compilers: - System javac works - System javah found #here is reflected the gcj removal - GNU fastjar works - System javadoc found Check Java virtual machines: - System java VM works - GNU gij works Check native compiler: - GNU gcc works Select compiler: javac Select runtime: java Output: - configuration data ok - native library location ok GCC src/bindings/org/freedesktop/bindings/Plumbing.c In file included from src/bindings/org/freedesktop/bindings/Plumbing.c:15: tmp/include/org_freedesktop_bindings_Plumbing.h:5:1: error: unterminated #ifndef make: *** [build-java] Error 1 ---- any more ideas? thank you so far for support. -AA PS: getting back to my original project, can you suggest a media framework for Java to play audio/mp3 files? so far i've found JMF, but i have trouble making it work as well ^^ |
From: Andrew C. <an...@op...> - 2009-01-10 20:31:27
|
On Sat, 2009-01-10 at 12:10 +0100, Adam Ambrus wrote: > so i managed to get it working :) only thing needed to be done was to > remove the dir, untar again and ./configure && make :) Ok, that's weird. In an ideal world full of sunshine, roses, and butterflies, I'd like to hope that that wouldn't be necessary. The state is held in .config, so successfully completing ./configure should have cleared your problem. {shrug} AfC Sydney |
From: Adam A. <eid...@gm...> - 2009-01-10 21:14:11
|
well, assuming the package messing (previous email) solved the problem, i guess i just removed the whole directory just to be sure that it is going to be a clean compilation. it was because after number of recompilations and reconfigurations, i got first the error with somedir/somefilename_GtkAboutDialog.h (java exception was thrown), and then some Plumbing.c compilation error. that were the reasons forcing me to have a rather clean stuff to mess with - luckily java-gnome is not a mammoth in occupied space ;) Andrew Cowie wrote: > On Sat, 2009-01-10 at 12:10 +0100, Adam Ambrus wrote: >> so i managed to get it working :) only thing needed to be done was to >> remove the dir, untar again and ./configure && make :) > > Ok, that's weird. > > In an ideal world full of sunshine, roses, and butterflies, I'd like to > hope that that wouldn't be necessary. The state is held in .config, so > successfully completing ./configure should have cleared your problem. > > {shrug} > > AfC > Sydney > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > > > ------------------------------------------------------------------------ > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |