Projects / Sudokuki / Comments

Comments for Sudokuki

09 Jul 2011 21:01 os2pat

zypper se -s javac
Retrieving repository 'GNOME Applications (openSUSE_11.4+GNOME_STABLE_3.0)' metadata [done]
Building repository 'GNOME Applications (openSUSE_11.4+GNOME_STABLE_3.0)' cache [done]
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch | Repository
--+-----------------+---------+-----------+--------+---------------------
| javacc | package | 4.0-116.1 | noarch | openSUSE-11.4-Oss
| javacc | package | 4.0-116.1 | noarch | openSUSE-11.4-11.4-0
| javacc-demo | package | 4.0-116.1 | noarch | openSUSE-11.4-Oss
| javacc-manual | package | 4.0-116.1 | noarch | openSUSE-11.4-Oss
| javacc3 | package | 3.2-9.1 | noarch | openSUSE-11.4-Oss
| javacc3-demo | package | 3.2-9.1 | noarch | openSUSE-11.4-Oss
| javacc3-manual | package | 3.2-9.1 | noarch | openSUSE-11.4-Oss
| javacc3-repolib | package | 3.2-9.1 | noarch | openSUSE-11.4-Oss

Description :
Java Compiler Compiler (JavaCC) is the most popular parser generator
for use with Java applications. A parser generator is a tool that reads
a grammar specification and converts it to a Java program that can
recognize matches to the grammar. In addition to the parser generator
itself, JavaCC provides other standard capabilities related to parser
generation such as tree building (via a tool called JJTree included
with JavaCC), actions, debugging, etc.
Distribution: openSUSE 11.4


after installing javacc

rpm -ql javacc |grep bin
/usr/bin/javacc
/usr/bin/jjdoc
/usr/bin/jjtree

:> javacc
Java Compiler Compiler Version 4.0 (Parser Generator)


sh ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
You have no CLASSPATH, I hope it is good
checking for gcj... no
checking for guavac... no
checking for jikes... no
checking for javac... no
configure: error: no acceptable Java compiler found in $PATH


##############
installed jikes-1.22-146.1.x86_64

sh ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
You have no CLASSPATH, I hope it is good
checking for gcj... no
checking for guavac... no
checking for jikes... jikes
checking if jikes works... configure: error: The Java compiler jikes failed (see config.log, check the CLASSPATH?)


what should $CLASSPATH be?

09 Jul 2011 20:23 svedrenne

What does
$ javac -version
give on your machine?
I guess it gives "bash: javac: command not found" or an equivalent error message. Without javac being found during ./configure, you can't build. Try to fix it and let me know.

09 Jul 2011 19:56 os2pat

java-ca-certificates-1-9.1.noarch
java-1_6_0-sun-1.6.0.u26-0.2.1.x86_64
java-1_6_0-openjdk-1.6.0.0_b22.1.10.2-4.3.1.x86_64

09 Jul 2011 19:05 svedrenne

It seems that 'javacc' is not what you where looking for:
http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc1.2

Do you have a JVM installed on your machine, what version and where is it installed?

Personnaly, I have OpenJDK installed on my machine. Besides, I have a Sun/Oracle JRE, but I use OpenJDK for the build.

On my machine,
/usr/bin/javac
belongs to this OpenJDK distribution:

$ javac -version
javac 1.6.0_0-internal

09 Jul 2011 17:03 os2pat

note that installing javacc does not solve fault

09 Jul 2011 16:10 os2pat

12:07 Crash: ~/bin/sudokuki-1.0.A30/sudokuki-1.0.A30 > ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
You have no CLASSPATH, I hope it is good
checking for gcj... no
checking for guavac... no
checking for jikes... no
checking for javac... no
configure: error: no acceptable Java compiler found in $PATH

09 Jul 2011 15:20 svedrenne

Hi os2pat,

Package: sudokuki-1.0.A30-binary.zip
You got this error using this precompiled package, correct?

Expected solution:
You need to compile Sudokuki yourself on your 64 bits Intel CPU to be able to run it. The source code is included in the binary package you got. It's easy, please let us know if this works for you:

$ tar zxf sudokuki-1.0.A30.tar.gz
$ cd sudokuki-1.0.A30/
$ ./configure
$ make
(N.B: Stop there for the build as I haven't worked on the make install operation yet.)
And finally the application should launch:
$ ./sudokuki.sh

If it works for you, I'd be grateful if you could send your suexg_proxy.so resulting of the build on your Intel 64 architecture, as a patch:
https://sourceforge.net/tracker/?group_id=180199&atid=892217

Otherwise, feel free to file a bug report:
https://sourceforge.net/tracker/?atid=892215&group_id=180199&func=browse

Thanks!

Cheers,
Sylvain

09 Jul 2011 01:28 os2pat

./sudokuki.sh
Starting Sudokuki with a UI of type 'Swing'...
SuexgProxy.enclosing_method() java.library.path:./
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/paka/bin/sudokuki-1.0.A30/libsuexg_proxy.so: /home/paka/bin/sudokuki-1.0.A30/libsuexg_proxy.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at net.jankenpoi.sudokuki.suexg.SuexgProxy.<clinit>(SuexgProxy.java:30)
at net.jankenpoi.sudokuki.model.GridModel.newGrid(GridModel.java:75)
at net.jankenpoi.sudokuki.model.GridModel.<init>(GridModel.java:71)
at net.jankenpoi.sudokuki.ui.swing.SwingApp.start(SwingApp.java:31)
at net.jankenpoi.sudokuki.ui.Main.main(Main.java:79)


on x86_64
intel i7

02 Jun 2011 20:29 svedrenne

I can't but like this project since I'm the author :-)

08 Jun 2009 20:20 gnu_sylvain

Sudokuki version 1.0 is now available.
Its user interface allows changing the language to English, Esperanto, French, German, Greek, Japanese, and Spanish.

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.