• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAR File Help  RSS feed

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one have any good videos on how to create a JAR File I have been watching you tube and it seems like the manifest needs to be remade. I go to the CMD and find my project folder class. I think I need to use do the same for all the classes correct. Well I type jar -cf TictacToeGUIGame.jar *java then I get no such directory. I can see the it worked thought. So do i do this to all my classes and then I will have my JAR program?
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at Oracle's tutorial: Lesson: Packaging Programs in JAR Files
 
Brian Bykenhaal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems compiling my code I get here is what my IDE said when I clean and build.




 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't look like it has anything to do with creating the jar file, but more like syntactic problems with incorrect parameter lists for methods. Not seeing the code it's hard to advise how to address that, though.
 
Brian Bykenhaal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code is here I tried to have the method in the scope and import all the utilities I need. Any help would be great I am stuck.













 
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Bykenhaal wrote:My code is here I tried to have the method in the scope and import all the utilities I need. Any help would be great I am stuck.


This error ...

Brian Bykenhaal wrote:



is saying that ... it can't find a variable, named BoardTicTacToe, that is in scope, in the BoardGameTester class. Can you show us where you declared it?

Henry
 
Brian Bykenhaal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int BoardTicTacToe; was added to the my code should I give the value of the board size also? I have my board on a different class of course and named the Board not BoardTicTacToe.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Bykenhaal wrote:int BoardTicTacToe; was added to the my code should I give the value of the board size also? I have my board on a different class of course and named the Board not BoardTicTacToe.


If you want to solve the compiler error, then you need to declare the variable somewhere that is in scope.... As for anything else, meaning getting the program to run correctly, I didn't look at your code -- and hence, don't have a view on the matter.

Henry
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!