Jump to content
GIGN Forum

Java


ANALGINS
 Share

Recommended Posts

tipa katru reizi rakstit to celu lidz ../bin/ jatram *.java failam ? baigi gari sanaktu :(

un ar tam zalem gugle ari neiet labi, nekadigi nevaru iebraukt kur ir huinja :(

katra zinja tas ari nesanak man, visticamak ka nepareizi rakstu direktus :(

c:/sdk/bin

f:/javastuff/ *.java (2 *.java faili +1 *.jre fails)

ko isti rakstit @ cmd ? ;(

Edited by ANAL-GINS
Link to comment
Share on other sites

Pieliki pie path?

lai parbudity raksti cmd prompta set | more un parbaudi, vai pie path ir pievienojies. dators ir japarstarte, lai tie env variabli statos speka.

Karoce - path ir tavas problemas risinajums. un ja tu gribi .java palaist no windowsa, tad pieliec pie open with, bet to jau laikam tu zini.

btw, izmanto nevis /, bet gan \

un lieca pedinjas, ja celja ir atstarpes.

un parbaudi failu pieejas tiesibas, ja nekas no ta visa nelidz, bet vajadzetu lidzet.

par 5cuku esmu ar mieru remote desktop pie tevis un salabot problemu! ;)

Beefs

mypc -> advanced -> environment variables esmu ierakstijis to C:\j2sdk1.4.2_15\bin gan augsa gan apaksa bet nu neaiziet kapec neiet.. :(

Edited by 0xDEAD BEEF
Link to comment
Share on other sites

Karoce - path ir tavas problemas risinajums. un ja tu gribi .java palaist no windowsa, tad pieliec pie open with

sho gabalu neiebraucu, kur jaliek open with ? :blink:

ediite ja domaji tos *.java failus vert vala ar ../bin/javac.exe vala tad tas neder, tipa cmd rakstu

cd c:\sdk\bin\javac -classpath f:\ircbot pircbot.jar;. *.java

un tad vinjs saka

th3 file name directory name or volume label syntax is incorrect

bet ja rakstu

 cd c:\sdk\bin
javac -classpath F:\ircbot pircbot.jar;. *.java

tad paradas

javac: invalid flag: pircbot.jar;.

usage: javac <option> <source files>

where posible option include:

gars saraksts...

Edited by ANAL-GINS
Link to comment
Share on other sites

Tapec, ka tu huinju raksti! ;)

1) nevar rakstit cd c:\cdk\bin\javac ..., jo cd komanda nomaina tekoso direktoriju. attiecigi javac ir fails.

var rakstit prosta c:\sdk\bin\javac ....

2) tu stabili nodod nepareizus parametrus javac progai.

a) atstarpes nenem preti prompts, jaraksta

javac "-classpath F:\ircbot pircbot.jar;. *.java"

B) nezinu, kas tie par parametriem ;.*.java, bet esmu diezgan parliecinats, ka ta rakstit nav pareizi.

raksti javac /? vai -h vai /h un iiemacies pareizu sintaksi/

Beefs

javac -classpath F:\ircbot pircbot.jar;. *.java

:blink:

ediite ja domaji tos *.java failus vert vala ar ../bin/javac.exe vala tad tas neder, tipa cmd rakstu

cd c:\sdk\bin\javac -classpath f:\ircbot pircbot.jar;. *.java

un tad vinjs saka

th3 file name directory name or volume label syntax is incorrect

bet ja rakstu

 cd c:\sdk\bin
javac -classpath F:\ircbot pircbot.jar;. *.java

tad paradas

javac: invalid flag: pircbot.jar;.

usage: javac <option> <source files>

where posible option include:

gars saraksts...

Link to comment
Share on other sites

nu pizdec.. kas mes tev kadijava guru! :) zini ko.. labak met tai javai ar mieru! ;)

Vins tev saka, ka nevar nokompilet un piepisas pie katras rindinas tava koda!

Sac ar kaut ko vienkarasaku, iemacies vispirms, kas ir klase! ;)

nu ok

1) tev ir klase mybot. to, ka tev ir tada klase, tu pateici rakstot "class mybot". Butu pareizi, ja tu visu to krepu butu ielicis faila ar nosaukumu MyBot.java (case sensitive), lai javac velak zinatu, kura faila ta klase stav, ja tev vinu sagribetos izmantot

2) Tava klases extendo klasi PircBot. tas nozime, ka ir tada pati ka pircbot + fichas. izskatas, ka kompileris nevar atrast pircbot packagi.

3) talak jau vins tev piepisas pie visa pec kartas, jo this.setname ir PircBot metode

macies draugs! ;)

Beefs

f:\ircobot
javac *.java

un paradijas shis skriins, source kopeju no tutorialja tapec ari te tik debili posteju X_X

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...