| 1 |
<?xml version="1.0" encoding="iso-8859-1"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 3 |
"DTD/xhtml1-transitional.dtd"> |
| 4 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 |
<head> |
| 6 |
<title>Frequently asked questions</title> |
| 7 |
<link rel="stylesheet" type="text/css" href="html.css" /> |
| 8 |
</head> |
| 9 |
|
| 10 |
<body> |
| 11 |
<h1>Frequently asked questions</h1> |
| 12 |
|
| 13 |
<p>In this page we give answers to frequently asked questions about JAS. |
| 14 |
</p> |
| 15 |
|
| 16 |
<ol> |
| 17 |
<li><a href="#no001">When using the bytecode from *-bin.jar, I get "Bad version number in .class"</a> |
| 18 |
</li> |
| 19 |
<li><a href="#no002">When trying to compile JAS with "ant compile", I get NoClassDefFoundError: org/apache/tools/ant/launch/Launcher</a> |
| 20 |
</li> |
| 21 |
<li><a href="#no003">When compiling a sample code I get '(' or '[' expected errors</a> |
| 22 |
</li> |
| 23 |
<li><a href="#no004">After compiling a sample code I get NoClassDefFoundError: org/apache/log4j/Logger</a> |
| 24 |
</li> |
| 25 |
<li><a href="#no005">I can not use Apache log4j in my project for some reason.</a> |
| 26 |
</li> |
| 27 |
<li><a href="#no006">I want to use JAS on Android.</a> |
| 28 |
</li> |
| 29 |
<li><a href="#no007">I do not want to compile and install JAS myself.</a> |
| 30 |
</li> |
| 31 |
|
| 32 |
<!-- |
| 33 |
<li><a href="#no002"></a> |
| 34 |
</li> |
| 35 |
--> |
| 36 |
</ol> |
| 37 |
|
| 38 |
|
| 39 |
<h4><a name="no001">When using the bytecode from *-bin.jar I get "Bad version number in .class"</a></h4> |
| 40 |
<p> |
| 41 |
This error occurs if your Java virtual maschine is older than the |
| 42 |
Java used in compiling the classes. Use the JAS source to compile |
| 43 |
the .class files with your version of the Java VM. |
| 44 |
See e.g. <a href="download.html#eclipse" target="main">Eclipse</a>. |
| 45 |
</p> |
| 46 |
|
| 47 |
<h4><a name="no002">When trying to compile JAS with "ant compile", I get NoClassDefFoundError: org/apache/tools/ant/launch/Launcher</a></h4> |
| 48 |
<p> |
| 49 |
Ant uses a wrong Java version. |
| 50 |
Define the Java home directory in the environment. |
| 51 |
E.g. in Linux use <br /> |
| 52 |
<code>export JAVA_HOME=/usr/java/jdk1.6.0_02</code> |
| 53 |
<br /> |
| 54 |
or the directory of your installed Java version. |
| 55 |
</p> |
| 56 |
|
| 57 |
<h4><a name="no004">When compiling a sample code I get '(' or '[' expected errors</a></h4> |
| 58 |
<p> |
| 59 |
JAS uses the new generic type parameters, which where introduced |
| 60 |
in Java version 5. |
| 61 |
So you must use at least a Java Development Kit 5 or later. |
| 62 |
See <a href="http://java.sun.com/" target="sun">Java.sun.com</a> |
| 63 |
for the latest Java releases. |
| 64 |
</p> |
| 65 |
|
| 66 |
<h4><a name="no004">After compiling a sample code I get NoClassDefFoundError: org/apache/log4j/Logger</a></h4> |
| 67 |
<p> |
| 68 |
You must include the Log4j classes in the classpath. e.g. |
| 69 |
<br /> |
| 70 |
<code>java -cp log4j.jar:. mysample</code> |
| 71 |
</p> |
| 72 |
|
| 73 |
<h4><a name="no005">I can not use Apache log4j in my project for some reason.</a></h4> |
| 74 |
<p> |
| 75 |
Eventually consider <a href="http://www.slf4j.org/" target="new">SLF4J</a> for interfacing |
| 76 |
to other logging systems. |
| 77 |
<br /> |
| 78 |
The old adapter package for Java logging with <a nohref="mylog.jar">mylog.jar</a> is |
| 79 |
discontinued. |
| 80 |
<!-- |
| 81 |
The package contians classes which delegate all logging calls to <code>java.util.logging</code> |
| 82 |
classes. Java logging must be configured to your needs - we do not provide sample |
| 83 |
configurations. |
| 84 |
You use it inplace of <code>log4j.jar</code>, for example |
| 85 |
<br /> |
| 86 |
<code>java -cp mylog.jar:. mysample</code> |
| 87 |
--> |
| 88 |
</p> |
| 89 |
|
| 90 |
<h4><a name="no006">I want to use JAS on Android.</a></h4> |
| 91 |
<p> |
| 92 |
JAS is no more compiling with Java 1.6, so JAS can at the moment not compiled and |
| 93 |
dexed for Android. |
| 94 |
<br /> |
| 95 |
<!-- For logging there is the adaptor package <a href="../droidlog.jar">droidlog.jar</a> |
| 96 |
which delegates all JAS logging calls to native Android logging.--> |
| 97 |
</p> |
| 98 |
|
| 99 |
<h4><a name="no007">I do not want to compile JAS and install all dependencies myself.</a></h4> |
| 100 |
<p> |
| 101 |
For the core of JAS you can use the Debian package or the Android |
| 102 |
application, see <a href="download.html">download page</a>. |
| 103 |
<br /> |
| 104 |
There are optional parts of JAS which depend on external tools and |
| 105 |
libraries. Since it requires some understanding of these tools they |
| 106 |
must be installed by yourself. |
| 107 |
</p> |
| 108 |
|
| 109 |
<!-- |
| 110 |
<h4><a name="no002"></a></h4> |
| 111 |
|
| 112 |
<p> |
| 113 |
</p> |
| 114 |
--> |
| 115 |
<hr /> |
| 116 |
<address><a href="mailto:kredel at rz.uni-mannheim.de">Heinz Kredel</a></address> |
| 117 |
<p> |
| 118 |
<!-- Created: Sun Nov 11 15:56:30 CET 2007 --> |
| 119 |
<!-- hhmts start --> |
| 120 |
Last modified: Sun Nov 21 22:10:23 CET 2021 |
| 121 |
<!-- hhmts end --> |
| 122 |
</p> |
| 123 |
<!-- |
| 124 |
<p>$Id$ |
| 125 |
</p> |
| 126 |
--> |
| 127 |
</body> |
| 128 |
</html> |