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.

Applet - RuntimeException: File in java.class.path does not exist

Empfohlene Antworten

Veröffentlicht

Ich habe in einem Applet, dass das Scannotation-Framework nutzt den nachfolgenden Fehler:


Caused by: java.lang.RuntimeException: File in java.class.path does not exist: /opt/sun-jdk-1.6.0.14/jre/classes

	at org.scannotation.ClasspathUrlFinder.findClassPaths(ClasspathUrlFinder.java:129)

	at stun.message.attributes.Attribute.bootstrap(Attribute.java:57)

	at stun.message.attributes.Attribute.<clinit>(Attribute.java:26)

	... 7 more


// zeile 25-27
static {
bootstrap();
}
[/php]

[php]
// zeile 54 - ....
private static final void bootstrap() {
//ClasspathHelper.checkClasspath();
URL[] urls;
urls = ClasspathUrlFinder.findClassPaths(); // zeile 57
final AnnotationDB adb = new AnnotationDB();
adb.setScanClassAnnotations(true);
adb.setScanFieldAnnotations(false);
adb.setScanMethodAnnotations(false);
adb.setScanParameterAnnotations(false);

adb.addIgnoredPackages("java");
adb.addIgnoredPackages("javax");

try {
adb.scanArchives(urls);
// LOGIK
} catch (final ClassNotFoundException cnfe) {
logger.error("Klasse beim Nachladen der Attribute gefunden", cnfe);
} catch (final IOException e) {
logger.error("IOE beim Nachladen der Attribute", e);
} catch (final SecurityException e) {
logger.error("Zugriff verweigert", e);
} catch (final NoSuchFieldException e) {
logger.error("kein TYPE-Field vorhanden", e);
} catch (final IllegalArgumentException e) {
logger.error("ungültiges argument", e);
} catch (final IllegalAccessException e) {
logger.error("unzulässiger Zugriff", e);
}
}

Der Pfad, der nicht gefunden wird steht als einziger im Property java.class.path drin. Hat jemand von euch 'ne Idee?

Als Codebase wird das Verzeichnis angegeben, in dem das liegt, dass die Applet-Klasse enthält. Es werden außerdem noch weitere jars über das archive-Attribut angegeben.

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.