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.

Installierte Java VM abfragen

Empfohlene Antworten

Hi Leute,

ich hab hier ein Problem. Ich habe ein JavaApplet, das nur mit der Java Version 1.4.2 laufen darf.

Ich ab es als Object in meinem HTML eingebettet und die Classid auch so getrimmt, das es nur mit 1.4.2 läuft.


<OBJECT classid=clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA height=100% id=POBApplet width=100%>[/PHP]

Das funktioniert soweit auch. Wenn ich also die classid ändere startet das Applet nicht mehr, wenn nicht die eingestellte VM installiert ist.

Aber wenn auf dem Zielsystem die entsprechende VM nicht installiert ist will ich dem User irgendwie sagen, das diese VM falsch ist, und einen Link ausgeben wo er sie sich runterladen kann...

Hat jemand eine Idee wie ich das machen kann?

Mit


try {

	String version = System.getProperty("java.version");

}

catch (SecurityException e) {

	System.out.println("Could not read: "

	+ "SECURITY EXCEPTION!");

}

bekommst du deine Java-Version als String zurück gegeben...

Peet

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.