This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JAR File Help

 
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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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: 43016
76
  • 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
Posts: 23878
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux 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
Posts: 23878
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux 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
 
    Bookmark Topic Watch Topic
  • New Topic