Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compiler Fehler

Empfohlene Antworten

Veröffentlicht

Hallo

ich beschäftige mich momentan mit dem J2EE Tutorial (1.4)

Dort soll man in Kapitel 3(Web Applications) ein Beispiel nachstellen.

In a terminal window, go to <INSTALL>/j2eetutorial14/examples/web/bookstore/.

Run asant build to compile the bookstore files.

Run asant package-bookstore to create a library named bookstore.jar in <INSTALL>/j2eetutorial14/examples/bookstore/dist/.

Beim compilen tritt leider dieser Fehler auf:

Buildfile: build.xml

init:

prepare:

build:

[javac] Compiling 11 source files to D:\Download\Abschlussprojekt\j2ee-1_4-doc-tutorial\j2eetutorial14\examples\web\bookstore\build

BUILD FAILED

file:D:/Download/Abschlussprojekt/j2ee-1_4-doc-tutorial/j2eetutorial14/examples/web/bookstore/build.xml:54: D:\lib not found.

Welches lib Verzeichniss ist damit gemeint?

Auszug aus build.xml(Rot ist Zeile 54):

<!--

* Copyright © 2003 Sun Microsystems, Inc. All rights reserved. U.S.

* Government Rights - Commercial software. Government users are subject

* to the Sun Microsystems, Inc. standard license agreement and

* applicable provisions of the FAR and its supplements. Use is subject

* to license terms.

*

* This distribution may include materials developed by third parties.

* Sun, Sun Microsystems, the Sun logo, Java and J2EE are trademarks

* or registered trademarks of Sun Microsystems, Inc. in the U.S. and

* other countries.

*

* Copyright © 2002 Sun Microsystems, Inc. Tous droits reserves.

*

* Droits du gouvernement americain, utilisateurs gouvernementaux - logiciel

* commercial. Les utilisateurs gouvernementaux sont soumis au contrat de

* licence standard de Sun Microsystems, Inc., ainsi qu'aux dispositions

* en vigueur de la FAR (Federal Acquisition Regulations) et des

* supplements a celles-ci. Distribue par des licences qui en

* restreignent l'utilisation.

*

* Cette distribution peut comprendre des composants developpes par des

* tierces parties. Sun, Sun Microsystems, le logo Sun, Java et J2EE

* sont des marques de fabrique ou des marques deposees de Sun

* Microsystems, Inc. aux Etats-Unis et dans d'autres pays.

-->

<!DOCTYPE project [

<!ENTITY targets SYSTEM "../../common/targets.xml">

<!ENTITY webtargets SYSTEM "../common/targets.xml">

]>

<project name="bookstore" default="build" basedir=".">

<target name="init">

<tstamp/>

</target>

<property name="example" value="bookstore" />

<property name="jar-file" value="${example}.jar" />

<property file="../../common/build.properties"/>

<property file="../common/build.properties"/>

&targets;

&webtargets;

<target name="build" depends="prepare"

description="Compile bookstore files." >

<javac srcdir="src" destdir="${build}">

<include name="**/*.java" />

<classpath refid="classpath"/>

</javac>

</target>

<target name="package-bookstore" depends="build"

description="Packages the JAR file">

<echo message="Packaging the JAR...."/>

<mkdir dir="dist" />

<delete file="dist/${example}.jar" />

<jar jarfile="dist/${example}.jar" >

<fileset dir="${build}" />

</jar>

</target>

<property name="conpool.name" value="PointBasePool"/>

<property name="jdbc.resource.name" value="jdbc/BookDB"/>

</project>

Moin!

Also in der Zeile 54 wird ein Verzeichnis angegeben. Statt dem Verzeichnis steht dort ja ${build}, dies ist eine Variable, die irgandwo oben angelegt worden ist, nämlich mit dem inhalt D:\lib!

Wahrscheinlich musst du nur diese Pfadangabe anpassen, wobei ich dir jetzt nicht sagen kann wozu genau die Pfadangabe in der Zeile 54 ist.

Das müsstest du selber nochmal rausfinden!

Ich denke dort muss der Pfad angegeben sein, wo etwas estimmtes liegt (deine sourcen?)....

ich hoffe ich konnte dir trotzdem weiterhelfen ;-)

lg

Vanessa

Leider weiß ich nicht was sich in d:\lib befinden soll bzw welches "lib" Verzeichniss gemeint ist.

Leider weiß ich nicht was sich in d:\lib befinden soll
Dann solltest du dich darüber informieren.

bzw welches "lib" Verzeichniss gemeint ist.
Was war denn an der ersten Antwort, die du bekommen hast so unverständlich?

Dir wird hier niemand jeden einzelnen Schritt genau vorkauen - wir können die ein paar Hilfestellungen geben aber ein bisschen Arbeit musst du auch schon noch selber machen.

Christian

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.