Nemogu da otvorim JAR u čemu je problem?

2

Nemogu da otvorim JAR u čemu je problem?

offline
  • Pridružio: 14 Avg 2005
  • Poruke: 342

Mislim da prvo i najbitnije pitanje bi trebalo da bude - kako si kreirao taj .jar fajl?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 28 Avg 2009
  • Poruke: 195

b@d::::Luck ::Mislim da prvo i najbitnije pitanje bi trebalo da bude - kako si kreirao taj .jar fajl?pa u Eclips-u na export-java-runtabile java jar



offline
  • Pridružio: 14 Avg 2005
  • Poruke: 342

Najbolje bi bilo da uradis sta je ThePhilosopher rekao.

Otvoris command prompt, najdes folder gde se jar nalazi i startujes ga komandom:

java -jar nazivFajla.jar
(umesto nazifFajla stavi kako ti se zove fajl)

Ovako ces dobiti informacije sta se desava (dje ba zapelo) kada pokrenes famozni jar i lakse cemo doci do resenja.

offline
  • Pridružio: 28 Avg 2009
  • Poruke: 195

Rešio sam problem na ovaj način, našao sam ovaj fajl u folderu gde se exportovao i jar fajl, podesio sam ali mi nije i dalje jasno, neka neko objasni ako zna....
========================
BUILD OUTPUT DESCRIPTION
========================

When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).

To run the project from the command line, go to the dist folder and
type the following:

java -jar "cesiuskovertor.jar"

To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.

Notes:

* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.

offline
  • Pridružio: 01 Feb 2014
  • Poruke: 92

imam isti problem
nadam se da ce mi neko moci pomoci

Citat:Otvoris command prompt, najdes folder gde se jar nalazi i startujes ga komandom:

java -jar nazivFajla.jar
(umesto nazifFajla stavi kako ti se zove fajl)

Ovako ces dobiti informacije sta se desava (dje ba zapelo) kada pokrenes famozni jar i lakse cemo doci do resenja.




evo,i sta sad?

offline
  • C# and PHP Developer
  • Pridružio: 16 Feb 2011
  • Poruke: 1630
  • Gde živiš: Pancevo

Skini JRE i onda opozovi java
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jar.html

I skloni te znake navodnika "Calculator.jar"

Ko je trenutno na forumu
 

Ukupno su 846 korisnika na forumu :: 40 registrovanih, 14 sakrivenih i 792 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: _Petar, _Rade, aleksandarbl, amaterSRB, Areal84, Atenjanin89, branko7, BSD, Cirkon, danilopu, dejoglina, dekao, Doca, dule10savic, FileFinder, HrcAk47, indja, Insan, janezek67, kybonacci, ladro, milekNS, Mimikrija, Mitraljeta, Mixelotti, nenad81, Parker, pceklic, pera bager, Pikac-47, proka89, raptorsi, raso76, Rocker, ruma, S2M, solic, Steeeefan, YU-UKI, |_MeD_|