Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Creating an Executable Jar File


  • Please log in to reply
31 replies to this topic

#25 javacrooks

javacrooks

    CC Newcomer

  • Member
  • PipPip
  • 23 posts
  • Programming Language:Java, JavaScript, Visual Basic .NET
  • Learning:Java, JavaScript

Posted 19 August 2012 - 02:26 AM

but where to use this command??


jar cvfm Clock.jar Clock.MF *
  • 1

#26 Zer033x

Zer033x

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 50 posts
  • Programming Language:C++, C#, Lua
  • Learning:C++, C#, JavaScript, Lua, Others

Posted 19 August 2012 - 03:50 AM

Just curious why you would need to do this if you can use netbeans or another IDE to build java products? Also you're coding in plain text files I take it? I think IDE can be pretty useful especially when first learning and they have a lot of build options to take advantage of. I just don't see the point to cmd line build things except for learning purposes to know what the IDE is doing behind the scenes, but once you have a grasp of that I don't think it is necessary.
  • 0

#27 javacrooks

javacrooks

    CC Newcomer

  • Member
  • PipPip
  • 23 posts
  • Programming Language:Java, JavaScript, Visual Basic .NET
  • Learning:Java, JavaScript

Posted 19 August 2012 - 05:37 AM

no,am just now starting to learn java,i have only installed jdk.
  • 0

#28 TALucas

TALucas

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 118 posts
  • Programming Language:Java, (Visual) Basic, Visual Basic .NET, Transact-SQL
  • Learning:C++, PHP, ActionScript

Posted 20 August 2012 - 05:35 AM

javacrooks, you would need to execute that in command line mode in the folder where your code resides. You would also need to make sure you have java installed, and in the system path....otherwise you'll get an error saying java can't be found.

IDEs can be helpful, but it's also good to know how things work. I've been coding in Java for years now, and I still mostly use command line....partly out of habit I guess...partly because it's quick and easy.
  • 0
Your thoughts are the architects of your destiny.

#29 javacrooks

javacrooks

    CC Newcomer

  • Member
  • PipPip
  • 23 posts
  • Programming Language:Java, JavaScript, Visual Basic .NET
  • Learning:Java, JavaScript

Posted 20 August 2012 - 06:34 AM

oki... i got the path set and now its working!!
  • 0

#30 Starwarsfrog

Starwarsfrog

    CC Lurker

  • New Member
  • Pip
  • 8 posts
  • Programming Language:Java
  • Learning:Java

Posted 01 November 2012 - 07:45 PM

awesome this helps alot thx!
  • 0

#31 BlackRabbit

BlackRabbit

    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts
  • Location:Argentina
  • Programming Language:C, C++, C#, PHP, JavaScript, Transact-SQL, Bash, Others
  • Learning:Java, Others

Posted 01 November 2012 - 09:49 PM

javacrooks, you would need to execute that in command line mode in the folder where your code resides. You would also need to make sure you have java installed, and in the system path....otherwise you'll get an error saying java can't be found.

IDEs can be helpful, but it's also good to know how things work. I've been coding in Java for years now, and I still mostly use command line....partly out of habit I guess...partly because it's quick and easy.


I vouch for the best of both worlds, knowing how to do it command line, and using IDE in laziness sake. :D
  • 0

#32 narendra

narendra

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts
  • Programming Language:Java, JavaScript, PL/SQL, Transact-SQL
  • Learning:Java, JavaScript, PL/SQL, Transact-SQL

Posted 21 November 2012 - 04:02 AM

nice tutorial
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download