Borland JBuilder: .class bzw. .jar erstellen

Status
Nicht offen für weitere Antworten.

snoop83

Mitglied
Ich suche eine Funktion im aktuellen JBuilder 2005:

Wie kann ich meine *.java in eine *.class umwandeln, so dass ich sie über die Kommandozeile mit
java *.class
ausführen kann?


Wenn ich über die Konsole mit
javac file.java
arbeite, haut das mit dem classpath etc. natürlich alles nicht hin. Ist mir auch zu anstrengend da jedesmal alles einzustellen bzw. einzutippen :(

und wie schaffe ich es, mein Projekt als *.jar zu exportieren, damit es jeder mit einer Java-Umgebung per Doppelklick starten kann?
 

Sky

Top Contributor
Habe "nur" JBuilder 9 installiert, dort geht es so:

*.java -> *.class: Project / Make ODER Project / Rebuild

*.jar erstellen: Wizard / Archive Builder...
 

snoop83

Mitglied
@ Roar:
Ja, den grünen Button sehe ich. Damit kann ich die Datei ausführen etc. und gut ist .. *.java erzeugt er mir damit ja auch, aber ich bräuchte eine ausführbare *.jar datei :bahnhof:

@ sky80:
Wizard - Archive Builder
finde ich im JBuilder 2005 nicht .. :(

Über
Datei - Projekt speichern unter
steht bei der Auswahl der Dateitypen *.jar mit dabei. Aber egal was ich eingebe, er meckert immer, dass ich Dateiname und -erweiterung überprüfen soll.
 

snoop83

Mitglied
Wenn ich meine *.class-files mit jawa oder jawaw über die Kommandozeile ausführe, kommt jedesmal:

could not find the main class
progamm exit


:(
 

snoop83

Mitglied
unter
datei > neu > erzeugen steht bei mir nur "ANT" zur auswahl ..

wenn ich es über
datei > neu > archiv
erstellt er mir zwar die *.jar datei, aber wenn ich die mit javaw starte, dann kommt wieder die meldung

could not find the main class
progamm exit
 

snoop83

Mitglied
Es liegt irgendwie am Rechner.

Auf meinem anderen Rechner funktionieren die *.jar - files anstandslos .. kurios !!

nur die *.class-files laufen auf keinem meiner systeme..
 
M

mightymop

Gast
snoop83 hat gesagt.:
Es liegt irgendwie am Rechner.

Auf meinem anderen Rechner funktionieren die *.jar - files anstandslos .. kurios !!

nur die *.class-files laufen auf keinem meiner systeme..

die jar datei läuft wahrscheinlich weil nen wrapper drumgepackt wurde, bzw in der manifestdatei der classpath mit angegeben ist....

wenn du dein projekt ausführen willst mittels *.class

geht das bsp so:

konsole: c:\programme\java\bin\java -classpath "d:\projekt\classes;" Projektname.Klassemitmainmethode

mfg

mightymop
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
M Borland (JBuilder) Klassenbibliothek nutzen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Q Frage zu Borland JBuilder 2005 Foundation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G kleine frage zu JBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T JBuilder und Packages IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
B JBuilder 2005 - Consolenausgabe erweitern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
S Projekt-VCS im Jbuilder 2006 wechseln IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T Wie exportiere ich ein Programm aus dem JBuilder? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M JBuilder und Zeilenumbruch IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S Packege unter Eclipse und jBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P JBuilder exe & co . aber wo IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
F JBuilder 2005 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
D JBuilder und Konsole IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
L-ectron-X JBuilder vs. Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 21
G JBuilder Jar File machen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Bleiglanz JBuilder - die gute alte Zeit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
B JBuilder-Designer schmiert bei SWT.text.... ab ! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
O JBuilder startet nicht (Suse Linux) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G JBuilder 2005 Foundation kostenlos? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
S Probleme mit manchen Zeichen in Jbuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
O JBuilder Formatierung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G JBuilder 2005 Frage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B JBuilder Enterprise 2005 für J2EE IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
thE_29 JBuilder nervt mal wieder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
J eclipse & JBuilder = Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
L Jbuilder Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J JBuilder Fat32 und NTFS IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
W JBuilder ein Greuel wegen Langsamkeit? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 19
R Wie erstellt man JAR-Dateien unter JBuilder 2005 Foundation? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S JBuilder: Größe von Buttons ändern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
M JBuilder Designer findet Klasse nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J jbuilder 2005 foundation problem mit parameterinsight IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
C JBuilder Personal kommerziell? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
R JBuilder 2005 Foundation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
M In JBuilder Klasse generieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G Libraries unter JBuilder X IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M JBuilder X: Absturz nach Scrollen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
T JSF mit JBuilder 2005 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T JBuilder X und Tiger IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
N JBuilder X für Linux: keine Quelltextanzeige mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
A Swing-GUI-Builder: JBuilder, NetBeans oder Visual Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
H JBuilder: Javadoc-Erzeugung unterbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Netbeans oder JBuilder .oder ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G jBuilder und Code-Formatierung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
F JBuilder (9 Personal) - Probleme mit Klassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C JBuilder: Packages schachteln IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
K JBuilder: JNI-Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
M Debugging-Fehler mit JBuilder 9 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G JBuilder: Applikationen starten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
P Probleme mit JBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
R JBuilder erkennt GUI nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A [JBuilder] - Keine Hilfe vorhanden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
E JBuilder aktualisieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
B Eclipse vs JBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 43
G JBuilder unter Debian Linux IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C JBuilder "slowdown" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G Aus Jbuilder projekt exe datei machen??? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G jbuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M JBuilder 9 Help File!? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
R Wie erstelle ich Packete unter JBuilder? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
N JBuilder und Variablendeklaration IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C JBuilder Fehlermeldung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S JBuilder 9 Personal IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B Probleme beim erstellen von Java Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Eclipse Git "Could not find or load main class" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
T NetBeans NetBeans IDE 13 | Cannot find main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
M HILFE! Class wird doppelt erzeugt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J Error: Could not find or load main class xyz (Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
I Eclipse Ant: Class not Found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
H Eclipse SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
J NetBeans Netbeans, Linux -> Was ist ein "bootstrap class path error" und wie kann man das wegbekommen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
R Auf einmal viele Class-Files weg IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
M Eclipse Class-Datei exportieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
C Eclipse Wie kann ich .class-Datei mit eclipse importieren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
E Eclipse Jar-File [,,Could not find the main class - program will exit"] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 25
R Eclipse Class File Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
S Eclipse Versionswechsel, visual class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S JBuilder [ANT] Anfängerfragen zu ANT und der main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S NetBeans Serializable Class ohne package IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H diverse IDEs: main-class nicht gefunden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
C Eclipse Open Type soll keine .class anzeigen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N NetBeans "main class not found" in NetBeans IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
S NetBeans class, jar, package. Wie am besten machen bei Applet mit Web-Projekt? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B Eclipse: Could not find the main Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
sc0p Eclipse: .class nicht editierbar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
J NetBeans JUnit 4.5: initialization Error caused an ERROR: Test class can only have one constructor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J class-File-Splitter-Tool gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A IntelliJ zeigt meine class-Files nicht an!? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse, Breakpoints, TimerThread,class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
J class-dateien verschwunden (eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S NetBeans; Anfängerfragen.insbesondere zur Main - Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G class not found exception / Source not found - Eclipse Ganym IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K class importieren [eclipse] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J Eclipse erzeugt mir keine .class-Dateien mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Eclipse: .class wird nicht angelegt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
E could not fin d the main class. program will now exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
M mal wieder Could not finde the main class.Program will exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N Eclipse-Class-Date in Tomcat - Bad Version Number IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Externe Class-Dateien ins Jar-Archiv aufnehmen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
G Eclipse - Class-Dateien einfügen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
S Verwendung von class-Dateien in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3

Ähnliche Java Themen

Neue Themen


Oben