Thread: [wiki2xhtml-users] Problem with compiling the current-version in subversion
Brought to you by:
granjow
From: Axel B. <tow...@gm...> - 2008-08-25 15:09:43
|
Hello, i have a problem to compile the version from the subversion below /trunk/wiki2xhtml-current These are the error messages: abirndt@UBUNTUNB:~/tmp/wiki2xhtml-current$ ./lang-update.sh && ./create-l10n.sh && ant .................... fertig. ................... fertig. ................... fertig. ................... fertig. ................... fertig. .................... fertig. ................... fertig. .................... fertig. .................... fertig. .................... fertig. ................... fertig. l10n/po/keys.pot:667: Warnung: Die folgende msgid enthält Zeichen, die nicht ASCII-kodiert sind. Dies kann bei den Übersetzungen Schwierigkeiten bereiten, wenn die Übersetzer eine andere Zeichen-Kodierung als Sie verwenden. Bitte auf eine msgid ausweichen, die nur aus ASCII-kodierten Zeichen besteht. Don’t check for updates this time l10n/po/keys.pot:667: ungültige Multibyte-Sequenz l10n/po/keys.pot:667: ungültige Multibyte-Sequenz l10n/po/keys.pot:667: ungültige Multibyte-Sequenz l10n/po/keys.pot:667: ungültige Multibyte-Sequenz l10n/po/keys.pot:667: ungültige Multibyte-Sequenz l10n/po/keys.pot:667: ungültige Multibyte-Sequenz Buildfile: build.xml [jar] Building jar: /home/abirndt/tmp/wiki2xhtml-current/wiki2xhtml.jar BUILD SUCCESSFUL Total time: 0 seconds abirndt@UBUNTUNB:~/tmp/wiki2xhtml-current$ The resulting wiki2xhtml.jar is to small then and i got the following error message when i try to start the program: -rw-rw-r-- 1 abirndt abirndt 261368 2008-08-25 17:03 wiki2xhtml.jar abirndt@UBUNTUNB:~/tmp/wiki2xhtml-current$ java -jar wiki2xhtml.jar Exception in thread "main" java.lang.NoClassDefFoundError: program/UserInterface Caused by: java.lang.ClassNotFoundException: program.UserInterface at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) (I do the compilation for this, because i would like to use the new "{{DirImage:blblal}} switch) thanks & regards Axel |
From: Axel B. <tow...@gm...> - 2008-08-27 06:45:25
Attachments:
build_27.08.2008.log
|
Hi Simon Simon Eugster schrieb: > Should be fixed in the current repo version. It was due to an non-ASCII > character in Help.java … I'll check whether I can make it all UTF-8 what > I'd prefer anyway. I'am sorry, but the build creates only a ~260kB file wiki2xhtml and i'am not able to start it with java -jar wiki2xhtml.jar. If i build it with ant, i got the following (error??) Message: Apache Ant version 1.7.0 compiled on August 29 2007 Buildfile: build.xml Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre Detected OS: Linux parsing buildfile /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/build.xml with URI = file:/home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/build.xml Project base dir set to: /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008 ==>> [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. <<== [jar] bin/l10n/Messages_de$1.class omitted as /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/wiki2xhtml.jar:bin/l10n/Messages_de$1.class is up to date. I will send the log with these email. Do i anything wrong? It is my failure? Thanks an regards Axel and sorry for the trouble ;) ========================================================================================= some further information abirndt@UBUNTUNB:~/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008$ java -version java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode) --------------------------------------------- abirndt@UBUNTUNB:~/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008$ ==>> java -jar wiki2xhtml.jar Exception in thread "main" java.lang.NoClassDefFoundError: program/UserInterface Caused by: java.lang.ClassNotFoundException: program.UserInterface at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) |
From: Simon E. <sim...@gm...> - 2008-08-27 18:09:17
|
Forgot to take the «Reply All» button. Hi Axel, I assumed something like that would happen. Eclipse builds the project automatically for me ;) You'll have to run: javac program/UserInterface.java to compile all class files. Then ant should work. Simon Axel Birndt wrote: > Hi Simon > > Simon Eugster schrieb: >> Should be fixed in the current repo version. It was due to an non-ASCII >> character in Help.java … I'll check whether I can make it all UTF-8 what >> I'd prefer anyway. > > I'am sorry, but the build creates only a ~260kB file wiki2xhtml and i'am > not able to start it with java -jar wiki2xhtml.jar. > > If i build it with ant, i got the following (error??) Message: > > Apache Ant version 1.7.0 compiled on August 29 2007 > Buildfile: build.xml > Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.06/jre > Detected OS: Linux > parsing buildfile > /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/build.xml > with URI = > file:/home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/build.xml > Project base dir set to: > /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008 > > ==>> > [antlib:org.apache.tools.ant] Could not load definitions from resource > org/apache/tools/ant/antlib.xml. It could not be found. > <<== > > [jar] bin/l10n/Messages_de$1.class omitted as > /home/abirndt/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008/wiki2xhtml.jar:bin/l10n/Messages_de$1.class > is up to date. > > I will send the log with these email. > > Do i anything wrong? It is my failure? > > Thanks an regards > > Axel and sorry for the trouble ;) > > ========================================================================================= > some further information > > abirndt@UBUNTUNB:~/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008$ > > java -version > > java version "1.6.0_06" > Java(TM) SE Runtime Environment (build 1.6.0_06-b02) > Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode) > > --------------------------------------------- > > abirndt@UBUNTUNB:~/tmp/wiki2xhtml/wiki2xhtml-current_27.08.2008$ > ==>> > java -jar wiki2xhtml.jar > Exception in thread "main" java.lang.NoClassDefFoundError: > program/UserInterface > Caused by: java.lang.ClassNotFoundException: program.UserInterface > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wiki2xhtml-users mailing list > Wik...@li... > https://lists.sourceforge.net/lists/listinfo/wiki2xhtml-users |
From: Axel B. <tow...@gm...> - 2008-08-28 05:53:51
|
Good Morning Simon, Simon Eugster schrieb: > Hi Axel, > > I assumed something like that would happen. Eclipse builds the project > automatically for me ;) You'll have to run: > javac program/UserInterface.java > to compile all class files. Then ant should work. The build was now successful. Thank you! But, thats strange, i think. Do you know why this way is working ? I'am sorry for my needless question, but i'am not a developer. Thanks for your help again Kind regards, Axel |
From: Simon E. <sim...@gm...> - 2008-08-28 06:43:40
|
Hi Axel, The java files first have to be compiled to class files which then can be executed. I could do that with ant too (by setting it up in the build.xml), but I just don't have the time for it and it also works the other way. At the moment, ant only copies all .java and .class (and some other files) into wiki2xhtml.java, and if the .class files don't exist, the jar won't run. The java files are included due to the license (GPL). Simon 2008/8/28 Axel Birndt <tow...@gm...>: > Good Morning Simon, > > Simon Eugster schrieb: >> Hi Axel, >> >> I assumed something like that would happen. Eclipse builds the project >> automatically for me ;) You'll have to run: >> javac program/UserInterface.java >> to compile all class files. Then ant should work. > > The build was now successful. Thank you! > > But, thats strange, i think. > Do you know why this way is working ? > > I'am sorry for my needless question, but i'am not a developer. > > Thanks for your help again > > Kind regards, Axel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wiki2xhtml-users mailing list > Wik...@li... > https://lists.sourceforge.net/lists/listinfo/wiki2xhtml-users > |
From: Axel B. <tow...@gm...> - 2008-09-02 09:54:20
|
Simon Eugster schrieb: > Hi Axel, > > I assumed something like that would happen. Eclipse builds the project > automatically for me ;) You'll have to run: > javac program/UserInterface.java > to compile all class files. Then ant should work. Hi Simon, i would like to give you a little feedback. After following your instructions the build is successful. Of course the {{DirImages:$Dir}} Switch is now working fine! Thanks an regards Axel |