Classpath Nur ne kleine Frage zur MANIFEST.MF

RalleYTN

Bekanntes Mitglied
Hey leute!
Ich wollte nur mal schnell fragen ob es möglich ist ind das class-path argument eines Manifests auch eine URL zu einem Java Archive zu stecken. Ich wollte die Bibleothecken nämlich auf meiner Homepage hochladen, damit das Programm funktioniert aber weniger Zeit zum Downloaden benötigt. Das Manifest sollte dann quasi so aussehen:
Code:
Manifest-Version: 1.0
Class-Path: . http://meine-website.com/files/bibleotheck.jar
Main-Class: code.Main
 
Hier steht eine Antwort auf deine Frage: TUTORIAL

Note: The Class-Path header points to classes or JAR files on the local network, not JAR files within the JAR file or classes accessible over Internet protocols. To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path.
 
Schade 🙁
Andere Frage kann ich irgendwo innerhalb des Codes die Java Archive von meinr Website laden? Wenn ja, dann wäre ein kleines Codebeispiel nett.
 

Zurück
Oben