Compiling trouble

I am currently reading "Thinking in Java" 3rd edition by Bruce Eckel but am having trouble compiling his source code. I think it has something to do with path or classpath.
Here is the source and compiler errors.
import com.bruceeckel.simpletest.*;
class Number {
int i;
public class Assignment {
static Test monitor = new Test();
public static void main(String[] args) {
Number n1 = new Number();
Number n2 = new Number();
n1.i = 9;
n2.i = 47;
System.out.println("1: n1.i: " + n1.i +
", n2.i: " + n2.i);
n1 = n2;
System.out.println("2: n1.i: " + n1.i +
", n2.i: " + n2.i);
n1.i = 27;
System.out.println("3: n1.i: " + n1.i +
", n2.i: " + n2.i);
monitor.expect(new String[] {
"1: n1.i: 9, n2.i: 47",
"2: n1.i: 47, n2.i: 47",
"3: n1.i: 27, n2.i: 27"
} ///:~
G:\javaTutSource\c03>javac Assignment.java
g:\javaTutSource\com\bruceeckel\simpletest\Test.java:9: package java.util.regex
does not exist
import java.util.regex.*;
^
g:\javaTutSource\com\bruceeckel\simpletest\TestStream.java:9: package java.util.
regex does not exist
import java.util.regex.*;
^
g:\javaTutSource\com\bruceeckel\simpletest\Test.java:24: cannot resolve symbol
symbol : method getStackTrace ()
location: class java.lang.Throwable
new Throwable().getStackTrace()[1].getClassName();
^
g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:6: package java.u
til.regex does not exist
import java.util.regex.*;
^
g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:9: cannot resolve
symbol
symbol : class Pattern
location: class com.bruceeckel.simpletest.TestExpression
private Pattern p;
^
g:\javaTutSource\com\bruceeckel\simpletest\Test.java:44: cannot resolve symbol
symbol : constructor RuntimeException (java.io.IOException)
location: class java.lang.RuntimeException
throw new RuntimeException(e);
^
g:\javaTutSource\com\bruceeckel\simpletest\Test.java:67: cannot resolve symbol
symbol : constructor RuntimeException (java.lang.InterruptedException)
location: class java.lang.RuntimeException
throw new RuntimeException(e);
^
g:\javaTutSource\com\bruceeckel\simpletest\TestStream.java:50: cannot resolve sy
mbol
symbol : constructor RuntimeException (java.io.FileNotFoundException)
location: class java.lang.RuntimeException
throw new RuntimeException(e);
^
g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:19: cannot resolv
e symbol
symbol : variable Pattern
location: class com.bruceeckel.simpletest.TestExpression
this.p = Pattern.compile(expression);
^
9 errors
Any help will be appreciated as i really want to lean java!!!

See if this helps with how packages are structured.
Assume that your programs are part of a package named myapp, which is specified by this first line in each source file: package myapp;
Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
Then a statement to compile your source file named aProgram.java is:
C:\java\work\>javac myapp\aProgram.java
Explanation:
Compiling
A class is in a package if there is a package statement at the top of the class.
The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
Running
Compiling creates a file, aProgram.class in the myapp directory.
(The following is where people tend to get lost.)
The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

Similar Messages

  • Compiling troubles

    I'm working on a project to help out with school. I have 2 files: TextPad.java and Editor.java. Both are in the package "textpad". TextPad.java will compile w/o any troubles however when I try to compile Editor.java, javac states that it cannot resolve the symbol:
    Symbol : class TextPad
    location : class textpad.Editor
    JFrame window = new TextPad();
    TextPad DOES have a constructor and the class extends JFrame. Both files are in the same directory and package but Editor will not compiler. Does any one have any ideas?
    Thanks
    MT

    Hi, I am working on rmi but with similiar compilation error as the first post.
    I�@am following the example used in TRAIL: RMI of the Java Tutorial. It worked very well on compiling client classes, ie, ComputePi.java and Pi.java.
    But, I just use another java program to replace Pi.java and modified the corresponding computePi.java as follows and name it as ComputeProgress.java:
    package client;
    import java.rmi.*;
    import compute.*;
    public class ComputeProgress {
    public static void main(String args[]) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String name = "//" + args[0] + "/Compute";
    Compute comp = (Compute) Naming.lookup(name);
    ConeYoyoApp task = new ConeYoyoApp();
    comp.executeTask(task);
    } catch (Exception e) {
    System.err.println("ComputeProgress exception: " + e.getMessage());
    e.printStackTrace();
    Actually, I place both ComputerProgress.java and ConeYoyoApp.java in e:\thesis\client but errors occured as unsolve symbol for ConYoyoApp when compile ComputeProgress.java.
    Can any body tell me if I need to compile ConYoyoApp.java before ComputeProgress.java? (but even I did that, it did not work!) Actually, any expert can tell me how the javac locates those classes referred in the java file?
    Thanks very much in advance!

  • Compile trouble

    I recently wiped my drive and upgraded to winxp and now cannot get my java to compile. Installed my os to my D drive and set both path and class path. I have read the troubleshooting thread and i can do this just fine:
    ====
    D:\>cd d:\development
    D:\development>javac HelloWorld.java
    D:\development>java HelloWorld
    Hello Java World! Here I come.
    D:\development>
    ====
    However, in trying the sun tutorial here:
    http://java.sun.com/developer/onlineTraining/new2java/divelog/
    I am encountering problems. This exact project compiled fine before but now i keep getting 'symbol not found' errors. Check it out:
    ====
    D:\Documents and Settings\Jaithe>cd d:\divelog
    D:\divelog>javac DiveLog.java
    DiveLog.java:53: cannot find symbol
    symbol : class Welcome
    location: class divelog.DiveLog
    new Welcome(),
    ^
    DiveLog.java:58: cannot find symbol
    symbol : class Diver
    location: class divelog.DiveLog
    new Diver(),
    ^
    DiveLog.java:63: cannot find symbol
    symbol : class Dives
    location: class divelog.DiveLog
    new Dives(),
    ^
    DiveLog.java:68: cannot find symbol
    symbol : class Statistics
    location: class divelog.DiveLog
    new Statistics(),
    ^
    DiveLog.java:73: cannot find symbol
    symbol : class WebSite
    location: class divelog.DiveLog
    new WebSite(),
    ^
    DiveLog.java:78: cannot find symbol
    symbol : class Resources
    location: class divelog.DiveLog
    new Resources(),
    ^
    6 errors
    D:\divelog>
    ====
    I know what you're thinking. Are the files there? Yes they are:
    ====
    D:\divelog>dir
    Volume in drive D has no label.
    Volume Serial Number is FC6B-56F6
    Directory of D:\divelog
    04/26/2006 06:36 PM <DIR> .
    04/26/2006 06:36 PM <DIR> ..
    04/26/2006 06:35 PM 2,545 CenterPanel.class
    03/01/2006 01:37 PM 1,933 CenterPanel.java
    03/01/2006 04:20 PM 1,953 CenterPanel_modified.java
    04/26/2006 06:33 PM 8 compile.bat
    04/26/2006 06:23 PM 82 Copy of compile.bat
    03/01/2006 12:56 PM 189 divedetails.txt
    03/01/2006 09:49 PM 1,715 DiveHandler.java
    04/26/2006 07:40 PM 511 DiveLog$1.class
    04/26/2006 07:40 PM 555 DiveLog$2.class
    04/26/2006 07:40 PM 2,458 DiveLog.class
    03/01/2006 10:07 AM 2,662 DiveLog.java
    04/26/2006 06:33 PM 182 Diver$1.class
    04/26/2006 06:33 PM 902 Diver$CheckBoxHandler.class
    04/26/2006 06:33 PM 5,786 Diver.class
    03/01/2006 10:14 AM 9,753 Diver.java
    04/26/2006 06:34 PM 1,738 DiveRecord.class
    03/01/2006 04:37 PM 1,583 DiveRecord.java
    03/01/2006 04:22 PM 847 Dives.java
    04/26/2006 05:50 PM <DIR> images
    04/26/2006 06:36 PM 2,246 NorthPanel.class
    03/01/2006 01:01 PM 1,871 NorthPanel.java
    04/26/2006 05:55 PM 130 README.TXT
    04/26/2006 06:35 PM 202 Resources.class
    02/28/2006 01:01 AM 297 Resources.java
    04/26/2006 05:29 PM 35 run.bat
    03/01/2006 01:40 PM 72 saved_comment.txt
    04/26/2006 06:35 PM 204 Statistics.class
    02/28/2006 01:02 AM 298 Statistics.java
    03/01/2006 06:00 PM 6,247 UIWestPanel.java
    04/26/2006 06:35 PM 198 WebSite.class
    02/28/2006 01:02 AM 295 WebSite.java
    04/26/2006 06:34 PM 1,910 Welcome.class
    02/28/2006 03:08 PM 1,612 Welcome.java
    04/26/2006 06:34 PM 202 WestPanel.class
    03/01/2006 10:52 AM 137 WestPanel.java
    34 File(s) 51,358 bytes
    3 Dir(s) 32,584,663,040 bytes free
    D:\divelog>
    ====
    I have also tried with classpath:
    ====
    D:\divelog>javac -cp . DiveLog.java
    DiveLog.java:53: cannot find symbol
    symbol : class Welcome
    location: class divelog.DiveLog
    new Welcome(),
    ^
    DiveLog.java:58: cannot find symbol
    symbol : class Diver
    location: class divelog.DiveLog
    new Diver(),
    ^
    DiveLog.java:63: cannot find symbol
    symbol : class Dives
    location: class divelog.DiveLog
    new Dives(),
    ^
    DiveLog.java:68: cannot find symbol
    symbol : class Statistics
    location: class divelog.DiveLog
    new Statistics(),
    ^
    DiveLog.java:73: cannot find symbol
    symbol : class WebSite
    location: class divelog.DiveLog
    new WebSite(),
    ^
    DiveLog.java:78: cannot find symbol
    symbol : class Resources
    location: class divelog.DiveLog
    new Resources(),
    ^
    6 errors
    D:\divelog>
    ====
    I have tried other classpath values also like d:\ and "D:\Program Files\Java\jdk1.5.0_06" but that only results in the compiler not finding classes like Vector and Jbutton.
    So what's the deal? I am very new to Java so it could be something else, but like i said, these files compiled fine before i wiped my drive.
    FYI, here are my environment vars:
    ====
    D:\divelog>set
    ALLUSERSPROFILE=D:\Documents and Settings\All Users
    APPDATA=D:\Documents and Settings\Jaithe\Application Data
    CLASSPATH=.
    CLIENTNAME=Console
    CommonProgramFiles=D:\Program Files\Common Files
    COMPUTERNAME=TABERNACLE
    ComSpec=D:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=D:
    HOMEPATH=\Documents and Settings\Jaithe
    JAVA_HOME=D:\Program Files\Java\jdk1.5.0_06
    LOGONSERVER=\\TABERNACLE
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\Ja
    va\jdk1.5.0_06\bin;D:\Program Files\Java\jdk1.5.0_06\lib;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=0102
    ProgramFiles=D:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=D:
    SystemRoot=D:\WINDOWS
    TEMP=D:\DOCUME~1\Jaithe\LOCALS~1\Temp
    TMP=D:\DOCUME~1\Jaithe\LOCALS~1\Temp
    USERDOMAIN=TABERNACLE
    USERNAME=Jaithe
    USERPROFILE=D:\Documents and Settings\Jaithe
    windir=D:\WINDOWS
    D:\divelog>
    ====

    I re-typed all the package lines.
    these compile attempts still produced the six errors about missing symbols:
    cd d:\
    javac -cp d:\ d:\Divelog\DiveLog.java
    cd d:\divelog
    javac -cp d:\ DiveLog.java
    your other suggestion behaved a little differently. This worked without complaining and appeared to successfully create a class for each java file. DiveLog also had DiveLog$1.class and DiveLog$2.class:
    cd d:\
    javac -cp d:\ divelog\*.java
    but then when i tried to run the result, it failed. please recall i typed these while in d:\:
    D:\>java DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog
    D:\>java DiveLog\DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog\DiveLog (wron
    g name: divelog/DiveLog)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    i also tried within the divelog folder:
    D:\>cd d:\DiveLog
    D:\DiveLog>java DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog (wrong name:
    divelog/DiveLog)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    D:\DiveLog>java -cp . DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog (wrong name:
    divelog/DiveLog)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    D:\DiveLog>java -cp d:\ DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog
    D:\DiveLog>java -cp d:\DiveLog DiveLog
    Exception in thread "main" java.lang.NoClassDefFoundError: DiveLog (wrong name:
    divelog/DiveLog)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    something seems to be pretty darn wrong. I will try to reinstall the JDK now.

  • Libtorrent-svn compiling trouble

    Using gcc 4.4.2-4
    libtorrent-svn revision 1119
    I get this error when trying to build the package from AUR:
    checking signedness of mincore parameter... configure: error: failed, do *not* attempt fix this with --disable-mincore unless you are running Win32.
    The libtorrent wiki specifically addresses this problem here: http://libtorrent.rakshasa.no/wiki/CompilationHelp
    Problem: Most likely, no C++ compiler is installed.
    Solution: Install g++ or any other competent C++ compiler.
    In most cases this error message is very misleading and indicates a general inability to compile C++ code rather than a specific problem with the signedness of the mincore parameter.
    I do have a C++ compiler installed. I have not been able to find any information on issues with libtorrent-svn and my compiler. What are my options for getting this compiled? Does anyone know what might be the problem? Thanks

    I copied the parts of config.log that seemed relevant. If I missed something important I will just post the entire thing, but it was fairly large.
    configure:16597: g++ -c -march=i686 -mtune=generic -O2 -pipe -DNDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include conftest.cpp >&5
    conftest.cpp:1: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://gcc.gnu.org/bugs.html> for instructions.
    configure:16597: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "libtorrent"
    | #define PACKAGE_TARNAME "libtorrent"
    | #define PACKAGE_VERSION "0.12.6"
    | #define PACKAGE_STRING "libtorrent 0.12.6"
    | #define PACKAGE_BUGREPORT "[email protected]"
    | #define PACKAGE_URL ""
    | #define PEER_NAME "-lt0C60-"
    | #define PEER_VERSION "lt\x0C\x60"
    | #define PACKAGE "libtorrent"
    | #define VERSION "0.12.6"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_DLFCN_H 1
    | #define LT_OBJDIR ".libs/"
    | #define IS_LITTLE_ENDIAN 1
    | #define _FILE_OFFSET_BITS 64
    | #define USE_EPOLL 1
    | #define SIZEOF_LONG 4
    | #define DEFAULT_ADDRESS_SPACE_SIZE 1024
    | #define HAVE_SYS_VFS_H 1
    | #define HAVE_SYS_STATVFS_H 1
    | #define HAVE_SYS_STATFS_H 1
    | #define FS_STAT_FD fstatvfs(fd, &m_stat) == 0
    | #define FS_STAT_FN statvfs(fn, &m_stat) == 0
    | #define FS_STAT_STRUCT struct statvfs
    | #define FS_STAT_SIZE_TYPE unsigned long
    | #define FS_STAT_COUNT_TYPE fsblkcnt_t
    | #define FS_STAT_BLOCK_SIZE (m_stat.f_frsize)
    | #define USE_OPENSSL 1
    | #define USE_OPENSSL_SHA 1
    | #define USE_MADVISE 1
    | #define LT_SMP_CACHE_BYTES 128
    | #define lt_cacheline_aligned __attribute__((__aligned__(LT_SMP_CACHE_BYTES)))
    | /* end confdefs.h. */
    | #include <sys/types.h>
    | #include <sys/mman.h>
    | #include <unistd.h>
    | void f() { mincore((char*)0, 0, (char*)0); }
    |
    configure:16610: error: failed, do *not* attempt fix this with --disable-mincore unless you are running Win32.
    g++ --version and gcc --version returns: g++ (GCC) 4.4.2 20091208 (prerelease)
    Also, forgot to add: glibc shows as 2.11.1-1. Is this correct? zeerak mentioned that glibc/gcc/g++ all need to be the same version...maybe this is whats going on?
    edit #2: Ok so I switched repositories just to see if that helped. Apparently the one I was using was a tiny bit behind the unixheads one, so I updated to the new 2.6.32.2 kernel and headers. Tried to rebuild libtorrent-svn with no difference, still fails with the same error.
    Last edited by kfour (2009-12-29 23:50:45)

  • Run-time compiling trouble.

    Hello. I wrote the simple command-prompt program that tries to compile existent java code. Any tries are ends with message: error: Can't read: d:\vcs\tries\test.java
    1 error
    [done in 481 ms]
    There are code:
    String[] args = {"-g","-verbose","-classpath","D:/MyDocs/OWN/classes/","-d", "D:/MyDocs/OWN/classes/", "d:\vcs\tries\test.java"};
    sun.tools.javac.Main compiler = new sun.tools.javac.Main(System.out,"javac");
    compiler.compile(args);
    I will be happy to any ideas. Thanks in advance

    Just a shot in the dark, but you don't have any spaces between your arguements.
    And you have to tell it to read from the array at a given position. args[1], args[2].

  • BlazeDS + Webtier compiler Troubles!

    When running a simple jsp like this
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <mm:mxml height="300" width="600"
    usePlayerDetection="true" useExpressInstall="false">
    <mm:flashvar name="javaVersion" value='<%=
    System.getProperty("java.version") %>'/>
    <mm:flashvar name="currentDate" value="<%= new
    java.util.Date().toString() %>"/>
    </mm:mxml>
    tomcat+blaze blows with the exception below, anyone has any
    ideas what's happening ? I have installed webtier into blazeds as
    the readme described.
    org.apache.jasper.JasperException:
    javax.servlet.ServletException: java.lang.StackOverflowError
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505 )
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.StackOverflowError
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.flex.webtier_jsp._jspService(webtier_jsp.java:132)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.StackOverflowError
    java.lang.ClassLoader.findLoadedClass(ClassLoader.java:920)
    flex.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:332)
    java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
    sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown
    Source)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)

    quote:
    Originally posted by:
    ntsiii
    I understand that a webtier compiler for mxml is built into
    FDS(Live Cycle Data Services)
    I have no direct knowledge.
    Tracy
    thanks Tracy for reply, so that means if I download LCDS ES
    (which is free I think ) and take the mxml webtier compiler out of
    it, and put it into blazeDS, will that be considered as license
    violation? since both products are free blazeDS and LCDS ecpress?
    P.S my machine is one CPU anyways.

  • Lapsus compiling troubles

    I've been trying to compile lapsus (both 0.0.6-3 and svn 98), both end up not working because of dbus.
    Firstly, lapsus 0.0.6-3 wouldn't work because it dbus wasn't the right version (I have the newest version, the package is a few years old so I assumed it would be okay). I commented out those lines checking for the right version (I don't know a better way to do it..). It went a bit further afterwards, complained about not being able to find `dbus/dbus.h`.
    Then I tried the svn version. It complained about the wrong automake version, I edited one of the files to have the list include automake 1.11*. It then worked until it complained about some syntax error (I believe part of the error was about the version), about DBus so I commented that part out. Then it went further, finally complaining about not being able to find `dbus/dbus.h`.
    I tried including the file paths to the dbus folder `/usr/include/dbus-1.0/` and `/usr/include/dbus-1.0/dbus` but neither seemed to work.
    I am at a complete loss of what to do, google and searching the forums here aren't helping at all.
    I'm on a new install (installed Arch on this a day ago), it's a 64 bit box. I'd appreciate any help on this at all, the correct way to comment out makefiles, a binary
    Thanks!

    Well, I know I don't need it, I was just hoping to not have to go through the hassle of setting everything up if all I needed was a daemon running

  • Rhythmbox 0.13.3 compiling trouble

    Everything seems to be up to date so I don't see why it tells me requirements were not met. For example, gtk+3.0 is installed on my system
    Here is the output of ./configure
    configure: error: Package requirements (          gtk+-2.0 >= 2.18.0      glib-2.0 >= 2.18.0                  gio-2.0 >= 2.18.0          gio-unix-2.0 >= 2.18.0                  gnome-media-profiles >= 2.8       libsoup-2.4 >= 2.26.0                  libsoup-gnome-2.4 >= 2.26.0) were not met:
    No package 'gnome-media-profiles' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    Alternatively, you may set the environment variables RHYTHMBOX_CFLAGS
    and RHYTHMBOX_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    any suggestions would be appreciated, thanks.

    It doesn't recognize my ipod. I could probably get it to work if I did a little digging but I figured it would just be easier to install Rhythmbox 0.13.3 which I use in Ubuntu
    Last edited by The 8th Cell Junior (2011-07-19 06:57:50)

  • Openbox 3.2 Installation Troubles --solved

    I'm using widget, and I was not able to startX after configuring it (suing X-configure) the error was mouse-related. I read some of the documentation, and saw the recommendation to update openbox.
    So i download openbox-3.2.tar.gz, and decompress it. I then cd into the dir, and type ./configure. all is well, it tells me to type make. I do, and i get an error message.
    "make: *** [all-recusive] Error 1"
    There was more, but it would be a hassle to type out, just ask if you need more, and this isnt just a basic problem.
    edit: for any newbies who find this: in your XF86Config file, change the device option under the mouse section to be /dev/psaux, if you are using a ps/2 mouse.

    GGO wrote:
    I'm using widget, and I was not able to startX after configuring it (suing X-configure) the error was mouse-related. I read some of the documentation, and saw the recommendation to update openbox.
    So i download openbox-3.2.tar.gz, and decompress it. I then cd into the dir, and type ./configure. all is well, it tells me to type make. I do, and i get an error message.
    "make: *** [all-recusive] Error 1"
    There was more, but it would be a hassle to type out, just ask if you need more, and this isnt just a basic problem.
    the compiling trouble is maybe because of the incompatiblity with the gcc 3.4.0
    did you used ABS to rebuild it?
    try to update it first with pacman, as Dusty explained

  • Forms is not cooperating at all!!

    ok so idk maybe I'm just not intelligent enough to understand Forms but I have read through various Documentation on Forms 11g and done research on it and I have typed stuff exactly how I read about to put it and nothing seems to be working like it is supposed to.
    I am working on making a page that can upload and download a PDF from the client's computer to the Database and back by use of buttons. The upload page has a browse button that is supposed to bring up an open dialog box using webutil and then when the user selects a file the file path of that file will be placed into a text box so that 1. they can verify that it is correct and 2. to store the file path for later. Then the user clicks the upload button and the button is supposed to pull the file path from the text item and store the file located in that location into the database.
    here is the code for each of the buttons.
    browse button:
    DECLARE
         File_Path VARCHAR2(255);
    BEGIN
         FILE_PATH := WEBUTIL_FILE.FILE_OPEN_DIALOG
              C,
              null,
              '*.pdf'
         :block.file_upload_text := FILE_PATH;
         Synchronize;
         END;
    upload button:
    Declare
         Result_Upload BOOLEAN;
    Begin
         Result_Upload := Webutil_File_Transfer.Client_To_DB
              :block.file_upload_text,
              'file_tbl',
              'file'
    End;
    and the text box is in the data blocks drop down under buttons it was put there automatically by Forms. But when I try to compile it I get an Error 49 bad bind variable 'block.file_upload_text'
    the text item name is spelled correctly and everything I have found online says that is how to access the text in a text item I dont understand what is gong on that it isnt working and I am really getting annoyed at Forms because no matter how much I read about it and how much of the little of what is available that I look at I can not figure out what is wrong.
    Another problem I am having is that before you even get to this upload page there is another page and that page has a button that is supposed to pull up the upload page and I have figured out enough to figure out that I need the upload page canvas to be a data block in order to call it and then you use a go_block or something like that to pull it up but what I can't figure out is how to make that canvas into a data block... everything that I am finding is saying that to create a data block you need to call a table and stuff and I dont know how I am supposed to put that canvas into a table in the database so that I can create a data block with that canvas in it. I even found something that is supposed to walk you through how to do it and I got to like step 4 of 6 and it said to do something to do with double clicking the database node button or something and I looked everywhere and didn't find anything that said anything about database node. I have been working on this for about a month and a half now and it feels like I have gotten nowhere on it I still haven't even gotten to the download part at all.
    I got this same program working completely upload and download in Java in 2 weeks then found out we needed it to work with Forms so I found out I needed it to be a java bean not just java so I tried to figure that out, couldn't seem to figure out how a java bean worked with what I was trying to do and the only documentation I was able to find that might have been helpful for it was on a blog which are blocked from my work computer and I was informed that Forms had something built in that did exactly what I needed, well that hasn't helped much either so far... I could really use some detailed absolutely as dumbed down as possible help here because I really need to get this thing done.
    I know I rambled a little and I am sorry, any help that can be provided will be greatly appreciated!!

    Sorry for feeling uncomfortable with Forms. But your, I think there is a lot of room fpr (re-)reading forms documentation and other educational handouts.
    I won't solve yout problems, but may be I can give you few hints, tht came into my mind, when browsing yout post:
    DECLARE
    File_Path VARCHAR2(255);
    BEGIN
    FILE_PATH := WEBUTIL_FILE.FILE_OPEN_DIALOG( C, null, '*.pdf')
    +:block.file_upload_text := FILE_PATH;+
    Synchronize;
    END;
    1. What is C? You should get a compilation error since iot is nor declared.
    2. Do you need a directory ot a file. If the first take FILE_SELECTION_DIALOG into consideration. Or may ist easier for you to use CLIENT_GET_FILE_NAME. For this function don't miss to set FILE_SELECT-Parameter to FALSE.
    3. Are you sure the block, where the item FILE_UPDLOAD_TEXT is in is named BLOCK. Forms automatic naming will generate something like BLOCKn (where n is a number). But may be you have renamed the Block (what is common use).
    4. Declaration of file_path is not really necessary; you may assigne the result of the Function immediately to your forms item (via bind variable :<block_name>.<item_name>)
    5. Synchronize is not neccessary at this point, just costs a round-trip ofr the AS.
    (6. I'm an fan of PL/SQLs named parameter syntax; it make code easier to read and to maintaine. So your function call would read
    WEBUTIL_FILE.FILE_OPEN_DIALOG( directory_name => c, file_name => NULL, ...
    just a suggestion, fell free to uswr or not)
    The following is hard to understand. Probably you have a complete different understandind of how to program. You have to accept it's oracle forms an not sonething. That means there are certain structures:
    1. Data
    1 Form consits of one or several blocks; some of them may be connect to the database, often to a table, but it need not be a table; these are called database blocks, others (no database connect) are often called control block (but might also hold data).
    1 Block consists of one or several items; some of them hold data in form of text, numbers, date, image, lists, radios ...; others are means to control the application, e.g. buttons.
    2. View
    1 Form consists of one or several windows.
    1 Window contains one or more canvases; at least one content canvas; there are also other types, but I think you don't need them.
    On the the canvases you "paint" all the things you want to sho to your users, your items (you have to make an item visible and assigne a canvas in the canvas property), free text, graphic elements.
    You don't program a "page"! Your application is running within an applet within a page.
    3. Logic
    You may assigne logic via triggers to the elements of the data stack (form, block, item), not the view stack.
    You may put logic into procedures and functions for better readability and maintainance; these can be stored locally in the form or in own libraries for re-use in other forms.
    What trigger to use in which situation? That beyond my post.
    A special topic here: you can extend forms functionality with java beans. You have to extend forms functionalty with java beans, if you need to get our of the applet sand box. You need that because you want to read/write information of your local client. Basic Java beans you find in WEBUTIL. It offers, I am sure, all the functionality you need. And you have found them.
    So to get your problem solved of showing the whole stuff after pressing a button there a several possibilities:
    easiest: create 2nd content canvas and put your items there; at the switching button issue GO_BLOCK('<block_name>') OR GO_ITEM('<block_name>.<item_name>'), where block_name is that thing that makes the compilation trouble.
    bit mor an effort: create an own window with a new content canvas; the rest as described above; get some knowledge about SET_WINDOW_PROPERTY, espacially in cinjunction with the property VISIBLE, you will need it, whenn switching back;
    even more effort: create an new forms + .... and call this form on the swithing button.
    This might be a reasonable way if you want to re-use this function (up-/down-loading) from several forms.
    Last sentence, in java it took 2 weeks?in forms, Iwould say it's a task for 2-4 hours (forms and webutil correctly installed nd configured). But I won't tell your boss.

  • What's wrong with this simple method

    i'm having compile troubles with this simple method, and i think it's got to be something in my syntax.
    public String setTime()
    String timeString = new String("The time is " + getHours() + ":" + getMinutes() + ":" + getSeconds() + " " + getIsAM());
    return timeString;
    this simple method calls the get methods for hours, minutes, seconds, and isAM. the compiler tells me i need another ) right before getSeconds(), but i don't believe it. i know this is a simple one, but i could use the advice.
    thanks.

    Hi,
    I was able to compile this method , it gave no error

  • Trouble Compiling my Email-client

    Hi
    I have written this email -client, but have some trouble compiling it !
    Then I try to compile it the following errors:
    MailClient.java:350: <identifier> expected
    public syncronize void mails(String t){
    ^
    MailClient.java:727: ';' expected
    private class myWindowListener extends WindowAdapter{
    ^
    MailClient.java:747: '}' expected
    3 errors.
    What do I need to change to correct these errors ?
    I hope that there is somebody out there who can help me get my program to work.
    Thanks in advance.
    Sincrely Yours
    Fred
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{ 
    private Sendman mySendman;
    private Letterman myLetterman;
    public Writer myWrite;
    public Reader myReader;
    public Composer myComposer;
    private Setup mySetup;
    public Addressbook myAdressbook;
    private FixTask myFixTask;
    private Filter myFilter;
    private Info myInfo;
    public Vector mailIndexVector = new Vector();
    public Vector filterIndexVector = new Vector();
    public Vector folderVector = new Vector();
    private JPanel tArea, trae, icon, tField;
    private JTextArea ta;
    private JScrollPane view, treeScroll;
    private JTree tree;
    public JTextField tf;
    private JSplitPane split;
    private Dimension Size;
    private MailClient myMailClient;
    private String mailBody, subject, from;
    public boolean fromOutbox = false;
    public boolean viewSource = false;
    public static void main (String[] args) {
         MailClient myMailClient = new MailClient();
    public MailClient() {
         super("Mail-Client");
         ImageIcon linux = new ImageIcon("linux.gif");
         this.setIconImage(linux.getImage());
         icon = new JPanel();
         icon.setLayout(new FlowLayout(FlowLayout.LEFT));
         ImageIcon neu = new ImageIcon("getmail.gif");
         JButton neueMails = new JButton(neu);
         newMails.setActionCommand("Getting new Mails");
         newMails.addActionListener(this);
         newMails.setBorderPainted(false);
         newMails.setToolTipText("Getting new Mails");
         ImageIcon cr = new ImageIcon("creator.gif");
         JButton creator = new JButton(cr);
         creator.setActionCommand("Creator open");
         creator.addActionListener(this);
         creator.setBorderPainted(false);
         creator.setToolTipText("Creator open");
         JButton rep = new JButton(new ImageIcon("reply.gif"));
         rep.setActionCommand("rep");
         rep.addActionListener(this);
         rep.setBorderPainted(false);
         rep.setToolTipText("Reply");
         JButton fwd = new JButton(new ImageIcon("fwd.gif"));
         fwd.setActionCommand("fwd");
         fwd.addActionListener(this);
         fwd.setBorderPainted(false);
         fwd.setToolTipText("Forward");
         JButton ein = new JButton(new ImageIcon("settings.gif"));
         ein.setActionCommand("settings open");
         ein.addActionListener(this);
         ein.setBorderPainted(false);
    ein.setToolTipText("Setting open");
    JButton adr = new JButton(new ImageIcon("adressbook.gif"));
    adr.setActionCommand("adr");
    adr.addActionListener(this);
    adr.setBorderPainted(false);
    adr.setToolTipText("Addressbook");
    JButton lo = new JButton(new ImageIcon("trash.gif"));
    lo.setActionCommand("trash");
    lo.addActionListener(this);
    lo.setBorderPainted(false);
    lo.setToolTipText("trash");
    JButton in = new JButton(new ImageIcon("info.gif"));
    in.setActionCommand("Information");
    in.addActionListener(this);
    in.setBorderPainted(false);
    in.setToolTipText("Information");
    icon.add(newMails);
    icon.add(creator);
    icon.add(rep);
    icon.add(fwd);
    icon.add(set);
    icon.add(adr);
    icon.add(lo);
    icon.add(in);
    Vector h1 = myLeser.lese("Summary.4on");
    for(int i=0; i<h1.size(); i+=7){
    String id = h1.elementAt(i).toString();
    String fo = h1.elementAt(i+1).toString();
    String su = h1.elementAt(i+2).toString();
    String fr = h1.elementAt(i+3).toString();
    String to = h1.elementAt(i+4).toString();
    String da = h1.elementAt(i+5).toString();
    String re = h1.elementAt(i+6).toString();
    MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
    mailIndexVector.addElement(index);
    Vector h2 = myReader.read("Filter.4on");
    for(int j=0; j<h2.size(); j+=3){
    String fo = h2.elementAt(j).toString();
    String from = h2.elementAt(j+1).toString();
    String te = h2.elementAt(j+2).toString();
    FilterIndex index = new FilterIndex(fo, from, te);
    filterIndexVector.addElement(index);
    folderVector = myReader.read("Folder.4on");
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox")){
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
    baum.add("Center", treeScroll);
    MainMenu menuBar = new MainMenu(this, this);
    setJMenuBar(menuBar);
    setVisible(true);
    public void mailsFetcher() {
    myLetterman = new Letterman(this, mySetup);
    myLetterman.start();
    public void treeNewSign(){
    trae.remove(treeScroll);     
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox"))
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    trae.add("Center", treeScroll);
    trae.repaint();
    setVisible(true);
    public void menuNewSign(){
    setJMenuBar(new MainMenu(this, this));
    setVisible(true);
    public String fromFilter (String t){
    String myFrom = "";
    int start, end;
    int a = t.indexOf("From:");
    if (a != -1){
    start = a + 6;
    ende = t.indexOf("\n",start);
    myFrom = t.substring(start,end);
    return myFrom;
    public String toFilter (String t){
    String myTo = "";
    int start, e1, e2, end;
    int a = t.indexOf("To:");
    if (a != -1){
    start = a + 4;
    end = t.indexOf("\n",start);
    myTo = t.substring(start,end);
    e1 = end + 1;
    if(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" "))
         e1++;
         e2 = t.indexOf("\n",e1);
         myTo += " " + t.substring(e1,e2);
         e1 = e2 + 1;
    return myTo;
    public String dateFilter (String t){
    String myDate = "";
    int start, end;
    int a = t.indexOf("Date:");
    if (a != -1){
    start = a + 6;
    end = t.indexOf("\n",start);
    myDate = t.substring(start,end);
    return myDate;
    public String subjectFilter (String t){
    String mySubject = "";
    int start, end;
    int a = t.indexOf("Subject:");
    if (a != -1){
    start = a + 9;
    end = t.indexOf("\n",start);
    mySubject = t.substring(start,end);
    return mySubject;
    public String mailFilter (String t){ 
    String myMail = "";
    int start = 0, end = t.length();
    start = t.indexOf("\n\n") + 2;
    if (start != 1){
    int a = t.indexOf("\n\n" ,start);
    if (a != -1){
         if (t.indexOf(".",a+2) == a+2)
         if (t.indexOf("\n",a+3) == a+3)
         start = a;
    myMail = t.substring(start,end);
    return myMail;
    public void mailsRemark(String file){
    String mail = "", t = "";
    Vector mailVector = myReader.read(file);
    for (int i=0; i<mailVector.size(); i++)
    t += (String)mailVector.elementAt(i) + "\n";
    from = fromFilter(t);
    subject = subjectFilter(t);
    mailBody = mailFilter(t);
    mail += "Subject: " + subject + "\n";
    mail += "Date: " + dateFilter(t) + "\n";
    mail += "From: " + from + "\n";
    mail += "To: " + toFilter(t) + "\n";
    mail += "\n" + mailBody;
    if(viewSource == true)
    ta.setText(t);
    else
    ta.setText(mail);
    public syncronize void mails(String t){
    Status myStatus = new Status(this,t);
    myStatus.start();
    public void delete(){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    if(node.isLeaf()){
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailIndexVector.removeElement(index);
         int count = 0;
         for(int j=0; j<mailIndexVector.size(); j++){
         MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
         String id = index1.mailId;
         if(id.equals(index.mailId))
         count++;
         if(count == 0){
         File home = new File(".");
         String mailsRemark = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         treeNewSign();
         menuNewSign();
         else{
         String t = (String)nodeInfo;
         boolean toDelete = false;
         for (int i=0; i<folderVector.size(); i++){
         if(folderVector.elementAt(i).equals(t)){
         folderVector.removeElement(t);
         konnteLoeschen = true;
         if(toDelete == false){
         message("This folder can not be deleted!");
         treeNewSign();
    else
         message("Folder is not Empty! Please delete Your mails.");
    else
    message("No Mails where selected to be deleted!");
    public void forward(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfSb.setText("Fwd to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void reply(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfTo.setText(from);
    myCreator.tfSb.setText("Reply to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void end(){
    String h = "";
    for (int i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    h += index.mailId + "\n";
    h += index.folder + "\n";
    h += index.subject + "\n";
    h += index.from + "\n";
    h += index.to + "\n";
    h += index.date + "\n";
    h += index.read + "\n";
    myWriter.writer(h,"Summary.4on");
    String w = "";
    for (int l=0; l<filterIndexVector.size(); l++){
    FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
    w += index.folder + "\n";
    w += index.from + "\n";
    w += index.text + "\n";
    myWriter.write(w,"Filter.4on");
    String k = "";
    for(int j=0; j<folderVector.size(); j++)
    k += folderVector.elementAt(j).toString() + "\n";
    myWriter.writer(k,"Folder.4on");
    String t = "";
    for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
    AddressIndex aindex =
         (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
    t += aindex.alias + "\n";
    t += aindex.email + "\n";
    myWriter.write(t,"Address.4on");
    setVisible(false);
    dispose();
    System.exit(0);
    public void filterOpen(){
    boolean test = false;
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof String){
         myFilter.folder = (String)nodeInfo;
         for(int i=0; i<filterIndexVector.size(); i++){
         FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
         if(h.folder.equals(nodeInfo)){
         myFilter.index = h;
         test = true;
         if(h.from.equals("")){
         myFilter.box1 = false;
         myFilter.fTf.setText("");
         myFilter.fBox.setSelected(false);
         myFilter.fTf.setEditable(false);
         else{
         myFilter.box1 = true;
         myFilter.fTf.setText(h.from);
         myFilter.fBox.setSelected(true);
         myFilter.fTf.setEditable(true);
         if(h.text.equals("")){
         myFilter.box2 = false;
         myFilter.tTf.setText("");
         myFilter.tBox.setSelected(false);
         myFilter.tTf.setEditable(false);
         else{
         myFilter.box2 = true;
         myFilter.tTf.setText(h.text);
         myFilter.tBox.setSelected(true);
         myFilter.tTf.setEditable(true);
         break;
    myFilter.setVisible(true);
    myFilter.fBox.requestFocus();
    else
    meldung("No selection");
    public void sendOutbox(){
    fromOutbox = true;
    int i;
    Block1:
    for(i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    if(index.folder.equals("Outbox")){
         Vector mailVector = myReader.read(index.mailId);
    Block2:
         for(int j=0; j<mailVector.size(); j++){
         String m = (String)mailVector.elementAt(j);
         if(m.indexOf("Subject:") != -1){
         for(int k=0; k<=j+1; k++){
         mailVector.removeElementAt(0);
         break Block2;
         Vector toVector = new Vector();
         int tEnd = 1;
         String line = "";
         String t = index.to;
         while (tEnd != -1){
         tEnd = t.indexOf(", ");
         if (tEnd == -1)
         line = t;
         else
         line = t.substring(0,tEnd);
         t = t.substring(tEnd + 1);
         toVector.addElement(line);
         File home = new File(".");
         String mailsVerzeichnis = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         mySendman = new Sendman(mailVector, toVector, index.subject,
         ailsAnzeig               mySetup, this);
         mySendman.start();
         mailIndexVector.removeElement(index);
         break Block1;
    if(i == mailIndexVector.size())
    fromOutbox = false;
    treeNewSign();
    public void partion(String cmd){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         index.folder = cmd.substring(13).toString();
         treeNewSign();
    else
    meldung("No mails to partion!");
    public void SetupOpen(){
    if (mySetup.savePassword == false)
    mySetup.pTf.setText("");
    mySetup.setVisible(true);
    mySetup.aTf.requestFocus();
    public void addressbookOpen(){
    myAddressBook.setVisible(true);
    myAdressBook.tree.requestFocus();
    public void creatorOpen(){
    myCreator.setVisible(true);
    myCreator.tfTo.requestFocus();
    public void actionPerformed(ActionEvent event){
    Object obj = event.getSource();
    if (obj instanceof JMenuItem){
    String cmd = event.getActionCommand();
    if (cmd.equals("New fetched")){
         mailsfetch();
    else if (cmd.equals("Written new mails")) {
         creatorOpen();
    else if (cmd.equals("Reply")) {
         reply();
    else if (cmd.equals("Forward")) {
         forward();
    else if (cmd.equals("Outbox")) {
         sendOutbox();
    else if (cmd.equals("Delete")) {
         delete();
    else if ((cmd.length() >13) &&
         (cmd.substring(0,13).equals("Sorting-"))){
         sorting(cmd);
    else if (cmd.equals("Using Addressbook")){
         addressbookOpen();
    else if (cmd.equals("Filter working")){
         filterOpen();
    else if (cmd.equals("New Order")){
         myFixTask.tf.setText("");
         myFixTask.setVisible(true);
         myFixTask.tf.requestFocus();
    else if (cmd.equals("delete")){
         delete();
    else if ((cmd.length() >7) &&
         (cmd.substring(0,7).equals("nobody"))){
         if(viewSource == false){
         viewSource = true;
         menuNewSign();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
         else{
         viewSource = false;
         menuNeuZeichnen();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
    else if (cmd.equals("Setup")){
         SetupOpen();
    else if (obj instanceof JButton){
    String cmd = event.getActionCommand();
    if (cmd.equals("aga")){
         mailsHolen();
    else if (cmd.equals("Creator Open")){
         creatorOpem();
    else if(cmd.equals("rep")){
         reply();
    else if(cmd.equals("fwd")){
         forward();
    else if(cmd.equals("Setup Open")){
    SetupOpen();
    else if(cmd.equals("adr")){
         addressbookOpen();
    else if(cmd.equals("delete")){
         delete();
    else if(cmd.equals("Information")){
         myInfo.setVisible(true);
         myInfo.b.requestFocus();
    private class myWindowListener extends WindowAdapter{
    public void windowClosing(WindowEvent event){
    end();
    private class myTreeSelectionListener implements TreeSelectionListener{
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsAnzeigen(index.mailId);
         index.read = "Yes";

    Some suggestions:
    1. as the others stated- you should really post specific questions rather than 1 huge ugly class!
    2. use code tags
    3. get a decent IDE- it would take about 1 minute to then see where the error is-
    4. the rrors were just misspelled 'synchronized' and missing argument ','
    5. Try not to make such huge classes!!- Try to follow certain coding "patterns"- like MVC- and not stick everything in 1 class- separate the functionality- it makes coding much easier!
    here is fixed code (at least gets rid of those last errors):
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{
      private Sendman mySendman;
      private Letterman myLetterman;
      public Writer myWrite;
      public Reader myReader;
      public Composer myComposer;
      private Setup mySetup;
      public Addressbook myAdressbook;
      private FixTask myFixTask;
      private Filter myFilter;
      private Info myInfo;
      public Vector mailIndexVector = new Vector();
      public Vector filterIndexVector = new Vector();
      public Vector folderVector = new Vector();
      private JPanel tArea, trae, icon, tField;
      private JTextArea ta;
      private JScrollPane view, treeScroll;
      private JTree tree;
      public JTextField tf;
      private JSplitPane split;
      private Dimension Size;
      private MailClient myMailClient;
      private String mailBody, subject, from;
      public boolean fromOutbox = false;
      public boolean viewSource = false;
      public static void main (String[] args) {
        MailClient myMailClient = new MailClient();
      public MailClient() {
        super("Mail-Client");
        ImageIcon linux = new ImageIcon("linux.gif");
        this.setIconImage(linux.getImage());
        icon = new JPanel();
        icon.setLayout(new FlowLayout(FlowLayout.LEFT));
        ImageIcon neu = new ImageIcon("getmail.gif");
        JButton neueMails = new JButton(neu);
        newMails.setActionCommand("Getting new Mails");
        newMails.addActionListener(this);
        newMails.setBorderPainted(false);
        newMails.setToolTipText("Getting new Mails");
        ImageIcon cr = new ImageIcon("creator.gif");
        JButton creator = new JButton(cr);
        creator.setActionCommand("Creator open");
        creator.addActionListener(this);
        creator.setBorderPainted(false);
        creator.setToolTipText("Creator open");
        JButton rep = new JButton(new ImageIcon("reply.gif"));
        rep.setActionCommand("rep");
        rep.addActionListener(this);
        rep.setBorderPainted(false);
        rep.setToolTipText("Reply");
        JButton fwd = new JButton(new ImageIcon("fwd.gif"));
        fwd.setActionCommand("fwd");
        fwd.addActionListener(this);
        fwd.setBorderPainted(false);
        fwd.setToolTipText("Forward");
        JButton ein = new JButton(new ImageIcon("settings.gif"));
        ein.setActionCommand("settings open");
        ein.addActionListener(this);
        ein.setBorderPainted(false);
        ein.setToolTipText("Setting open");
        JButton adr = new JButton(new ImageIcon("adressbook.gif"));
        adr.setActionCommand("adr");
        adr.addActionListener(this);
        adr.setBorderPainted(false);
        adr.setToolTipText("Addressbook");
        JButton lo = new JButton(new ImageIcon("trash.gif"));
        lo.setActionCommand("trash");
        lo.addActionListener(this);
        lo.setBorderPainted(false);
        lo.setToolTipText("trash");
        JButton in = new JButton(new ImageIcon("info.gif"));
        in.setActionCommand("Information");
        in.addActionListener(this);
        in.setBorderPainted(false);
        in.setToolTipText("Information");
        icon.add(newMails);
        icon.add(creator);
        icon.add(rep);
        icon.add(fwd);
        icon.add(set);
        icon.add(adr);
        icon.add(lo);
        icon.add(in);
        Vector h1 = myLeser.lese("Summary.4on");
        for(int i=0; i<h1.size(); i+=7){
          String id = h1.elementAt(i).toString();
          String fo = h1.elementAt(i+1).toString();
          String su = h1.elementAt(i+2).toString();
          String fr = h1.elementAt(i+3).toString();
          String to = h1.elementAt(i+4).toString();
          String da = h1.elementAt(i+5).toString();
          String re = h1.elementAt(i+6).toString();
          MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
          mailIndexVector.addElement(index);
        Vector h2 = myReader.read("Filter.4on");
        for(int j=0; j<h2.size(); j+=3){
          String fo = h2.elementAt(j).toString();
          String from = h2.elementAt(j+1).toString();
          String te = h2.elementAt(j+2).toString();
          FilterIndex index = new FilterIndex(fo, from, te);
          filterIndexVector.addElement(index);
        folderVector = myReader.read("Folder.4on");
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox")){
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
        baum.add("Center", treeScroll);
        MainMenu menuBar = new MainMenu(this, this);
        setJMenuBar(menuBar);
        setVisible(true);
      public void mailsFetcher() {
        myLetterman = new Letterman(this, mySetup);
        myLetterman.start();
      public void treeNewSign(){
        trae.remove(treeScroll);
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox"))
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        trae.add("Center", treeScroll);
        trae.repaint();
        setVisible(true);
      public void menuNewSign(){
        setJMenuBar(new MainMenu(this, this));
        setVisible(true);
      public String fromFilter (String t){
        String myFrom = "";
        int start, end;
        int a = t.indexOf("From:");
        if (a != -1){
          start = a + 6;
          ende = t.indexOf("\n",start);
          myFrom = t.substring(start,end);
        return myFrom;
      public String toFilter (String t){
        String myTo = "";
        int start, e1, e2, end;
        int a = t.indexOf("To:");
        if (a != -1){
          start = a + 4;
          end = t.indexOf("\n",start);
          myTo = t.substring(start,end);
          e1 = end + 1;
          if(t.substring(e1,e1+1).equals(" ")){
            while(t.substring(e1,e1+1).equals(" ")){
              while(t.substring(e1,e1+1).equals(" "))
                e1++;
              e2 = t.indexOf("\n",e1);
              myTo += " " + t.substring(e1,e2);
              e1 = e2 + 1;
        return myTo;
      public String dateFilter (String t){
        String myDate = "";
        int start, end;
        int a = t.indexOf("Date:");
        if (a != -1){
          start = a + 6;
          end = t.indexOf("\n",start);
          myDate = t.substring(start,end);
        return myDate;
      public String subjectFilter (String t){
        String mySubject = "";
        int start, end;
        int a = t.indexOf("Subject:");
        if (a != -1){
          start = a + 9;
          end = t.indexOf("\n",start);
          mySubject = t.substring(start,end);
        return mySubject;
      public String mailFilter (String t){
        String myMail = "";
        int start = 0, end = t.length();
        start = t.indexOf("\n\n") + 2;
        if (start != 1){
          int a = t.indexOf("\n\n" ,start);
          if (a != -1){
            if (t.indexOf(".",a+2) == a+2)
              if (t.indexOf("\n",a+3) == a+3)
                start = a;
          myMail = t.substring(start,end);
        return myMail;
      public void mailsRemark(String file){
        String mail = "", t = "";
        Vector mailVector = myReader.read(file);
        for (int i=0; i<mailVector.size(); i++)
          t += (String)mailVector.elementAt(i) + "\n";
        from = fromFilter(t);
        subject = subjectFilter(t);
        mailBody = mailFilter(t);
        mail += "Subject: " + subject + "\n";
        mail += "Date: " + dateFilter(t) + "\n";
        mail += "From: " + from + "\n";
        mail += "To: " + toFilter(t) + "\n";
        mail += "\n" + mailBody;
        if(viewSource == true)
          ta.setText(t);
        else
          ta.setText(mail);
      public synchronized void mails(String t){
        Status myStatus = new Status(this,t);
        myStatus.start();
      public void delete(){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          if(node.isLeaf()){
            Object nodeInfo = node.getUserObject();
            if(nodeInfo instanceof MailIndex){
              MailIndex index = (MailIndex)nodeInfo;
              mailIndexVector.removeElement(index);
              int count = 0;
              for(int j=0; j<mailIndexVector.size(); j++){
                MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
                String id = index1.mailId;
                if(id.equals(index.mailId))
                  count++;
              if(count == 0){
                File home = new File(".");
                String mailsRemark = "." + home.separator + "data";
                File datei = new File(mailsRemark, index.mailId);
                datei.delete();
              treeNewSign();
              menuNewSign();
            else{
              String t = (String)nodeInfo;
              boolean toDelete = false;
              for (int i=0; i<folderVector.size(); i++){
                if(folderVector.elementAt(i).equals(t)){
                  folderVector.removeElement(t);
                  konnteLoeschen = true;
              if(toDelete == false){
                message("This folder can not be deleted!");
              treeNewSign();
          else
            message("Folder is not Empty! Please delete Your mails.");
        else
          message("No Mails where selected to be deleted!");
      public void forward(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfSb.setText("Fwd to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void reply(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfTo.setText(from);
          myCreator.tfSb.setText("Reply to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void end(){
        String h = "";
        for (int i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          h += index.mailId + "\n";
          h += index.folder + "\n";
          h += index.subject + "\n";
          h += index.from + "\n";
          h += index.to + "\n";
          h += index.date + "\n";
          h += index.read + "\n";
        myWriter.writer(h,"Summary.4on");
        String w = "";
        for (int l=0; l<filterIndexVector.size(); l++){
          FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
          w += index.folder + "\n";
          w += index.from + "\n";
          w += index.text + "\n";
        myWriter.write(w,"Filter.4on");
        String k = "";
        for(int j=0; j<folderVector.size(); j++)
          k += folderVector.elementAt(j).toString() + "\n";
        myWriter.writer(k,"Folder.4on");
        String t = "";
        for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
          AddressIndex aindex =
                   (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
          t += aindex.alias + "\n";
          t += aindex.email + "\n";
        myWriter.write(t,"Address.4on");
        setVisible(false);
        dispose();
        System.exit(0);
      public void filterOpen(){
        boolean test = false;
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof String){
            myFilter.folder = (String)nodeInfo;
            for(int i=0; i<filterIndexVector.size(); i++){
              FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
              if(h.folder.equals(nodeInfo)){
                myFilter.index = h;
                test = true;
                if(h.from.equals("")){
                  myFilter.box1 = false;
                  myFilter.fTf.setText("");
                  myFilter.fBox.setSelected(false);
                  myFilter.fTf.setEditable(false);
                else{
                  myFilter.box1 = true;
                  myFilter.fTf.setText(h.from);
                  myFilter.fBox.setSelected(true);
                  myFilter.fTf.setEditable(true);
                if(h.text.equals("")){
                  myFilter.box2 = false;
                  myFilter.tTf.setText("");
                  myFilter.tBox.setSelected(false);
                  myFilter.tTf.setEditable(false);
                else{
                  myFilter.box2 = true;
                  myFilter.tTf.setText(h.text);
                  myFilter.tBox.setSelected(true);
                  myFilter.tTf.setEditable(true);
                break;
          myFilter.setVisible(true);
          myFilter.fBox.requestFocus();
        else
          meldung("No selection");
      public void sendOutbox(){
        fromOutbox = true;
        int i;
        Block1:
        for(i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          if(index.folder.equals("Outbox")){
            Vector mailVector = myReader.read(index.mailId);
            Block2:
            for(int j=0; j<mailVector.size(); j++){
              String m = (String)mailVector.elementAt(j);
              if(m.indexOf("Subject:") != -1){
                for(int k=0; k<=j+1; k++){
                  mailVector.removeElementAt(0);
                break Block2;
            Vector toVector = new Vector();
            int tEnd = 1;
            String line = "";
            String t = index.to;
            while (tEnd != -1){
              tEnd = t.indexOf(", ");
              if (tEnd == -1)
                line = t;
              else
                line = t.substring(0,tEnd);
              t = t.substring(tEnd + 1);
              toVector.addElement(line);
            File home = new File(".");
            String mailsVerzeichnis = "." + home.separator + "data";
            File datei = new File(mailsRemark, index.mailId);
            datei.delete();
            mySendman = new Sendman(mailVector, toVector, index.subject,ailsAnzeig, mySetup, this);
            mySendman.start();
            mailIndexVector.removeElement(index);
            break Block1;
        if(i == mailIndexVector.size())
          fromOutbox = false;
        treeNewSign();
      public void partion(String cmd){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            index.folder = cmd.substring(13).toString();
            treeNewSign();
        else
          meldung("No mails to partion!");
      public void SetupOpen(){
        if (mySetup.savePassword == false)
          mySetup.pTf.setText("");
        mySetup.setVisible(true);
        mySetup.aTf.requestFocus();
      public void addressbookOpen(){
        myAddressBook.setVisible(true);
        myAdressBook.tree.requestFocus();
      public void creatorOpen(){
        myCreator.setVisible(true);
        myCreator.tfTo.requestFocus();
      public void actionPerformed(ActionEvent event){
        Object obj = event.getSource();
        if (obj instanceof JMenuItem){
          String cmd = event.getActionCommand();
          if (cmd.equals("New fetched")){
            mailsfetch();
          else if (cmd.equals("Written new mails")) {
            creatorOpen();
          else if (cmd.equals("Reply")) {
            reply();
          else if (cmd.equals("Forward")) {
            forward();
          else if (cmd.equals("Outbox")) {
            sendOutbox();
          else if (cmd.equals("Delete")) {
            delete();
          else if ((cmd.length() >13) &&
                   (cmd.substring(0,13).equals("Sorting-"))){
            sorting(cmd);
          else if (cmd.equals("Using Addressbook")){
            addressbookOpen();
          else if (cmd.equals("Filter working")){
            filterOpen();
          else if (cmd.equals("New Order")){
            myFixTask.tf.setText("");
            myFixTask.setVisible(true);
            myFixTask.tf.requestFocus();
          else if (cmd.equals("delete")){
            delete();
          else if ((cmd.length() >7) &&
                   (cmd.substring(0,7).equals("nobody"))){
            if(viewSource == false){
              viewSource = true;
              menuNewSign();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
            else{
              viewSource = false;
              menuNeuZeichnen();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
          else if (cmd.equals("Setup")){
            SetupOpen();
        else if (obj instanceof JButton){
          String cmd = event.getActionCommand();
          if (cmd.equals("aga")){
            mailsHolen();
          else if (cmd.equals("Creator Open")){
            creatorOpem();
          else if(cmd.equals("rep")){
            reply();
          else if(cmd.equals("fwd")){
            forward();
          else if(cmd.equals("Setup Open")){
            SetupOpen();
          else if(cmd.equals("adr")){
            addressbookOpen();
          else if(cmd.equals("delete")){
            delete();
          else if(cmd.equals("Information")){
            myInfo.setVisible(true);
            myInfo.b.requestFocus();
      private class myWindowListener extends WindowAdapter{
        public void windowClosing(WindowEvent event){
          end();
      private class myTreeSelectionListener implements TreeSelectionListener{
        public void valueChanged(TreeSelectionEvent e) {
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            mailsAnzeigen(index.mailId);
            index.read = "Yes";
    }

  • Trouble compiling for printed documentation

    hello, i am having trouble compiling a new document layout i
    have created, i have followed peter grainges instructions on his
    website but it always fails to generate straight away. Im using
    Robohelp x5 with word 2000, does anyone have any ideas?
    thanks steve

    Steve
    Was RH installed on the PC you are using with you logon or
    that of the person whose job you have taken over? It sounds very
    much like the latter and this is exactly what I would expect to
    happen.
    Try creating a new project with just a couple of topics and
    printing from that. It will likely also fail. If it does that
    pretty much confirms my theory. Uninstall and reinstall RH with
    your logon and with admin rights attached and the problem will
    likely go away.

  • Trouble compiling a stored procedure

    Hello, I have trouble compiling a stored procedure. I include part of the code because I think the key problem is illustrated in these lines:
    date1 is declared as a DATE.
    index_value2 NUMBER;
    BEGIN
    date1 := (select sysdate from dual);
    index_value2 := (select index_value from tmsdat.a_index_values where price_date < (SELECT sysdate -180
       FROM dual) and price_date > (SELECT sysdate -210
       FROM dual));
    [\code]
    The problem seems to be that a more complex syntax is included in the allocation statement (:=), can that be the case? That is, no select etc??
    How is this solved?
    Any help much appreciated!
    best regards
    Harald                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Well, actually WhiteHat´s magic did the trick, but two errors:
    temp := (select (to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) as result
       from dual);
    [\code]
    this line generates problems but I think the approach is the same maybe, that is:
    select to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) into temp as result frmo dual
    Further, some error about encountering end of line?
    END CONVERT_MARKET_INDEX;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Trouble compiling package with JDK 1.4

    Hi,
    I just installed JDK 1.4 on a new machine, now I have trouble running compile scripts that used to work on my old machine. The old an new are configured with Win 2000. The following compiles without problem:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\MyClass.java"
    Changing this statemetn to:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\*.java"
    should compile all Java files in 'some package', instead what I get is the following error message:
    error: cannot read: c:\.....\com\...\some package\*.java
    The documentation says that this should still work. Anyone aware of changes in 1.4 that could cause this problem?
    Thanks for responding

    As a work-around, you can use some Unix-styled shell (that is, command processor) which expands the *.expression into the list of the matching file names, thus releaving javac from this task. (Caveat: directory names with a space inside will cause problems.)
    I can recommend the Cygnus package (including the command processor "bash") or "MinGW", the Minimalist GNU For Windows with its simpler sh:
    http://www.mingw.org/
    ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/

Maybe you are looking for