Hallo allerseits
Ich bemühe mich gerade einen kleinen Einstieg in Java zu finden. Genau genommen möchte ich ein Addon für den Firefox programmieren und habe Schwierigkeiten es zu einer xpi-Datei zu kompilieren.
SDK spuckt mir diese Meldung aus:
13: var file = Components.classes["@mozilla.org/file/directory_service;1"].
14: getService(Components.interfaces.nsIProperties).
15: get("ProfD", Components.interfaces.nsIFile);
18: file.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0777);
47: var file1 = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
49: var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
use 'Components' to access chrome authority. To do so, you need to add a
line somewhat like the following:
const {Cc,Ci} = require("chrome");
Then you can use any shortcuts to its properties that you import from the
'chrome' module ('Cc', 'Ci', 'Cm', 'Cr', and 'Cu' for the 'classes',
'interfaces', 'manager', 'results', and 'utils' properties, respectively. And
`components` for `Components` object itself).
Kann mir jemand einen kleinen Tipp geben was ich tun muss?
Ich bemühe mich gerade einen kleinen Einstieg in Java zu finden. Genau genommen möchte ich ein Addon für den Firefox programmieren und habe Schwierigkeiten es zu einer xpi-Datei zu kompilieren.
SDK spuckt mir diese Meldung aus:
13: var file = Components.classes["@mozilla.org/file/directory_service;1"].
14: getService(Components.interfaces.nsIProperties).
15: get("ProfD", Components.interfaces.nsIFile);
18: file.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0777);
47: var file1 = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
49: var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
use 'Components' to access chrome authority. To do so, you need to add a
line somewhat like the following:
const {Cc,Ci} = require("chrome");
Then you can use any shortcuts to its properties that you import from the
'chrome' module ('Cc', 'Ci', 'Cm', 'Cr', and 'Cu' for the 'classes',
'interfaces', 'manager', 'results', and 'utils' properties, respectively. And
`components` for `Components` object itself).
Kann mir jemand einen kleinen Tipp geben was ich tun muss?