[ bolepks @ 05.07.2013. 09:18 ] @
U kojoj ekstenziji se čuva java program pravljen u Eclips-u?
[ nemnesic @ 05.07.2013. 11:08 ] @
Kada pravis "program" u eclispe - on sve lepo kompajlira u .class file-ove. Da bi pokrenuo te fajlove moraces da kucas java Ime.class
Ali mislim da pitas kako da duplim klikom pokrenes program?
Ako je to pitanje, onda moraces da tvoj project upakujes u JAR. Imas tamo videces opciju Export to Jar.
[ bolepks @ 09.07.2013. 20:27 ] @
Video sam da postoji opcija da se exportuje u JAR i to sam uradio, tako što sam odredio da fajl ide na desktop ali kada dvoklikom kliknem neće da se pokrene...
[ q3dalibor @ 12.07.2013. 02:27 ] @
treba ti java runetime environment da bi pokretao jar fajlove
http://www.oracle.com/technetw...va/javase/downloads/index.html
[ palilulac @ 12.07.2013. 23:30 ] @
Da bi pokrenuo jar, moras ga napravis da bude execute-abilan. To isto mozes eclipsom. Da bi izvrsio svoj "program", otvori command prompt i kucaj:
java -jar C://putanja/do/njega/tvojDzar.jar
[ bolepks @ 13.07.2013. 15:59 ] @
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.