Zum Inhalt springen

javaanfänger

Mitglieder
  • Gesamte Inhalte

    237
  • Benutzer seit

  • Letzter Besuch

Beiträge von javaanfänger

  1. Hallo,

    kann mir bitte kurz einer sagen, wie ich in einer IF-Anweisung prüfen kann ob eine Variable Typ Long, Variable Typ Char und eine Variable Typ Short gefüllt ist?

    Danke

  2. gmake.AIX: *** [/proj/afis4/e1c/.cmainobj/ie/mie9501.o] Error 111

    gmake.AIX: *** Waiting for unfinished jobs....

    Starting Vespa Build Framework...

    Sending output to stdout

    Spawning up to 6 Childs, Maximum Load Average = 10

    (Parsing cics Makefiles for Target(s) mie9001

    mie9501)

    [Vcc] [---] vcc -c -m -d src/mie9501.c (Cics)

    [Cct] [O] [000] /usr/lpp/cics/bin/cicstran -e -l C mie9501.ccs

    -> ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

    [Ccc] [E] [001] /usr/bin/cc -c -g -DDEBUG_ON -DAIX -DPACK -DCICS -qinfo=cmp -qinfo=cnd -qinfo=eff -qinfo=pro -qinfo=rea -qinfo=enu -DPACK -II:/mcprod/cicinclh -I/usr/lpp/cics/include -II:/e1/ie/iesrv/mexit.c -II:/e1/oc/ocsrv/mexit.c -II:/e1/mc/mcsrv/mexit.c -II:/e1/xm/xmsrv/mexit.c -II:/e1/zf/zfsrv/mexit.c -II:/e1/di/disrv/mexit.c -II:/e1/sd/sdsrv/mexit.c -II:/e1/ki/kisrv/mexit.c -II:/e1/tx/txsrv/mexit.c -II:/e1/ks/kssrv/mexit.c -II:/e1/rs/rssrv/mexit.c -II:/e1/ko/kosrv/mexit.c -II:/e1/ie/iesrv/mexit -II:/e1/oc/ocsrv/mexit -II:/e1/mc/mcsrv/mexit -II:/e1/xm/xmsrv/mexit -II:/e1/zf/zfsrv/mexit -II:/e1/di/disrv/mexit -II:/e1/sd/sdsrv/mexit -II:/e1/ki/kisrv/mexit -II:/e1/tx/txsrv/mexit -II:/e1/ks/kssrv/mexit -II:/e1/rs/rssrv/mexit -II:/e1/ko/kosrv/mexit -II:/e1/ie/iesrv/spexit.c -II:/e1/oc/ocsrv/spexit.c -II:/e1/mc/mcsrv/spexit.c -II:/e1/xm/xmsrv/spexit.c -II:/e1/zf/zfsrv/spexit.c -II:/e1/di/disrv/spexit.c -II:/e1/sd/sdsrv/spexit.c -II:/e1/ki/kisrv/spexit.c -II:/e1/tx/txsrv/spexit.c -II:/e1/ks/kssrv/spexit.c -II:/e1/rs/rssrv/spexit.c -II:/e1/ko/kosrv/spexit.c -II:/e1/ie/iesrv/spexit -II:/e1/oc/ocsrv/spexit -II:/e1/mc/mcsrv/spexit -II:/e1/xm/xmsrv/spexit -II:/e1/zf/zfsrv/spexit -II:/e1/di/disrv/spexit -II:/e1/sd/sdsrv/spexit -II:/e1/ki/kisrv/spexit -II:/e1/tx/txsrv/spexit -II:/e1/ks/kssrv/spexit -II:/e1/rs/rssrv/spexit -II:/e1/ko/kosrv/spexit -II:/e1/ie/iesrv/include.c -II:/e1/oc/ocsrv/include.c -II:/e1/mc/mcsrv/include.c -II:/e1/xm/xmsrv/include.c -II:/e1/zf/zfsrv/include.c -II:/e1/di/disrv/include.c -II:/e1/sd/sdsrv/include.c -II:/e1/ki/kisrv/include.c -II:/e1/tx/txsrv/include.c -II:/e1/ks/kssrv/include.c -II:/e1/rs/rssrv/include.c -II:/e1/ko/kosrv/include.c -II:/e1/ie/iesrv/include -II:/e1/oc/ocsrv/include -II:/e1/mc/mcsrv/include -II:/e1/xm/xmsrv/include -II:/e1/zf/zfsrv/include -II:/e1/di/disrv/include -II:/e1/sd/sdsrv/include -II:/e1/ki/kisrv/include -II:/e1/tx/txsrv/include -II:/e1/ks/kssrv/include -II:/e1/rs/rssrv/include -II:/e1/ko/kosrv/include mie9501.c

    -> "I:/e1/ie/iesrv/src/mie9501.c", line 68.31: 1506-172 (S) Parameter type list for function ieCheckZf contains parameters without identifiers.

    -> "I:/e1/ie/iesrv/src/mie9501.c", line 99.16: 1506-435 (I) An expression statement should have some side effects because its value is discarded.

    -> "I:/e1/ie/iesrv/src/mie9501.c", line 99.6: 1506-045 (S) Undeclared identifier IE_ENV_NEW.

    -> ERROR compiling source (mie9501.c)

    -> ERROR compile failed

    -> (return code: 205)

    [Vcc] [E] [111] vcc -c -m -d src/mie9501.c (Cics)

    [Vcc] [---] vcc -c -m -d -s src/mie9001.c (Cics)

    [Csp] [W] [002] vsqlprep mie9001.sqc AFISE -x=cie1cied -f=EUR

    -> dbname=AFISE coll=COLLECTION cie1cied pack=

    -> connect to AFISE USER db2e using ""

    ->

    -> Database Connection Information

    ->

    -> Database server = DB2/6000 7.2.3

    -> SQL authorization ID = DB2E

    -> Local database alias = AFISE

    ->

    ->

    -> prep mie9001.sqc BINDFILE USING mie9001.bnd DATETIME EUR COLLECTION cie1cied

    ->

    -> LINE MESSAGES FOR mie9001.sqc

    -> ------ --------------------------------------------------------------------

    -> SQL0060W The "C" precompiler is in progress.

    -> SQL0053W No SQL statements were found in the program.

    -> SQL0053W No SQL statements were found in the program.

    -> SQLSTATE=00000

    -> SQL0091W Precompilation or binding was ended with "0"

    -> errors and "2" warnings.

    ->

    -> terminate

    -> DB20000I The TERMINATE command completed successfully.

    ->

    [Cct] [O] [000] /usr/lpp/cics/bin/cicstran -e -l C mie9001.ccs

    -> ERZ004060I/5015: cicstran translation ended: 0 errogmake.AIX: *** [/proj/afis4/e1c/.cmainobj/ie/mie9001.o] Error 111

    Done (got errors).

    r(s), 0 warning(s).

    [Ccc] [E] [001] /usr/bin/cc -c -g -DDEBUG_ON -DAIX -DPACK -DCICS -qinfo=cmp -qinfo=cnd -qinfo=eff -qinfo=pro -qinfo=rea -qinfo=enu -DPACK -II:/mcprod/cicinclh -I/usr/lpp/cics/include -II:/e1/ie/iesrv/mexit.c -II:/e1/oc/ocsrv/mexit.c -II:/e1/mc/mcsrv/mexit.c -II:/e1/xm/xmsrv/mexit.c -II:/e1/zf/zfsrv/mexit.c -II:/e1/di/disrv/mexit.c -II:/e1/sd/sdsrv/mexit.c -II:/e1/ki/kisrv/mexit.c -II:/e1/tx/txsrv/mexit.c -II:/e1/ks/kssrv/mexit.c -II:/e1/rs/rssrv/mexit.c -II:/e1/ko/kosrv/mexit.c -II:/e1/ie/iesrv/mexit -II:/e1/oc/ocsrv/mexit -II:/e1/mc/mcsrv/mexit -II:/e1/xm/xmsrv/mexit -II:/e1/zf/zfsrv/mexit -II:/e1/di/disrv/mexit -II:/e1/sd/sdsrv/mexit -II:/e1/ki/kisrv/mexit -II:/e1/tx/txsrv/mexit -II:/e1/ks/kssrv/mexit -II:/e1/rs/rssrv/mexit -II:/e1/ko/kosrv/mexit -II:/e1/ie/iesrv/spexit.c -II:/e1/oc/ocsrv/spexit.c -II:/e1/mc/mcsrv/spexit.c -II:/e1/xm/xmsrv/spexit.c -II:/e1/zf/zfsrv/spexit.c -II:/e1/di/disrv/spexit.c -II:/e1/sd/sdsrv/spexit.c -II:/e1/ki/kisrv/spexit.c -II:/e1/tx/txsrv/spexit.c -II:/e1/ks/kssrv/spexit.c -II:/e1/rs/rssrv/spexit.c -II:/e1/ko/kosrv/spexit.c -II:/e1/ie/iesrv/spexit -II:/e1/oc/ocsrv/spexit -II:/e1/mc/mcsrv/spexit -II:/e1/xm/xmsrv/spexit -II:/e1/zf/zfsrv/spexit -II:/e1/di/disrv/spexit -II:/e1/sd/sdsrv/spexit -II:/e1/ki/kisrv/spexit -II:/e1/tx/txsrv/spexit -II:/e1/ks/kssrv/spexit -II:/e1/rs/rssrv/spexit -II:/e1/ko/kosrv/spexit -II:/e1/ie/iesrv/include.c -II:/e1/oc/ocsrv/include.c -II:/e1/mc/mcsrv/include.c -II:/e1/xm/xmsrv/include.c -II:/e1/zf/zfsrv/include.c -II:/e1/di/disrv/include.c -II:/e1/sd/sdsrv/include.c -II:/e1/ki/kisrv/include.c -II:/e1/tx/txsrv/include.c -II:/e1/ks/kssrv/include.c -II:/e1/rs/rssrv/include.c -II:/e1/ko/kosrv/include.c -II:/e1/ie/iesrv/include -II:/e1/oc/ocsrv/include -II:/e1/mc/mcsrv/include -II:/e1/xm/xmsrv/include -II:/e1/zf/zfsrv/include -II:/e1/di/disrv/include -II:/e1/sd/sdsrv/include -II:/e1/ki/kisrv/include -II:/e1/tx/txsrv/include -II:/e1/ks/kssrv/include -II:/e1/rs/rssrv/include -II:/e1/ko/kosrv/include mie9001.c

    -> "I:/e1/ie/iesrv/src/mie9001.c", line 134.15: 1506-021 (S) Expecting struct or union.

    -> "I:/e1/ie/iesrv/src/mie9001.c", line 134.59: 1506-435 (I) An expression statement should have some side effects because its value is discarded.

    -> ERROR compiling source (mie9001.c)

    -> ERROR compile failed

    -> (return code: 205)

    [Vcc] [E] [111] vcc -c -m -d -s src/mie9001.c (Cics)

    Das ist meine Fehlermeldung

  3.               ieGetKKontoSaldo        (IE_ENV , &pKKontoSaldo);

    ZF_EXCEPTION_CHECK;

    strAusgabe->BtrSaldo = &pKKontoSaldo->BtrSaldo;
    [/PHP]

    Warum funktioniert das nicht das ich BtrSaldo vom pKKontoSaldo in meine strAusgabe kopieren kann

  4. Hi,

    kann mir einer von euch vielleicht helfen? Ich will ein Java Applet habe,

    wo ein Textfeld vorhanden ist wo ich was reinschreiben kann und dann eine

    Button der die Eingabe in ein XML Dokument speichert/generiert, so das ich

    es dann über eine HTML-Seite ausgeben kann. Hat da einer von vielleicht

    ein Source Beispiel?

    Danke

  5. Hallo,

    weis einer von euch wie ich ein Hintergrundbild hinter alle meine Frames legen kann, wenn das überhaupt geht.

    Kann man bei einem Hintergrundbild abstellen, dass es sich andauernt wiederholt.

    Danke

  6. ich schaffe es leider nicht, auch mit einer eigenen Manifest-Datei.

    Manifest-Datei(meine eigenen):

    Main-Class: JMain

    Archiv erstellen:

    jar cvmf Manifest.txt(meine eigenen) JMain.jar *.class

    so mach ich es immer aber es geht nicht.

  7. Guten Morgen,

    Kann mir bitte einer sagen, warum er die Datei nicht bei jedem Durchlauf löscht?


    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.io.*;

    public class Entfernen implements ActionListener
    {
    String m = "0";
    String h = "1";
    String er = "2";
    String tre = " [,]= [,]";
    String strim;
    String strih;
    String strie;
    String fm = "modus.properties";
    String fh = "handbuch.properties";
    String fe = "ergebnistyp.properties";
    static Vector ventf = new Vector();

    public void actionPerformed(ActionEvent e)
    {
    String inhalt = "" + PropertyGui.auswahlcmb.getSelectedIndex();

    if (inhalt.equals(m))
    {
    File dateim = new File(fm);
    if(dateim.exists())
    {
    dateim.delete();
    modusentf();
    }
    else
    {
    modusentf();
    }
    }
    else
    {
    if (inhalt.equals(h))
    {
    File dateih = new File(fh);
    if(dateih.exists())
    {
    dateih.delete();
    handbuchentf();
    }
    else
    {
    handbuchentf();
    }
    }
    else
    {
    if (inhalt.equals(er))
    {
    File dateie = new File(fe);
    if(dateie.exists())
    {
    dateie.delete();
    ergebnistypentf();
    }
    else
    {
    ergebnistypentf();
    }
    }
    else
    {
    System.out.println("Es wurde keine Datei gefunden");
    }
    }
    }
    }
    public void modusentf()
    {
    try
    {
    int i = Tabelle.table.getSelectedRow();
    ventf.remove(ventf.get(i));
    }
    catch(ArrayIndexOutOfBoundsException aioobe)
    {
    System.out.println("Es ist nichts makiert, um es entfernen zu können!");
    }

    Enumeration enum = ventf.elements();

    while(enum.hasMoreElements())
    {
    String au = "" + enum.nextElement();
    StringTokenizer st = new StringTokenizer(au,tre);

    while (st.hasMoreTokens())
    {
    strim = "" + st.nextToken() + "=" + st.nextToken() + "\r\n";
    }

    try
    {
    RandomAccessFile output = new RandomAccessFile(fm,"rw");
    output.seek(output.length());
    output.write(strim.getBytes());
    }
    catch(IOException ioe)
    {
    System.err.println(ioe.getMessage());
    }
    }
    }

    public void handbuchentf()
    {
    try
    {
    int i = Tabelle.table.getSelectedRow();
    ventf.remove(ventf.get(i));
    }
    catch(ArrayIndexOutOfBoundsException aioobe)
    {
    System.out.println("Es ist nichts makiert, um es entfernen zu können!");
    }

    Enumeration enum = ventf.elements();

    while(enum.hasMoreElements())
    {
    String au = "" + enum.nextElement();
    StringTokenizer st = new StringTokenizer(au,tre);

    while (st.hasMoreTokens())
    {
    strih = "" + st.nextToken() + "=" + st.nextToken() + "\r\n";
    }

    try
    {
    RandomAccessFile output = new RandomAccessFile(fh,"rw");
    output.seek(output.length());
    output.write(strih.getBytes());
    }
    catch(IOException ioe)
    {
    System.err.println(ioe.getMessage());
    }
    }
    }

    public void ergebnistypentf()
    {
    try
    {
    int i = Tabelle.table.getSelectedRow();
    ventf.remove(ventf.get(i));
    }
    catch(ArrayIndexOutOfBoundsException aioobe)
    {
    System.out.println("Es ist nichts makiert, um es entfernen zu können!");
    }

    Enumeration enum = ventf.elements();

    while(enum.hasMoreElements())
    {
    String au = "" + enum.nextElement();
    StringTokenizer st = new StringTokenizer(au,tre);

    while (st.hasMoreTokens())
    {
    strie = "" + st.nextToken() + "=" + st.nextToken() + "\r\n";
    }

    try
    {
    RandomAccessFile output = new RandomAccessFile(fe,"rw");
    output.seek(output.length());
    output.write(strie.getBytes());
    }
    catch(IOException ioe)
    {
    System.err.println(ioe.getMessage());
    }
    }
    }
    }
    [/PHP]

  8. Ich habe eine Frage. Warum macht mein Programm keinen Zeilenumbruch, wenn es in eine andere Datei schreibt? Sie schreibt anstatt dem Zeilenumbruch(\n) ein [] hin. Kann mir da bitte wer helfen?


    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.io.*;

    public class Entfernen implements ActionListener
    {
    String m = "0";
    String h = "1";
    String er = "2";
    String wert = "";
    String beschreibung = "";
    static Vector entf = new Vector();
    String tre = " [,]= [,]";
    String stri;

    public void actionPerformed(ActionEvent e)
    {
    String inhalt = "" + PropertyGui.auswahlcmb.getSelectedIndex();

    if (inhalt.equals(m))
    {
    System.out.println("MODUS");
    System.out.println(Tabelle.vrowData);
    System.out.println(Tabelle.table.getSelectedRow());
    int i = Tabelle.table.getSelectedRow();
    System.out.println(i);
    Tabelle.vrowData.remove(Tabelle.vrowData.get(i));
    System.out.println(Tabelle.vrowData);

    String f = "testmodus.txt";
    Enumeration enum = Tabelle.vrowData.elements();

    while(enum.hasMoreElements())
    {
    String au = "" + enum.nextElement();

    StringTokenizer st = new StringTokenizer(au,tre);
    while (st.hasMoreTokens())
    {
    stri = "" + st.nextToken() + "=" + st.nextToken() + "\n";
    }

    try
    {
    RandomAccessFile output = new RandomAccessFile("testmodus.txt","rw");
    output.seek(output.length());
    output.write(stri.getBytes());
    }
    catch(IOException ioe)
    {
    System.err.println(ioe.getMessage());
    }
    }
    }
    else
    {
    if (inhalt.equals(h))
    {
    }
    else
    {
    if (inhalt.equals(er))
    {
    }
    else
    {
    System.out.println("Es wurde keine Datei gefunden");
    }
    }
    }
    }
    }
    [/PHP]

  9. Guten Morgen,

    weiß einer von euch, was ich da falsch mache? Das er den Selektiertenbereich nicht löscht.


    /* Entfernen.java */

    /** Die Klasse Entfernen soll einen individuell selektierten Bereich
    aus der Tabelle löschen können. */
    import java.awt.*;
    import java.awt.event.*;

    public class Entfernen implements ActionListener
    {
    public void actionPerformed(ActionEvent e)
    {
    System.out.println(Tabelle.table.getSelectedRow());
    Tabelle.table.removeRowSelectionInterval(Tabelle.table.getSelectedRow(), Tabelle.table.getSelectedRow());
    /*Die selektierte Zeile in der Tabelle, wird entfernt.*/
    }
    }
    [/PHP]

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...