File: faq.html

package info (click to toggle)
jas 2.7.200-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,732 kB
  • sloc: java: 164,370; python: 14,882; ruby: 14,509; xml: 583; makefile: 545; sh: 349
file content (128 lines) | stat: -rw-r--r-- 4,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Frequently asked questions</title>
    <link rel="stylesheet" type="text/css" href="html.css" />
  </head>

  <body>
    <h1>Frequently asked questions</h1>

<p>In this page we give answers to frequently asked questions about JAS.
</p>

<ol>
<li><a href="#no001">When using the bytecode from *-bin.jar, I get "Bad version number in .class"</a>
</li>
<li><a href="#no002">When trying to compile JAS with "ant compile", I get NoClassDefFoundError: org/apache/tools/ant/launch/Launcher</a>
</li>
<li><a href="#no003">When compiling a sample code I get '(' or '[' expected errors</a>
</li>
<li><a href="#no004">After compiling a sample code I get NoClassDefFoundError: org/apache/log4j/Logger</a>
</li>
<li><a href="#no005">I can not use Apache log4j in my project for some reason.</a>
</li>
<li><a href="#no006">I want to use JAS on Android.</a>
</li>
<li><a href="#no007">I do not want to compile and install JAS myself.</a>
</li>

<!--
<li><a href="#no002"></a>
</li>
-->
</ol>


<h4><a name="no001">When using the bytecode from *-bin.jar I get "Bad version number in .class"</a></h4>
<p>
This error occurs if your Java virtual maschine is older than the 
Java used in compiling the classes. Use the JAS source to compile 
the .class files with your version of the Java VM.
See e.g. <a href="download.html#eclipse" target="main">Eclipse</a>.
</p>

<h4><a name="no002">When trying to compile JAS with "ant compile", I get NoClassDefFoundError: org/apache/tools/ant/launch/Launcher</a></h4>
<p>
Ant uses a wrong Java version. 
Define the Java home directory in the environment. 
E.g. in Linux use <br />
<code>export JAVA_HOME=/usr/java/jdk1.6.0_02</code>
<br />
or the directory of your installed Java version.
</p>

<h4><a name="no004">When compiling a sample code I get '(' or '[' expected errors</a></h4>
<p>
JAS uses the new generic type parameters, which where introduced 
in Java version 5.
So you must use at least a Java Development Kit 5 or later.
See <a href="http://java.sun.com/" target="sun">Java.sun.com</a> 
for the latest Java releases.
</p>

<h4><a name="no004">After compiling a sample code I get NoClassDefFoundError: org/apache/log4j/Logger</a></h4>
<p>
You must include the Log4j classes in the classpath. e.g.
<br />
<code>java -cp log4j.jar:. mysample</code>
</p>

<h4><a name="no005">I can not use Apache log4j in my project for some reason.</a></h4>
<p>
Eventually consider <a href="http://www.slf4j.org/" target="new">SLF4J</a> for interfacing
to other logging systems.
<br />
The old adapter package for Java logging with <a nohref="mylog.jar">mylog.jar</a> is
discontinued.
<!--
The package contians classes which delegate all logging calls to <code>java.util.logging</code>
classes. Java logging must be configured to your needs - we do not provide sample
configurations.
You use it inplace of <code>log4j.jar</code>, for example
<br />
<code>java -cp mylog.jar:. mysample</code>
-->
</p>

<h4><a name="no006">I want to use JAS on Android.</a></h4>
<p>
JAS is no more compiling with Java 1.6, so JAS can at the moment not compiled and
dexed for Android.
<br />
<!-- For logging there is the adaptor package <a href="../droidlog.jar">droidlog.jar</a>
which delegates all JAS logging calls to native Android logging.-->
</p>

<h4><a name="no007">I do not want to compile JAS and install all dependencies myself.</a></h4>
<p>
For the core of JAS you can use the Debian package or the Android
application, see <a href="download.html">download page</a>.
<br />
There are optional parts of JAS which depend on external tools and
libraries. Since it requires some understanding of these tools they
must be installed by yourself.
</p>

<!--
<h4><a name="no002"></a></h4>

<p>
</p>
-->
    <hr />
    <address><a href="mailto:kredel at rz.uni-mannheim.de">Heinz Kredel</a></address>
<p>
<!-- Created: Sun Nov 11 15:56:30 CET 2007 -->
<!-- hhmts start -->
Last modified: Sun Nov 21 22:10:23 CET 2021
<!-- hhmts end -->
</p>
<!--
<p>$Id$
</p>
-->
  </body>
</html>