Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Reti di calcolatori > [HELP] Java
Pages (3): « 1 [2] 3 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
foxinho
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 254 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 14:41:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

% dovrebbe essere il resto della divisione...



:?:?:?:?:? a casa mia 24%3 fa 0....

09-04-2005 08:59
Click Here to See the Profile for foxinho Click here to Send foxinho a Private Message Find more posts by foxinho Add foxinho to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Voodoo
.grande:maestro.

User info:
Registered: Jan 2004
Posts: 1009 (0.13 al dì)
Location: Pisa
Corso: com. dig.
Anno: dottore :)
Time Online: 6 Days, 23:28:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
lol

% dovrebbe essere il resto della divisione...quindi X = 24%3 viene X = 3...perchè è il resto della divisione di 24 per 3..ke da' 7 con resto 3!


Era confuso :-D

__________________
GET DROPBOX
# il grado di lentezza è direttamente proporzionale all'intensità della memoria;il grado di velocità è direttamente proporzionale all'intensità dell'oblio (Kundera) #
BLOG: Byte Strike
ChRiS :ciao:

23-09-2005 22:11
Click Here to See the Profile for Voodoo Click here to Send Voodoo a Private Message Visit Voodoo's homepage! Find more posts by Voodoo Add Voodoo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.20 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by foxinho
:?:?:?:?:? a casa mia 24%3 fa 0....


si beh non ci voleva una cima per capire che mi ero semplicemente confuso...

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

24-09-2005 11:01
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ikkarus
.illuminato.

User info:
Registered: Sep 2004
Posts: 164 (0.02 al dì)
Location: Melzo
Corso: Comunicazione Digitale
Anno: 3
Time Online: 1 Day, 6:43:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
java5 classpath e path

come si setta la variabile path per java5?grazie!!

Last edited by Ikkarus on 16-10-2005 at 16:33

16-10-2005 16:30
Click Here to See the Profile for Ikkarus Click here to Send Ikkarus a Private Message Find more posts by Ikkarus Add Ikkarus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UnreAlx
Italian Realm Staff

User info:
Registered: Nov 2004
Posts: 111 (0.01 al dì)
Location: SomeWhere in Provincia di Milano
Corso: Comunicazione Digitale
Anno: III - Turno 1
Time Online: 1 Day, 4:24:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

devi mettere la cartella dv hai installato java5...

esempio C:\JAVA5\BIN

__________________
GM Aerandir
Neverage L][ GDR Shard by Italian Realm
www.italianrealm.com

18-10-2005 16:01
Click Here to See the Profile for UnreAlx Click here to Send UnreAlx a Private Message Find more posts by UnreAlx Add UnreAlx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dodo77
Burn in my Light

User info:
Registered: Sep 2004
Posts: 864 (0.11 al dì)
Location: Into a Corner
Corso: Com. Digitale
Anno: son vecchio
Time Online: 2 Days, 2:25:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

poni che hai installato java in c:\java\

pannello di contro
sistema
avanzate-->clic su VARIABILI AMBIENTE (in basso)

appare la finestrella con 2 campi
alto variabili utente
basso variabili sistema

se guardi in variabili sistema troverai la voce PATH sotto variabile

seleziona PATH e fai MODIFICA
avarai una cosa simile
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy
stem32\Wbem;C:\Programmi\ATI Technologies\ATI Control Panel; a seconda di cosa tu hai installato nel tuo pc questa riga cambia

ora vai alla fine di quella riga e metti
;c:\java\bin se hai installato java in c:\java\
se hai installato in altre directory metti x:\directory di installazione\bin E' FONDAMENTALE METTERE ; PRIMA DI SCRIVERE L'INDIRIZZO DELLA CARTELLA bin DI JAVA, se no non funziona nulla

fai OK a tutto e fine
dovrebbe funzionare tutto :)

se hai prob chiedi

Last edited by dodo77 on 18-10-2005 at 17:57

18-10-2005 17:54
Click Here to See the Profile for dodo77 Click here to Send dodo77 a Private Message Find more posts by dodo77 Add dodo77 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ikkarus
.illuminato.

User info:
Registered: Sep 2004
Posts: 164 (0.02 al dì)
Location: Melzo
Corso: Comunicazione Digitale
Anno: 3
Time Online: 1 Day, 6:43:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

perfetto grazie!

19-10-2005 19:00
Click Here to See the Profile for Ikkarus Click here to Send Ikkarus a Private Message Find more posts by Ikkarus Add Ikkarus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
okan22
.illuminato.

User info:
Registered: Mar 2004
Posts: 197 (0.02 al dì)
Location:
Corso: Comunicazione Digitale
Anno: 3
Time Online: 3 Days, 11:51:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
domanda

non mi ricordo piu come si fa a installare java ... da dove lo prendo??? e poi quali path devo inserire?? grazie

21-10-2005 10:23
Click Here to See the Profile for okan22 Click here to Send okan22 a Private Message Find more posts by okan22 Add okan22 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
SolidSnake
.primate.

User info:
Registered: Mar 2005
Posts: 76 (0.01 al dì)
Location: sondrio
Corso: comunicazione digitale
Anno: terzo
Time Online: 2 Days, 6:15:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno sa come si va a configurare eclipse in modo da poter utilizzare le classi del prog.io?
Grazie

28-10-2005 22:43
Click Here to See the Profile for SolidSnake Click here to Send SolidSnake a Private Message Find more posts by SolidSnake Add SolidSnake to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dodo77
Burn in my Light

User info:
Registered: Sep 2004
Posts: 864 (0.11 al dì)
Location: Into a Corner
Corso: Com. Digitale
Anno: son vecchio
Time Online: 2 Days, 2:25:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

snake le IO a java non servono, ha già tutto quello che ti serve in java normale...solo che alcune cose non ci sono, le IO che ti hanno dato in univ sono "modificate" ad hoc per funzionare come le hanno spiegate a lezione, meglio che ti impari java senza IO moddato. java.io è già dentro java ma in versione standard

per intenderci non devi chiamare un nuovo outputmanager, basta che usi un system.out.println("ciao mondo");


questo prog che ho fatto io fa vedere come usare syste.in e syste.out con le IO di default di java (fatto con eclipse)

import java.io.*;

public class Ascendi {
public static void main(String[] args) {
//int i=0;
char c;
try {
System.out.println("Premi 1, 2 o 3");
c = (char) System.in.read();
//c = (char) i;
if (c=='1') {
System.out.println("Hai premuto UNO");
}
else if (c=='2') {
System.out.println("Hai premuto DUE");
}
else if (c=='3') {
System.out.println("Hai premuto TRE");
}
else System.out.println("Sei proprio Gay, hai premuto " + c);

} catch (IOException ioe) {
System.out.println( "IO error:" + ioe );
}
}
}

come vedi non hai bisogno di creare nuovi manager video o tastiera :)

Last edited by dodo77 on 28-10-2005 at 23:53

28-10-2005 23:45
Click Here to See the Profile for dodo77 Click here to Send dodo77 a Private Message Find more posts by dodo77 Add dodo77 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
SolidSnake
.primate.

User info:
Registered: Mar 2005
Posts: 76 (0.01 al dì)
Location: sondrio
Corso: comunicazione digitale
Anno: terzo
Time Online: 2 Days, 6:15:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma se io voglio mettere un numero da tastiera (senza assegnarlo in una variabile) che metodo dovrei usare?

29-10-2005 00:33
Click Here to See the Profile for SolidSnake Click here to Send SolidSnake a Private Message Find more posts by SolidSnake Add SolidSnake to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dodo77
Burn in my Light

User info:
Registered: Sep 2004
Posts: 864 (0.11 al dì)
Location: Into a Corner
Corso: Com. Digitale
Anno: son vecchio
Time Online: 2 Days, 2:25:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora effettivamente c'è un prob con il system.in.read...legge i byte poi li devi riconvertire etc... quindi ti coniverrebbe usare il BufferedReader ma è un mezzo macello

ti do quindi la soluzione per importare il prog.jar in eclipse così usi prog.io.*

allora tu hai il tuo (default package) o che m'hai chiamato, sotto di questo hai i file .java e sotto ancora i file JRE System Library

- sul JRE System Library fai clic col destro e vai su CONFIGURE
- clic su alternate JREs e poi clic su Installed JREs
- seleziona in il primo in lista, teoricamente ne hai uno solo se non hai smadonnato dentro Eclipse. clic su EDIT
- ti apre la finestra con tutti i jar che puoi caricare.
- DEseleziona "use defaults system libraries"
- clic su ADD EXTERNAL JREs
- cerca il .jar del tuo file prog dove ci son dentro le clas del prog.io, selezionalo e fai APRI, lo mette in lista.

fai OK OK FINISH e dovrebbe andare tutto...

se hai prob al max ti passo il file che uso io.

30-10-2005 18:30
Click Here to See the Profile for dodo77 Click here to Send dodo77 a Private Message Find more posts by dodo77 Add dodo77 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
SolidSnake
.primate.

User info:
Registered: Mar 2005
Posts: 76 (0.01 al dì)
Location: sondrio
Corso: comunicazione digitale
Anno: terzo
Time Online: 2 Days, 6:15:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nella cartella prog.io ho un solo file .jar che non c'entra molto...
mi potresti passare il tuo?
Grazie mille!

31-10-2005 07:49
Click Here to See the Profile for SolidSnake Click here to Send SolidSnake a Private Message Find more posts by SolidSnake Add SolidSnake to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dodo77
Burn in my Light

User info:
Registered: Sep 2004
Posts: 864 (0.11 al dì)
Location: Into a Corner
Corso: Com. Digitale
Anno: son vecchio
Time Online: 2 Days, 2:25:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no allora non c'entra la cartella dove lo ficchi.

un file .jar non è altro che uno .zip rinominato
prova ad aprirlo con winrar o winzip e vedere che cartelle ha dentro, se ha dentro
-prog
---doc
---io
---utili

allora è il jar giusto qualunque sia il suo nome :)
usa quello. se non ha quelle cartelle dentro ti passo il mio.

il mio l'ho trovato sul sito del prof Boldi con documentazione

Last edited by dodo77 on 31-10-2005 at 08:23

31-10-2005 08:20
Click Here to See the Profile for dodo77 Click here to Send dodo77 a Private Message Find more posts by dodo77 Add dodo77 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
SolidSnake
.primate.

User info:
Registered: Mar 2005
Posts: 76 (0.01 al dì)
Location: sondrio
Corso: comunicazione digitale
Anno: terzo
Time Online: 2 Days, 6:15:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok sono riuscito!
Ho scaricato il file .jar dal sito del prof Boldi e ora funziona tutto!
Grazie mille!
:-D

01-11-2005 22:20
Click Here to See the Profile for SolidSnake Click here to Send SolidSnake a Private Message Find more posts by SolidSnake Add SolidSnake to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 05:33.    Post New Thread    Post A Reply
Pages (3): « 1 [2] 3 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.083 seconds (68.91% PHP - 31.09% MySQL) con 24 query.