15,892,537 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by caabool_oo (Top 23 by date)
caabool_oo
12-Jun-11 12:55pm
View
Thank you very much...
caabool_oo
23-Apr-11 19:15pm
View
sorry for late :"(
I wrote inside the manifest.mf
Main-Class: OtheApplet
When i try to create the jar file i got this error:
C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloApplet\src\othelloapplet>jar -cf OthelloApplet.jar -m manifest.mf
-m : no such file or directory
!!!!!!!!!!!!!!??????
caabool_oo
22-Apr-11 6:06am
View
No, i read it all, but it does not work with me. when i try to build the .jar file i got this error:
C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloEE\src\OthelloGame>jar cvfm OthelloEE.jar *.class mainclass.txt
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:389)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)
please help ... :(
caabool_oo
21-Apr-11 5:13am
View
when i follow the first link it give me this error
C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloEE\src\OthelloGame>jar cvfm
OthelloEE.jar *.class manifest.mf
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:389)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)
I think the problem is in the manifest.mf
when i add Main-Class: mainclss.class
my program do not have a main method in the main class it use inti() insted of main(), so when he try to run the applet he could not find the main method.
what should i do??
caabool_oo
9-Apr-11 2:59am
View
in netbeans the java files and classes saved in different location..
is this a problem ??
caabool_oo
9-Apr-11 2:55am
View
Thank you but not working..:(
any other ideas..
caabool_oo
21-Mar-11 9:47am
View
there is no Stop function in time class !!!
caabool_oo
21-Mar-11 6:07am
View
Use -Xmx512m to change the max heap to 512. Default is 128 m
How to do that???
caabool_oo
21-Mar-11 6:06am
View
Deleted
thank you
caabool_oo
21-Mar-11 2:48am
View
Deleted
hay,
I chang the function. and when i use the timer it give me this error
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:640)
at java.awt.EventQueue.initDispatchThread(EventQueue.java:834)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:153)
what do you think??
caabool_oo
19-Mar-11 10:52am
View
Sorry, i didn't see you replay.
i think the problem is when 2 computer play aginst each other they use the same function, i think this make it a recaursion function.
I need to chang the function so it will not call it self.
but i didn't know how to change it in away that not couse any problem.
do you have any idea??
caabool_oo
18-Mar-11 5:27am
View
yes and it is work...
thank you very much..
caabool_oo
18-Mar-11 5:25am
View
WoW its work ;D
thank you very much ..
caabool_oo
18-Mar-11 4:22am
View
Sorry, i think i made a mistak when i update the qustion. the problem is not solved . how can i remove the accept solution announcement???
caabool_oo
18-Mar-11 3:45am
View
do you need the whole code?? because it is very very long .
caabool_oo
18-Mar-11 3:34am
View
Ok, but how can i send it to you??
caabool_oo
17-Mar-11 23:51pm
View
Sorry for late :|
i use the similar way befor and i try it now ,it give me errors and the result is completely wrong. this is the erroe
Exception in thread "Timer-24" java.lang.IndexOutOfBoundsException: Index: 10, Size: 5
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at OthelloGame.Search.MiniMax_Search(Search.java:61)
at OthelloGame.OthelloBoard.Computer_Play(OthelloBoard.java:236)
at OthelloGame.OthelloBoard$DoComputerPlay.run(OthelloBoard.java:275)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
and it is reapeted many time with different index and size.
i didn't use this two line :
if( computer has finished )
myTimer.cancel();
I use only
myTime.cancel();
after
Computer_Play();
because i didn't know when the computer finish..
please help me and sorry for late.
caabool_oo
17-Mar-11 19:51pm
View
I didn't understand how to set up the timer. Can you give me an example please, and how to stop the timer.
thank you for your replay..
caabool_oo
17-Mar-11 18:56pm
View
no the 2 computers play in the same computer but with different functions that related to the game.
caabool_oo
17-Mar-11 11:50am
View
I didn't specify the layout for form or panel.
caabool_oo
17-Mar-11 10:01am
View
sorry for late :|
the problem is not solved.
any other ideas.
caabool_oo
17-Mar-11 6:04am
View
Thank you for your replay
but when i add
Oth.setContentPane( BorderLayout.CENTER);
it give me error. because this function must take container..
and when i applied the example the Jpanel is appear but i need to manage the fram easily (for that i used netbeans and used extended JFram)..
thank you
caabool_oo
8-Mar-11 21:30pm
View
SAKryukov thank you for your replay.
But i need to know where is the error in my code..
is there any one can help me???
Please guys i know the code is very long and need some time to understand it, but i really need your help...
Thank you
Show More