Changes between Version 12 and Version 13 of It:Download


Ignore:
Timestamp:
2023-04-25T08:43:34+02:00 (3 years ago)
Author:
mendem@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • It:Download

    v12 v13  
    181181
    182182==== Testare Java ====#JavaTest
    183 [=#Troubleshootingjarfile] Checks if Java is installed and why JOSM does not start (example mainly for MS Windows).
    184 1. Download [/josm-tested.jar josm-tested.jar] to your desktop.
    185 1. Open a Command Prompt aka Terminal
    186 1. Type `cd %homepath%`⏎ and type `cd Desktop`⏎
    187 1. Type `java -version `⏎ Three lines with the version data should appear. If you see something else then Java is not properly installed.
    188 1. Type `java -jar josm-tested.jar`⏎. Now JOSM should run, started from the [wikitr:/Help/CommandLineOptions Command Line].
    189 1. Quit JOSM.
    190 1. Type `josm-tested.jar`⏎. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files.
     183[=#Troubleshootingjarfile] Verificare se Java è installeto e perchè JOSM non si avvia (esempio principalmente per MS Windows).
     1841. Scarica [/josm-tested.jar josm-tested.jar] sul tuo desktop.
     1851. Apri un Promp dei Comandi aka Terminale
     1861. Scrivi `cd %homepath%`⏎ e scrivi `cd Desktop`⏎
     1871. Scrivi `java -version `⏎ Dovrebbero comparire tre linee con i dati della versione. Se appare qualcosa di diverso allora Java non è installato correttamente.
     1881. Scrivi `java -jar josm-tested.jar`⏎. Ora si dovrebbe avviare JOSM, lanciato dall [wikitr:/Help/CommandLineOptions Linea di Comando].
     1891. Chiudi JOSM.
     1901. Scrivi `josm-tested.jar`⏎. Se JOSM si avvia di nuovo, l'Explorer di Windows è pronto per il doppio click sui file jar.
    191191
    192192
    193193=== Web Start ===#Webstart
    194194[=#Troubleshootingjhlplink]
    195 You need to install [https://openwebstart.com/ OpenWebStart] first. It will download and run Java by itself. The transition from Oracle WebStart to OpenWebStart is still in progress, so in case of issue please create a [/newticket new ticket] or post a comment to #17858.
    196 
    197 You may need to update the default application for opening JNLP files if you previously used Oracle WebStart. See [https://openwebstart.com/docs/OWSGuide.html#_jnlp_file_association jnlp file association] for instructions on setting OpenWebStart as the default program for jnlp files.
     195È necessario prima installare [https://openwebstart.com/ OpenWebStart]. Esso scaricherà ed avvierà Java da solo. La transizione da Oracle WebStart a OpenWebStart è ancora in corso, perciò, in caso di problemi, crea un [/newticket nuovo ticket] o posta un commento su #17858.
     196
     197Potrebbe essere necessario aggiornare l'applicazione predefinita per aprire i file JNLP se in precedenza era usato Oracle WebStart. Vedi [https://openwebstart.com/docs/OWSGuide.html#_jnlp_file_association associazione dei file jnlp] per le istruzioni sulle impostazioni di OpenWebStart come programma predefinito per i file jnlp.
    198198
    199199==== Testare Web Start ====#Webstarttest
    200 1. Download [/download/josm.jnlp josm.jnlp] to your desktop.
    201 1. Open a Terminal and move to the Desktop as above
    202 1. Type `javaws josm.jnlp`⏎. This should initially download JOSM, show a security dialog and then launch JOSM.
    203 1. If that fails, then type `javaws -verbose josm.jnlp`⏎. This should first show a dialog with information about the JVM and then launch JOSM.
     2001. Scarica [/download/josm.jnlp josm.jnlp] sul tuo desktop.
     2011. Apri un Terminale e spostati sul Desktop come scritto sopra
     2021. Scrivi `javaws josm.jnlp`⏎. Ciò prima scaricherà JOSM, mostrerà un avviso di sicurezza e quindi avvierà JOSM.
     2031. Se non funziona, allora scrivi `javaws -verbose josm.jnlp`⏎. Ciò prima mostrerà una finestra di dialogo con informazioni sulla JVM e quindi avvierà JOSM.
    204204
    205205
    206206=== Macchina Virtuale ===#Troubleshootingjvm
    207 ==== Out of memory ====
    208 Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown.
    209 Wrongly chosen values can decrease JOSM performance.
    210 
    211 For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure a memory size that supports more plugins and features. On the other hand can slow machines be stabilized by restricting Javas memory use.
    212 If needed, use the [wikitr:/Help/CommandLineOptions command line] to set the [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI Java Option] -Xmx…m, for example `-Xmx512m` or `-Xmx1536m`. In Debian/Ubuntu you can edit the file `/etc/default/josm` respectively `/etc/default/josm-latest`. \\
    213 Formerly older java programs accepted `-Xmx=512m` or even `-Xmx 512m`. Now those malformed arguments throw error messages.
    214 
    215 ==== VM selection ====#VMselectiononWindowsx64
    216 On current versions of MS Windows by default Java is installed mainly in the `C:\Program Files\Java\` directory. Additional parts are placed in `C:\Program Files\Oracle\Java\`. There is a `.\javapath\` directory as target for the PATH environment variable. It is the home for the three virtual files `java.exe`, `javaw.exe` and `javaws.exe`. This files are symbolic links form the current Java installations.
    217 
    218 On older versions of 64 bit Windows sometimes the 32 bit mode JRE was additionally installed.  Also some browsers brought their own JVM with limited capabilities. In those cases a Web Start from the browser would not use your Java installation but that from the browser.
    219 
    220 Check that there's no other javawebstart in `\Windows\SysWow64`. The Java control panel will not detect it and you can safely delete it. Perform cleanup and only keep the latest versions of each JRE (One or the 32-bit mode, another one for the 64-bit mode).
    221 
    222 For shortcuts created on the desktop for JNLP and running the Javawebstart launcher , make sure to pass VM parameters prefixed with -J and no intermediate space before the VM option. If you have installed both the 32-bit and 64-bit version, you should pass the option "`-d64`" if you want to select the preferred 64-bit VM. Note that some Oracle documentation pages indicate the option "-D64" with the incorrect capitalization!)
    223 
    224 Example of an edited command line for a shortcut on the windows desktop:
     207==== Fuori memoria ====
     208Al giorno d'oggi il controllo manuale della memoria Java è raramente necessario perché la RAM disponibile sui computer è aumentata.
     209I valori scelti in modo errato possono ridurre le prestazioni di JOSM.
     210
     211Per alcuni compiti, JOSM ha un grande appetito di memoria. Da un lato, potrebbe essere necessario configurare una dimensione di memoria che supporti più plug-in e funzionalità. Di contro, le macchine lente possono essere stabilizzate limitando l'uso della memoria di Java.
     212Se necessario, usa la [wikitr:/Help/CommandLineOptions linea di comando] per impostare le [https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI Opzioni Java] -Xmx…m, per esempio `-Xmx512m` o `-Xmx1536m`. In Debian/Ubuntu si può modificare il file `/etc/default/josm` o rispettivamente `/etc/default/josm-latest`. \\
     213Nei programmi java precedenti sono accettati `-Xmx=512m` o anche `-Xmx 512m`. Ora quegli argomenti malformati generano messaggi di errore.
     214
     215==== Selezione della VM ====#VMselectiononWindowsx64
     216Nella versione attuale di MS Windows, Java è installato principalmente nella cartella `C:\Program Files\Java\`. Parti aggiuntive si trovano in `C:\Program Files\Oracle\Java\`. C'è una cartella `.\javapath\` indicata nella variabile d'ambiente PATH. Lì si trovano i tre file virtuali `java.exe`, `javaw.exe` e `javaws.exe`. Questi file sono link simbolici all'installazione attuale di Java.
     217
     218Sulle vecchie versioni a 64 bit di Windows a volte è installato in aggiunta un JRE in modalità 32 bit.  Anche alcuni browser hanno la propria JVM con capacità limitate. In questi casi un Web Start dal browser non userà la tua installazione di Java bensì quella del browser.
     219
     220Verifica che non vi sia nessun altro javawebstart in `\Windows\SysWow64`. Il pannello di controllo di Java non lo rileverà ed è possibile cancellarlo con tranquillità. Esegui una pulizia e mantieni solo le ultime versioni di ogni JRE (Una per la modalità 32-bit , un'altra per quella a 64-bit).
     221
     222Per i collegamenti creati sul desktop per JNLP e che eseguono il programma di avvio Javawebstart , assicurati di passare i parametri VM con prefisso -J e nessuno spazio intermedio prima dell'opzione VM. Se hai installato sia la versione a 32 bit che quella a 64 bit, dovresti passare l'opzione "`-d64`" se vuoi selezionare la VM a 64 bit preferita. Si noti che alcune pagine della documentazione Oracle indicano l'opzione "-D64" con la maiuscola errata!)
     223
     224Esempio di una linea di comando modificata per creare un collegamento sul desktop di Windows:
    225225{{{
    226226#!sh
     
    229229
    230230
    231 === Windows josm.exe ===#Mswindowswrapper
     231=== josm.exe per Windows  ===#Mswindowswrapper
    232232Usando josm-setup.exe per l'installazione su Microsoft Windows si verificano le seguenti azioni:
    233233 * I due file eseguibili `JOSM.exe` e `HWConsole.exe` sono installati nella cartella `%LOCALAPPDATA%\JOSM`