JAR-Files unter Linux

  • Themenstarter Themenstarter jagdfalke
  • Beginndatum Beginndatum
J

jagdfalke

Guest
Hi,
ich habe festgestellt, dass ein Jar-File, das ich mit einem Klick starte, den Classpath, der im Manifest-File steht nicht geladen wird.
Wenn ich es aber mit java -jar foo.jar starte klappt alles.

Kann sich jemand vorstellen was da los ist?

mfg
jagdfalke
 
Wahrscheinlich musst du einfach die Dateitypenzuordnung ändern. Wie man das macht, hängt vom Filemanager ab, daher kann ich dir das nicht sagen.
 
Warum wohl, wenn man sich diese Ausgabe ansieht, dürfte wohl alles klar sein.

Ansonsten -> Lesen <-> Verstehen | üben !!!

Code:
icefox@badcat:~# java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions

kde -> dateitypen, oder was auch immer.
 
Zurück
Oben