I download this java risk game from javarisk.sourceforge.net
I can run the program using the *.jar command but I can’t seem to compile the all the files…something wrong wif the packages…can someone please help me…with it
Here is the link,tq and I am using SDK 1.4 with Jcreator
http://prdownloads.sourceforge.net/javarisk/javaRisk-1.2.3-src.zip?download
[quote]something wrong wif the packages…
[/quote]
But what? If you are getting an error message, please post it.
well there r many errors
coz they r round 41 java files…n i need 2 compile all of them,is there any software that can do it for me…coz eg…
javaarmy requires class files from connection.java n so on…
it’s basically linked to each other and I dont really get the coding,would you mind having a look at the code and telling me,thank you
I downloaded the src zip from the link specified and imported it into a newly created Eclipse project. I get 9 errors in barisiko.swing.JRisikoDesktop because of some JavaHelp classes. I also get a bunch of warning because unused imports and wrongly accessed static members, but that’s not important.
So I commented out line 12, 28-29, 49-51. Now everything compiles but if I start “Risiko” the file “risiko.properties” cannot be found (it isn’t part of the zip) and the program fails.
So I created an empty “rikiso.properties” file and tried again. Now I get another error and I don’t want to track it down.
However, compilation should be no problem.
[quote]I downloaded the src zip from the link specified and imported it into a newly created Eclipse project. I get 9 errors in barisiko.swing.JRisikoDesktop because of some JavaHelp classes. I also get a bunch of warning because unused imports and wrongly accessed static members, but that’s not important.
So I commented out line 12, 28-29, 49-51. Now everything compiles but if I start “Risiko” the file “risiko.properties” cannot be found (it isn’t part of the zip) and the program fails.
So I created an empty “rikiso.properties” file and tried again. Now I get another error and I don’t want to track it down.
However, compilation should be no problem.
[/quote]
Allrite so now i just download Elipse is it?
you can also try out this link http://prdownloads.sourceforge.net/javarisk/javaRisk-1.2.3-with-jh.zip?download that contains 3 files…
da run file,da properties file n also another file.
so i just download the whole program from elipse n everything should be fine is it?
Well, without a doubt Eclipse is a good IDE, but there’s no reason why JCreator can’t do exactly the same job for you.
I expect you’re not using the tool properly - your IDE should be told about the source files, then asked to build everything. You shouldn’t need to compile each file individually by hand - I guess this is what you’re trying to do?
JCreator should have on-line help or a tutorial of some kind. Otherwise, judging by the screenshots on JCreator.com, there’s a “Project” menu - start there.
If you still can’t get it working, post again and maybe someone who knows JCreator can give you some pointers.
[quote]Allrite so now i just download Elipse is it?
[/quote]
No. That’s just the IDE I use and trust in
Any IDE should do the trick. All I did was a quick check whether the code is compileable or not. BTW, there’re also a version 1.2.4. And there’s a jh.jar which is probably the missing JavaHelp stuff.
Allrite when i try to compile using elipse I get this funny error
Basically let me tell you what I did,
I clicked on file n choose import and choose the zip file that contains the java game and put it into C:\Java-SDK\eclipse\features\org.eclipse.sdk.win32-feature\barisiko
Is that part correct
Now i just hit rebuild project right?
But i get 66 errors and all with some XML plugin and almost similar errors
All right now I know how to compile but still can’t run it,how do i create a risiko propertie file?
i am confused
first you should go to the web:
http://prdownloads.sourceforge.net/javarisk/javaRisk-1.2.3-with-jh.zip?d ownload;
download the .jar ;
get the jih.jar ,and mount the system as you maybe how to load,or direct add to the java classpath ;
but that is not enough,if you juet only do that ,
you will have a exception that tell you "can not load the
.\risiko.properties ";
so you must to get the file(risiko.properties ) from your download directory
;
all thing you have a solution:
1,you can run the program from the command;
at this time:you should copy the risiko.properties to the
your javapackage diretory;
and run;
2,copy the risiko.properties to the netbean install directroy;and run your programe from the ide;
so ,it is ok.!you have a greate solution ,just enjoy it!
[quote]first you should go to the web:
http://prdownloads.sourceforge.net/javarisk/javaRisk-1.2.3-with-jh.zip?d ownload;
download the .jar ;
get the jih.jar ,and mount the system as you maybe how to load,or direct add to the java classpath ;
but that is not enough,if you juet only do that ,
you will have a exception that tell you "can not load the
.\risiko.properties ";
so you must to get the file(risiko.properties ) from your download directory
;
all thing you have a solution:
1,you can run the program from the command;
at this time:you should copy the risiko.properties to the
your javapackage diretory;
and run;
2,copy the risiko.properties to the netbean install directroy;and run your programe from the ide;
so ,it is ok.!you have a greate solution ,just enjoy it!
[/quote]
Well everything works but I can’t seem to know where to put the risiko properties file or create a new one because I can’t seem find my netbeans directory. I am using JDK 1.4 and SDK 1.4 with JCreator from java.sun.com
Basically i want to know just how to create the risiko properties file or use the one provided,i am still confused and I hope you can help me with it,tq
well can some really please help me or teach me 2 create a propertie file in java coz i really am new to it and don’t understand to make or create one,tq so so much