JRE abspecken

Status
Nicht offen für weitere Antworten.

Maks

Aktives Mitglied
Der Auslöser für meine Frage:

deathbyaclown hat gesagt.:
um java auszuführen braucht der Zielrechner eine lauffähige JRE Version.

Die ganzen .exe Programme sind eigentlich nur Wrapper um die jar datei, d.h. ohne JRE aufm Rechner läuft deine exe auch nicht.

Ausnahme: Du gibst deiner exe eine JRE Version als Bundle mit - dann wird diese verwendet. Das führt aber dazu, dass dein Programm mal so eben auf über 30MB anwächst...

DAS hätte mich auch mal interessiert:
nehmen wir an ich habe ein Jar-file und möchte das File zusammen mit der JRE auf einem anderen Rechner laufen lassen, auf dem die JRE NICHT installiert werden soll. (Hinterher kann man dann ja noch versuchen eine Exe draus zu machen.
Welche Dateien muß ich dann eigentlich von einem Rechner auf dem sie schon installiert ist wegkopieren, damit sie auf einem zweiten Rechner läuft? Egal ob jetzt plötzlich 30MB mehr dazu benötigt werden, als in einem Jar file zu finden sind.
Jetzt sag aber nicht: " es kommt drauf an". Ich weiß, bei der minimalen Runtime kommt es darauf an, welche Pakete in dem Jar File vorkommen und welche Methoden eingebunden werden sollen.

Fangen wir klein an:
welche Folder müssen denn außer dem "bin" Ordner noch mit kopiert werden, damit "normale" java Programme laufen?

Und nehmen wir an, ich weiß das jetzt:
wie finde ich dann die Folder heraus in denen die passenden Methoden für mein spezielles Programm gelagtert sind, wenn ich z.B. import java.io.* brauche oder was auch immer?
Denn dann wären es keine 30MB für die Runtime und man könnte eine individuelle Exe zusammenbauen.

Wo finde ich solche Infos?
 

Grizzly

Top Contributor
Keine Ahnung wo Du solche Infos findest. Aber ich weiss nicht, ob das, was Du da vor hast, überhaupt rechtlich geht ???:L . Da würde ich mir an Deiner Stelle mal die Sun Java Lizenzbestimmungen durchlesen :### .
 

Maks

Aktives Mitglied
Vieles ist scheinbar wirklich verboten, aber wenn ich komplette "bundles" kopiere, eine neue Lizenz beantrage
oder eine neue API veröffentliche, dann scheint es wieder erlaubt zu sein.

Eigentlich möchte ich ja hauptsächlich nur wissen was ich alle mindestens kopieren muß, damit ein programm auf einem zweiten Rechner ohne "Installation" des jsdk funktioniert.


D. You may copy and use the header files and class
libraries ("Redistributables") solely to create and
distribute programs to interface with Software APIs
("Programs") only as explicitly provided in Software
documentation provded that you (i) distribute the
Redistributables complete and unmodified and only bundled
as part of your Programs, (ii) do not distribute additional
software intended to replace any component(s) of the
Redistributables, (iii) do not remove or alter any
proprietary legends or notices contained in the
Redistributables, (iv) only distribute the
Redistributables subject to a license agreement that
protects Sun's interests consistent with the terms
contained in this Agreement, and (v) agree to defend and
indemnify Sun and its licensors from and against any
damages, costs, liabilities, settlement amounts and/or
expenses (including attorneys' fees) incurred in connection
with any claim, lawsuit or action by any third party that
arises or results from the use or distribution of any and
all

E. You may not modify the Java Platform Interface ("JPI"
identified as classes contained within the "java" Package
or subpackages of the "java" package), by creating
additional classes within the JPI or otherwise causing the
addition to or modification of the classes in the JPI. In
the event that you create an additional class and
associated API(s) which (i) extends the functionality of
the Java platform, and (ii) is exposed to third party
software developers for the purpose of developing
additional software which invokes such additional API, you
must promptly publish broadly an accurate specification for
such API for free use by all developers. You may not
create, or authorize your licensees to create additional
classes, interfaces, or sub- packages that are in any way
identified as "java", "javax", "sun" or similar convention
as specified by Sun in any naming convention designation.
 
R

Roar

Gast
hmm also ich hab einfach den ganzen jre ordner mitgebdundelt. da is alles drin inklusive den lizenzbestimmungen. das sollte dann doch wohl so gehen ???:L
 
Status
Nicht offen für weitere Antworten.

Neue Themen


Oben