• Post Reply Bookmark Topic Watch Topic
  • New Topic

using jar files  RSS feed

 
John M. Gabriele
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i'm really new to linux but installed it so i can learn java.
how do i use a .jar file?
i've tried
jar x jedit.jar
jar -x jedit.jar
java jedit.jar
but can't get it to do anything. on the first two, the terminal
just goes to the next line w/o printing anything on the screen
and just hangs there w/ no cpu/harddisk activity at all.
thanks!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to ask what you want to do with the jar file. Do you want to examine what's in it? Add something to it? Remove something from it? Add it to your class path? Execute it?
All of these are different things, with different ways of doing them. Which do you want?
 
John M. Gabriele
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply frank.
i downloaded jedit (a neat little text editor written in java)
to use when writing programs. i somehow got the .rpm file
installed in my mandrake7.2 system but when i cd over to
the directory where it lies
/usr/share/jedit/3.0.2
the only thing there that remotely resembles the jedit
executable is a file called jedit.jar
i'd like to unpack this jar file if necessary and execute
the jedit program from the shell,.. presumably by typing
java jedit
thanks for the help.
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John:
Try this command, assuming your path and environment is setup correctly, you can execute the command using: java -jar filexxx
 
John M. Gabriele
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
holy canoli! it worked!
thank you. :gratefulSmile:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!