Thread: [Java-gnome-developer] Unable to Compile Example
Brought to you by:
afcowie
From: Dominik G. <dkg...@gm...> - 2011-01-14 12:18:54
|
Hi, maybe this is a stupid question but I seem to be unable to compile the ExampleDrawingInExposeEvent.java example. This is the output I get on my Ubuntu (10.10) system: dominik@EeePC:~/Desktop$ javac -cp /usr/share/java/gtk.jar:. ExampleDrawingInExposeEvent.java ExampleDrawingInExposeEvent.java:87: cannot find symbol symbol : constructor Context(org.gnome.gdk.EventExpose) location: class org.freedesktop.cairo.Context cr = new Context(event); ^ 1 error Did I forget to include something in my classpath? I was looking for the org.freedesktop package but could not find it... Any hints as to what I might be doing wrong? Thanks in advance, Dominik. |
From: Kenneth P. <ken...@gm...> - 2011-01-15 18:17:59
Attachments:
signature.asc
|
On Fri, 14 Jan 2011 13:18:46 +0100 Dominik Gabi <dkg...@gm...> wrote: > Hi, > [...] > Did I forget to include something in my classpath? I was looking for > the org.freedesktop package but could not find it... Any hints as to > what I might be doing wrong? > > Thanks in advance, > Dominik. What version of java-gnome do you have? |
From: Dominik G. <dkg...@gm...> - 2011-01-15 19:08:41
|
On Sat, 2011-01-15 at 13:17 -0500, Kenneth Prugh wrote: > On Fri, 14 Jan 2011 13:18:46 +0100 > Dominik Gabi <dkg...@gm...> wrote: > > > Hi, > > [...] > > Did I forget to include something in my classpath? I was looking for > > the org.freedesktop package but could not find it... Any hints as to > > what I might be doing wrong? > > > > Thanks in advance, > > Dominik. > > What version of java-gnome do you have? > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ java-gnome-developer mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer I've tried it with the one that was in the ubuntu repository (don't know which version that was) and afterwards compiled the java-gnome 4.0.18 from source. |
From: Kenneth P. <ken...@gm...> - 2011-01-15 19:25:35
Attachments:
signature.asc
|
On Sat, 15 Jan 2011 20:07:25 +0100 Dominik Gabi <dkg...@gm...> wrote: > > I've tried it with the one that was in the ubuntu repository (don't > know which version that was) and afterwards compiled the java-gnome > 4.0.18 from source. Hmm, well .18 should work, eg: tar xvf java-gnome-4.0.18.tar.bz2 cd java-gnome-4.0.18 ./configure && make -j3 cd doc/examples/cairo javac -cp ../../../tmp/gtk-4.0.jar ExampleDrawingInExposeEvent.java That should compile fine. |
From: Dominik G. <dkg...@gm...> - 2011-01-15 19:54:35
|
On Sat, 2011-01-15 at 14:25 -0500, Kenneth Prugh wrote: > On Sat, 15 Jan 2011 20:07:25 +0100 > Dominik Gabi <dkg...@gm...> wrote: > > > > I've tried it with the one that was in the ubuntu repository (don't > > know which version that was) and afterwards compiled the java-gnome > > 4.0.18 from source. > > Hmm, well .18 should work, eg: > > tar xvf java-gnome-4.0.18.tar.bz2 > cd java-gnome-4.0.18 > ./configure && make -j3 > cd doc/examples/cairo > javac -cp ../../../tmp/gtk-4.0.jar ExampleDrawingInExposeEvent.java > > That should compile fine. > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ java-gnome-developer mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer I'm sorry, I just found out I forgot to set the prefix for the configure script and was therefore working with the wrong jar file... Shame on me :( |
From: Andrew C. <an...@op...> - 2011-01-16 01:36:29
|
On Sat, 2011-01-15 at 20:53 +0100, Dominik Gabi wrote: > I'm sorry, I just found out I forgot to set the prefix for the configure > script and was therefore working with the wrong jar file... Shame on > me :( Nah, not at all. That's computing for you. I'm glad to hear you figured it out. > I've tried it with the one that was in the ubuntu repository (don't > know > which version that was) and afterwards compiled the java-gnome 4.0.18 > from source. > There's also a PPA, where Guillaume Mazoyer has been doing a great job of maintaining packages of the latest releases. I'd use that in preference to whatever Ubuntu hasn't packaged yet. https://launchpad.net/~java-gnome/+archive/ppa though now that you've learned to build from source that'll make hacking on with java-gnome itself much easier, should you ever need to. AfC Sydney |