Using java server in linux..

Hello folks glad to be back! Heres my question..
I created a java chat server using windows and I'm about to run it on a linux machine from 8-9pm daily..
In windows when I want to close the server down, I simply exit the command prompt.. But how do I do this in linux? I can't type anything while the server is running.. So how do I exit?

Hello folks glad to be back! Heres my question..
I created a java chat server using windows and I'm
about to run it on a linux machine from 8-9pm
daily..
In windows when I want to close the server down, I
simply exit the command prompt.. But how do I do this
in linux? I can't type anything while the server is
running.. So how do I exit?you could type something if you put an & after you run your prog from the command-line

Similar Messages

  • How to use java awt in linux

    I have few questions about linux. Is there any one who can give me the correct o/p of the following errorecode
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
    at java.awt.Window.init(Window.java:231)
    at java.awt.Window.<init>(Window.java:275)
    at java.awt.Frame.<init>(Frame.java:401)
    at java.awt.Frame.<init>(Frame.java:366)
    at jxml1.<init>(jxml1.java:14)
    at jxml1.main(jxml1.java:78)
    $ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
    at java.awt.Window.init(Window.java:231)
    at java.awt.Window.<init>(Window.java:275)
    at java.awt.Frame.<init>(Frame.java:401)
    at java.awt.Frame.<init>(Frame.java:366)
    at jxml1.<init>(jxml1.java:14)
    at jxml1.main(jxml1.java:78)
    $
    ^C$

    Hi,
    Most often than not this is related to xhost in unix-shell systems.
    Try the following
    $setenv DISPLAY :0
    $xhost +
    or simply
    $xhost +If you need more security add just your user after xhost + command
    Hope this helps
    Aviroop

  • Loading images using java server page

    I am using NetBeans 4.1 with the latest versions of both the SDK and j2EE sdk.
    OK, all of the JSP and servlets I've done so far have been text only. I am now having trouble loading images.
    I used <img src="images/IMG_0072.jpg" height="50%" width="50%"> to try to load the image, but it isn't working. I have tried various things such as moving the images directory (between having the directory in the same folder as the jsp source files and in the WEB-INF folder)and placing a '/' at the beginning of the path, but to no avail. On viewing the http monitor in Netbeans, I saw no surprises in the request data.
    I have verified that the required images are in the right places, including the war file that Netbeans creates.
    Now I am wondering if the fact that Netbeans puts all the files for the distribution into a war file is complicating my life here.
    It seems to me that my use of the html img tag should not be affected by whether I am using JSP or servlets or plain old html, since in all cases the result sent to the browser is ordinary html (possibly with other, client side stuff that isn't relevant here).
    Can anyone tell me how to solve this particular problem?
    Thanks,
    Ted

    Thanks for the suggestions.
    I tested both, but no joy. I'll have to double check my html.
    I observe that neither test had any impact on the behaviour of the web application. The URI was unaffected, and I still get the 404 not found error. Since I know the image files are there, I don't know why the server isn't finding them, unless I have to do something special because NetBeans 4.1 is putting them into the web applications war file. While I'd expect this to be a faq, as I don't believe I am the first to run into trouble with this, it is an important issue having implications for use of development environments and deploying web applications once development and testing have progressed to the point where deployment is warranted.
    Any other ideas?
    Thanks again,
    Ted

  • How to send mail using Java Server Pages(JSP)

    Plz reply me the code for it
    and send me mail

    megha_bhagat82: You've posted 3 ill-defined questions in the wrong forum in 4 minutes on the day you registered: I suggest you take a very close look at http://www.catb.org/~esr/faqs/smart-questions.html ... I usually avoid posting that URL to often, as it can be considered rude, but I think in your case it's appropriate.

  • How can I use Java 3D in Linux ?

    As the subject.

    http://www.blackdown.org/
    1) Download & install THEIR latest J2SDK distribution (1.4.1);
    2) Download & install THEIR latest Java3D SDK (1.3.1 beta).
    Enjoy!

  • What to in SLD (Business and Technical sys)for Java server Proxy?

    I am using java server proxy for communicating with XI.
    I have HTTP as sender comm channel and XI as Receiver comm channel and this is the error i got in SXMB_MONI.
    What to give in SLD for java Server proxy, i have given Web as Java.....is this what the error says.Help is highly appreciated.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_Folder_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Während des Anwendungs-Mappings com/sap/xi/tf/_Folder_MM_ wurde eine com.sap.aii.utilxi.misc.api.BaseRuntimeException geworfen: Fatal Error: com.sap.engine.lib.xml.parser.Parser~.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    =====================
    Thanks

    Hi,
    Refer this configuration guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ac6de690-0201-0010-54ac-8923089dcc97
    Refer these too:
    Java Proxy Inside Story Part I
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    Java Proxy Inside Story Part II
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    Regards
    suraj
    Message was edited by: S.R.Suraj
    Message was edited by: S.R.Suraj

  • How to play movie file using java tv

    hi,
    i am trying to play movie file(.mov or mpg or mp3) using java tv in linux plotform and also using jmf jar.
    problem is while running appear black screen and getting exception or errors like
    Unable to handle format: ima4, 480x320, FrameRate=25.0, Length=460800 0 extra bytes
    Thank in adv

    Well...
    I don't know how to load and play a video with JavaTV. But I've seen some posts telling that .mpg files aren't accepted by the JavaTV.
    Some people said that I had to use .avi files and these .avi files, if they were converted from a .mpg file, must had been converted with the Cinepack technology, but I don't know how to do this.
    If you find out how to load and play a video, I'd like to know, please send me an email or access my page and post there in the comments, so I can continue doing my application with a video.
    []'s
    Cauane B.S.
    Computer Science
    CNPq Researcher - TVDi
    http://cauanebs.blogspot.com
    UCPel - Pelotas - RS

  • Setting Up a Java Web Server on Linux

    Greetings,
    After a lot of reading, I've decided to learn Java server-side technologies (I already know Java (desktop)
    but with little experience) in order to develop my database driven dynamic website projects.
    However, I'm completed lost between the hundreds of acronyms related to Java and the "thousands" of technologies involved.
    Google hadn't help me understand what they really are and how they relate with each other.
    Even though is easy to find what they stand for and some faqs/descriptions, it hasn't been enought to clear my mind.
    I want my webserver application to do, among other things, the following:
    Retrieve Data from a database, do generate dynamic html files.
    Story Data on the database, from html forms.
    Send automaticly emails for multiple users. (newsletter for example)
    E-Commerce.
    Html graber/parser (I don't know if this is the right word, I mean a program that for example, goes to a URL with an html
    table, and stores that information in a database table, as long as the format didn't change).
    Real Time Chat feature.
    Database connection pooling, caching, and other important optimizations.
    I'm not asking for how to develop or configure this features nor what components and programs, must be installed.
    At the moment, I only want to know how to set up a Java solution that will support them when they are needed.
    *** Linux ***
    I want to set up my webserver on a linux distribution.
    In that respect, I don't know if I should choose RedHat or Fedora Core.
    I've heard that fedora is better for a webserver (having in mind that Red Hat Enterprise AS/ES aren't free).
    But I've read in several sun turorials/webpages references to RedHat (on a J2EE context).
    So I'm wondering if is better to go for Fedora or RedHat. Are there pros & cons? They equally support Java?
    *** Technologies ***
    Then in starts the acronyms problem.
    What do I need to install, in what order, for what?
    Some aconyms and technologies, I have read about but don't fully understand are the following:
    Apache
    J2EE
    J2EE 1.4 SDK
    SUN Java System Application Server Platform Edition 8
    J2SE 1.4.2 SDK
    SUN Java Enterprise System
    Tomcat
    Struts
    Cocoon
    JBoss
    I already know J2EE is only a specification. What implements that specification? Sun Java System Application Server?
    J2SE SDK? or Tomcat?
    What is the role of each technology, namely Apache, Tomcat, Sun Application Server?
    What is the Sun Java Enterprise System?
    How do Struts, Cocoon, JBoss relate to Java?
    Which of these technologies are mutually exclusive (analogous)?
    *** Doubts ***
    Then, I have some doubts that are keeping me from starting to study seriously the important techonologies, because I don't
    want to lose lot's of time and effort learning them to after a dillusion start everything again with PHP (the language
    which make me think and read a lot before going for Java). To keep this from happening, I would like to know the following:
    I want to use Java for developing websites with commercial/profitable use for my company, in some throught e-commerce,
    and in other by banners. I want to do everything by the book, with required licenses.
    ------ Java is Free?
    Is Java Completely Free or it might be possible that at a certain point, when I need some component or library,
    multi-machine webserver, performance or security for high-traffic I will see "buy now" instead of "download now"?
    For what they may "ask for money"? and what are the disavantages if I can't buy?
    For example, "Java System Application Server Standard Edition 8.1 2005Q1" and
    "Java System Application Server Enterprise Edition 8.1 2005Q1" cost $2.000 and $10.000 respectively. That is money.
    (http://www.sun.com/software/products/appsrvr/index.xml). What are the disavantages if stick to the free edition?
    Features like (from sun site)
    Standard Edition:
    Extends the capabilities of the Platform Edition to provide secure, remote, multi-instance, multi-machine management.
    It is aimed at high-volume applications and Web services.
    Enterprise Edition:
    Further extends the capabilities of the Standard Edition to provide continuous availablity for applications and
    Web services. It is aimed at business critical, high value applications and Web services.
    Suppose I achive lots of traffic and I keep the free platform edition.
    I won't be able to have a multi-machine webserver set up correctly?
    What are the drawbacks? How big are the performance penalties?
    ------ Technologies Availability
    Finnaly, I have the idea (I don't know if it's accurate) that there are Sun versions and Open-Source Free versions
    of doing or supporting the same Java related thing.
    Despite the way I choose to set up a Java webserver, I will always have all J2EE techonolies like:
    Java API for XML-Based RPC (JAX-RPC), JavaServer Pages, Java Servlets, Enterprise JavaBeans components,
    J2EE Connector Architecture, J2EE Management Model, J2EE Deployment API, Java Management Extensions (JMX),
    J2EE Authorization Contract for Containers, Java API for XML Registries (JAXR), Java Message Service (JMS),
    Java Naming and Directory Interface (JNDI), Java Transaction API (JTA), CORBA, and JDBC data access API.
    I really appreciate some help. I could learn the basics of all this "stuff" before asking. But the point why I'm asking
    is precisely not starting to learn something I may won't use. Obviously, I will have to make a lot of reading during maybe
    months before writing the first line of code of my projects, but being certain that it will fit my needs.
    I will be very thankful if you can enlightme in my fedora/redhat, setup, free/cost and technologies avaibility issues.
    Thanks Beforehand,
    Pedro Vaz

    Apache is a free Web-server.
    Tomcat is a servlet (and JSP) container. It can be stand-alone or can be used together with a Web server (like Apache).
    J2EE's scope is much wider than the servlet stuff, but a standalone Tomcat is a good starting point to servlets and JSP.
    One of our "real-world" applications is run by a standalone Tomcat using POI and Velocity. I did not regret this architectural decision.

  • Archiving File on Shared Folder in Linux using java code

    Hi All,
    I have a requirement wherein I have to ftp a file (Feed.txt) from windows FTP server to Linux machine1 and archive the same file (with timestamp suffixed on file name like Feed.txt_22April) on Linux Machine2. I am
    trying to achieve this through java code. I am able to ftp the file(Feed.txt) from windows ftp server to Linux machine1 /opt/ftproot directory and archiving the same file under /opt/ftproot/archive directory of Linux
    Machine1 with timestamp suffixed on file name.
    My archiving requirement is still not achieved. So, for that I created a shared folder “/temp/shared” on Linux Machine2 and mounted the /temp/shared folder of Linux Machine2 on /opt/ftproot/archive folder of
    Linux Machine1 using following command:
    # mount LinuxMachine2: /temp/shared /opt/ftproot/archive
    Note: I have given full permission on both the folders.
    Logically, archiving the Feed.txt with timestamp in it name under /opt/ftproot/archive folder should create the file in /temp/shared folder of Linux Machine2. But instead of archiving the file on
    /opt/ftproot/archive folder, it archive the file on /opt/ftproot folder.
    In my java code, I have specified copyDir as “/opt/ftproot” and archiveDir as /opt/ftproot/archive”.
    The code is being run from Linux Machine1 as a schedule task.
    Please help.
    PFB the code snippet:
    package com.ftp;
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    import org.apache.commons.net.ftp.*;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Date;
    public class FTPService extends SchedulerBaseTask {
         private static String targetDir="";
         private static String archiveDir="";
    public void init() {
    public void execute() {
    try {
    String server = "Machine1
    String username = "username";
    String password = "password";
    String sourceDir = "C:\\Inetpub\\ftproot\\temp.txt";
    //String archiveDir = "/home/ftproot1";
    targetDir = getAttribute("Target Directory");
    FTPClient ftp = new FTPClient();
    * Connect to the server
    ftp.connect(server);
    ftp.login(username, password);
    System.out.println("Connected to " + server + ".");
    String[] names = ftp.listNames();
    for (String name : names) {
    System.out.println("Name = " + name);
    * Get all file names that are present in the current working directory
    FTPFile[] files = ftp.listFiles();
    String fileName = "";
    for (int i = 0; i < files.length; i++) {
    if (files.isFile()) {
    System.out.println("\t" + files[i].getName());
    File file = new File(targetDir + File.separator +
    files[i].getName());
    FileOutputStream fos = new FileOutputStream(file);
    * Copy the file to target system
    ftp.retrieveFile(files[i].getName(), fos);
    fos.close();
    fileName = files[i].getName();
    ftp.logout();
    ftp.disconnect();
    System.out.println("End of FTP....");
    System.out.println("Calling fileCopy()");
    System.out.println("Target Directory"+targetDir);
    fileCopy(fileName,targetDir);
    } catch (Exception e) {
    e.printStackTrace();
    public static String getDate() {
    String sdate = "";
    try {
         System.out.println("Inside getDate()");
    Calendar date = Calendar.getInstance();
    SimpleDateFormat formatter = new SimpleDateFormat(
    "yyyy-MM-dd HH:mm:ss.0");
    sdate = formatter.format(date.getTime());
    } catch (Exception e) {
    return sdate;
    public void moveFile(String t) {
         try{
         System.out.println("inside moveFile");
    System.out.println("Moving Files");
    File fro = new File(t);
    archiveDir = getAttribute("Archive Directory");
    System.out.println("Archiving Directory"+archiveDir);
    File to = new File(archiveDir);
    boolean archived = fro.renameTo(new File(to, fro.getName()));
    if (archived) {
    System.out.println("FileArchived");
              /*String cmd="mv" +" "+t +" "+ "/home/ftproot/archive";
              System.out.println("Archive Directory"+archiveDir);
              System.out.println("Move Command"+cmd);
              Process SshProc =      (Runtime.getRuntime()).exec(cmd);
    } catch (Exception e) {
    e.printStackTrace();
    public void fileCopy(String filename,String Directory) {
         try{
         //String ifile="/home/ftproot/sunny.txt";
              String ifile=targetDir+"/"+filename;
         String ofile=ifile+"_"+getDate();
         File f1 = new File(ifile);
         File f2 = new File(ofile);
         InputStream in = new FileInputStream(f1);
         //For Append the file.
    //      OutputStream out = new FileOutputStream(f2,true);
         //For Overwrite the file.
         OutputStream out = new FileOutputStream(f2);
         byte[] buf = new byte[1024];
         int len;
         while ((len = in.read(buf)) > 0){
         out.write(buf, 0, len);
         in.close();
         out.close();
         System.out.println("File copied.");
         moveFile(ofile);
         }catch(Exception e)
         System.out.println("File copied."+e);
    Cheers,
    Sunny

    sunnyajmera wrote:
    Please help.If it was me....
    - You are connecting to a ftp server. I am guessing you didn't write that.
    - Get a flexible ftp client, there are many but make sure it shows you the ftp result codes.
    - Figure out how and if the ftp server will do what you want.
    If it does do what you want then ftp client will let you do the same thing.
    If that ftp server doesn't allow you to do it then you must do one of the following
    - Find a different server
    - Change the requirements
    - Find a way to impose the requirements using a tool in addition to ftp like some command executed through telnet.

  • Java Server crash in Debian Linux

    Debian Linux
    Pentium 4 2.8
    1024 Ram
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)
    The Java Server crash after from Begin or after 1-2 hours
    im user to java server no develope and no have gnosis
    please help me. what is problem? :(
    any solution to fix?
    try to reinstall operator system but same problem
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb777edb2, pid=26766, tid=2384333744
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0xa2db2]
    # An error report file with more information is saved as hs_err_pid26766.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    hs log file
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGILL (0x4) at pc=0xb770650a, pid=27377, tid=2384006064
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x7750a]
    --------------- T H R E A D ---------------
    Current thread (0x080c7fe0): JavaThread "CompilerThread0" daemon [_thread_in_native, id=27382]
    siginfo:si_signo=4, si_errno=0, si_code=2, si_addr=0xb770650a
    Registers:
    EAX=0xb7a1bac8, EBX=0xb7a16aec, ECX=0x080ce380, EDX=0x00000028
    ESP=0x8e18fa50, EBP=0x8e18fb08, ESI=0x08137530, EDI=0x00000027
    EIP=0xb770650a, CR2=0x00000000, EFLAGS=0x00010206
    Top of Stack: (sp=0x8e18fa50)
    0x8e18fa50: 080e165c 080e152c 8e18fa98 08137250
    0x8e18fa60: 8e18fbe0 080e1530 080ce5a0 08136f90
    0x8e18fa70: 08137430 00007ff4 8e18fa98 08137210
    0x8e18fa80: 08137210 0000004b 8e18fae8 b794ab6a
    0x8e18fa90: b7a16aec 08137488 8e18fac8 b77563fd
    0x8e18faa0: 00000004 8e18fab0 00000000 b76ba7ba
    0x8e18fab0: b7a16aec 080ce6b4 8e18fae8 b7a16aec
    0x8e18fac0: 08137488 8e18fbd0 8e18fb08 b7756836
    Instructions: (pc=0xb770650a)
    0xb77064fa: 04 8b 10 42 89 10 8b 83 24 0a 00 00 10 01 08 ff
    0xb770650a: ff ff ff c7 ff ff 00 00 00 00 c7 46 00 83 00 00
    Stack: [0x8e111000,0x8e191000), sp=0x8e18fa50, free space=506k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x7750a]
    V [libjvm.so+0x79c09]
    V [libjvm.so+0x79f4c]
    V [libjvm.so+0x83f49]
    V [libjvm.so+0x84944]
    V [libjvm.so+0x852c2]
    V [libjvm.so+0x6be52]
    V [libjvm.so+0x6c559]
    V [libjvm.so+0x6cc01]
    V [libjvm.so+0x6d0a7]
    V [libjvm.so+0x6dc0b]
    V [libjvm.so+0x109a6e]
    V [libjvm.so+0x1093f3]
    V [libjvm.so+0x2f9da6]
    V [libjvm.so+0x2f43d3]
    V [libjvm.so+0x28bbe8]
    C [libpthread.so.0+0x5ced]
    Current CompileTask:
    HotSpot Client Compiler: 72 b java.util.AbstractCollection.toArray([Ljava/lang/Object;)[Ljava/lang/Object; (75 bytes)
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x080c9540 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=27383]
    =>0x080c7fe0 JavaThread "CompilerThread0" daemon [_thread_in_native, id=27382]
    0x080c7100 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=27381]
    0x080bcbc8 JavaThread "Finalizer" daemon [_thread_blocked, id=27380]
    0x080bbf48 JavaThread "Reference Handler" daemon [_thread_blocked, id=27379]
    0x0805c9c8 JavaThread "main" [_thread_in_vm, id=27377]
    Other Threads:
    0x080b9298 VMThread [id=27378]
    0x080ca9e0 WatcherThread [id=27384]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 240K [0x8e5c0000, 0x8e660000, 0x90d20000)
    eden space 512K, 44% used [0x8e5c0000, 0x8e5f8970, 0x8e640000)
    from space 64K, 21% used [0x8e650000, 0x8e6537a0, 0x8e660000)
    to space 64K, 0% used [0x8e640000, 0x8e640000, 0x8e650000)
    tenured generation total 1408K, used 431K [0x90d20000, 0x90e80000, 0xae5c0000)
    the space 1408K, 30% used [0x90d20000, 0x90d8bd70, 0x90d8be00, 0x90e80000)
    compacting perm gen total 8192K, used 3677K [0xae5c0000, 0xaedc0000, 0xb25c0000)
    the space 8192K, 44% used [0xae5c0000, 0xae957450, 0xae957600, 0xaedc0000)
    No shared spaces configured.
    Dynamic libraries:
    08048000-08057000 r-xp 00000000 03:02 6521931 /usr/lib/j2se1.4-sun/jre/bin/java
    08057000-08059000 rwxp 0000e000 03:02 6521931 /usr/lib/j2se1.4-sun/jre/bin/java
    08059000-08253000 rwxp 08059000 00:00 0 [heap]
    8d9b7000-8d9c8000 r-xp 00000000 03:02 6537244 /usr/lib/j2se1.4-sun/jre/lib/i386/libnet.so
    8d9c8000-8d9c9000 rwxp 00011000 03:02 6537244 /usr/lib/j2se1.4-sun/jre/lib/i386/libnet.so
    8d9c9000-8dc22000 r-xs 00000000 03:02 7766468 /root/lineage2server160/gameserver/l2j-gameserver.jar
    8dc22000-8dc89000 r-xs 00000000 03:02 7766471 /root/lineage2server160/gameserver/mysql-connector-java-3.1.10-bin.jar
    8dc89000-8dd01000 r-xs 00000000 03:02 7766462 /root/lineage2server160/gameserver/c3p0-0.9.0.4.jar
    8dd01000-8de28000 r-xs 00000000 03:02 7766467 /root/lineage2server160/gameserver/jython.jar
    8de28000-8de6d000 r-xs 00000000 03:02 7766461 /root/lineage2server160/gameserver/bsh-2.0.jar
    8de6d000-8deb4000 r-xs 00000000 03:02 7766466 /root/lineage2server160/gameserver/javolution.jar
    8deb4000-8dedf000 r-xs 00000000 03:02 7766460 /root/lineage2server160/gameserver/bsf.jar
    8dedf000-8deee000 r-xs 00000000 03:02 7766465 /root/lineage2server160/gameserver/ibmaio.jar
    8deee000-8df19000 r-xs 00000000 03:02 6522080 /usr/lib/j2se1.4-sun/jre/lib/ext/sunpkcs11.jar
    8df19000-8df40000 r-xs 00000000 03:02 6521992 /usr/lib/j2se1.4-sun/jre/lib/ext/sunjce_provider.jar
    8df40000-8e004000 r-xs 00000000 03:02 6521991 /usr/lib/j2se1.4-sun/jre/lib/ext/localedata.jar
    8e004000-8e011000 r-xs 00000000 03:02 6521990 /usr/lib/j2se1.4-sun/jre/lib/ext/ldapsec.jar
    8e011000-8e012000 ---p 8e011000 00:00 0
    8e012000-8e091000 rwxp 8e012000 00:00 0
    8e091000-8e094000 ---p 8e091000 00:00 0
    8e094000-8e111000 rwxp 8e094000 00:00 0
    8e111000-8e114000 ---p 8e111000 00:00 0
    8e114000-8e191000 rwxp 8e114000 00:00 0
    8e191000-8e194000 ---p 8e191000 00:00 0
    8e194000-8e211000 rwxp 8e194000 00:00 0
    8e211000-8e214000 ---p 8e211000 00:00 0
    8e214000-8e291000 rwxp 8e214000 00:00 0
    8e291000-8e294000 ---p 8e291000 00:00 0
    8e294000-8e311000 rwxp 8e294000 00:00 0
    8e311000-8e312000 ---p 8e311000 00:00 0
    8e312000-8e396000 rwxp 8e312000 00:00 0
    8e396000-8e3b2000 rwxp 8e396000 00:00 0
    8e3b2000-8e3b3000 rwxp 8e3b2000 00:00 0
    8e3b3000-8e49f000 rwxp 8e3b3000 00:00 0
    8e49f000-8e4a0000 rwxp 8e49f000 00:00 0
    8e4a0000-8e4b2000 rwxp 8e4a0000 00:00 0
    8e4b2000-8e4b4000 rwxp 8e4b2000 00:00 0
    8e4b4000-8e59f000 rwxp 8e4b4000 00:00 0
    8e59f000-8e5a3000 rwxp 8e59f000 00:00 0
    8e5a3000-8e5bf000 rwxp 8e5a3000 00:00 0
    8e5bf000-8e660000 rwxp 8e5bf000 00:00 0
    8e660000-90d20000 rwxp 8e660000 00:00 0
    90d20000-90e80000 rwxp 90d20000 00:00 0
    90e80000-ae5c0000 rwxp 90e80000 00:00 0
    ae5c0000-aedc0000 rwxp ae5c0000 00:00 0
    aedc0000-b25c0000 rwxp aedc0000 00:00 0
    b25c0000-b25c6000 r-xp 00000000 03:02 6537245 /usr/lib/j2se1.4-sun/jre/lib/i386/libnio.so
    b25c6000-b25c7000 rwxp 00005000 03:02 6537245 /usr/lib/j2se1.4-sun/jre/lib/i386/libnio.so
    b25c7000-b25ca000 rwxp b25c7000 00:00 0
    b25ca000-b2647000 rwxp b25ca000 00:00 0
    b2647000-b26ef000 rwxp b2647000 00:00 0
    b26ef000-b4647000 rwxp b26ef000 00:00 0
    b4647000-b4eb7000 r-xs 00000000 03:02 6521980 /usr/lib/j2se1.4-sun/jre/lib/charsets.jar
    b4eb7000-b4ecc000 r-xs 00000000 03:02 6522045 /usr/lib/j2se1.4-sun/jre/lib/jce.jar
    b4ecc000-b4f51000 r-xs 00000000 03:02 6522046 /usr/lib/j2se1.4-sun/jre/lib/jsse.jar
    b4f51000-b4f67000 r-xs 00000000 03:02 6522054 /usr/lib/j2se1.4-sun/jre/lib/sunrsasign.jar
    b4f67000-b4fd0000 rwxp b4f67000 00:00 0
    b4fd0000-b75e6000 r-xs 00000000 03:02 6522053 /usr/lib/j2se1.4-sun/jre/lib/rt.jar
    b75e6000-b75f5000 r-xp 00000000 03:02 6537248 /usr/lib/j2se1.4-sun/jre/lib/i386/libzip.so
    b75f5000-b75f7000 rwxp 0000e000 03:02 6537248 /usr/lib/j2se1.4-sun/jre/lib/i386/libzip.so
    b75f7000-b7618000 r-xp 00000000 03:02 6537233 /usr/lib/j2se1.4-sun/jre/lib/i386/libjava.so
    b7618000-b761a000 rwxp 00020000 03:02 6537233 /usr/lib/j2se1.4-sun/jre/lib/i386/libjava.so
    b761a000-b7625000 r-xp 00000000 03:02 6537247 /usr/lib/j2se1.4-sun/jre/lib/i386/libverify.so
    b7625000-b7626000 rwxp 0000b000 03:02 6537247 /usr/lib/j2se1.4-sun/jre/lib/i386/libverify.so
    b7626000-b7630000 r-xp 00000000 03:02 6980699 /lib/tls/libnss_files-2.3.6.so
    b7630000-b7632000 rwxp 00009000 03:02 6980699 /lib/tls/libnss_files-2.3.6.so
    b7632000-b763a000 r-xp 00000000 03:02 6980703 /lib/tls/libnss_nis-2.3.6.so
    b763a000-b763c000 rwxp 00008000 03:02 6980703 /lib/tls/libnss_nis-2.3.6.so
    b763c000-b7643000 r-xp 00000000 03:02 6980695 /lib/tls/libnss_compat-2.3.6.so
    b7643000-b7645000 rwxp 00006000 03:02 6980695 /lib/tls/libnss_compat-2.3.6.so
    b7645000-b7657000 r-xp 00000000 03:02 6980693 /lib/tls/libnsl-2.3.6.so
    b7657000-b7659000 rwxp 00012000 03:02 6980693 /lib/tls/libnsl-2.3.6.so
    b7659000-b765b000 rwxp b7659000 00:00 0
    b7661000-b7669000 rwxs 00000000 03:02 8552508 /tmp/hsperfdata_root/27377
    b7669000-b768d000 r-xp 00000000 03:02 6980690 /lib/tls/libm-2.3.6.so
    b768d000-b768f000 rwxp 00023000 03:02 6980690 /lib/tls/libm-2.3.6.so
    b768f000-b79fb000 r-xp 00000000 03:02 6537222 /usr/lib/j2se1.4-sun/jre/lib/i386/client/libjvm.so
    b79fb000-b7a1a000 rwxp 0036b000 03:02 6537222 /usr/lib/j2se1.4-sun/jre/lib/i386/client/libjvm.so
    b7a1a000-b7e31000 rwxp b7a1a000 00:00 0
    b7e31000-b7f5f000 r-xp 00000000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f5f000-b7f64000 r-xp 0012e000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f64000-b7f67000 rwxp 00133000 03:02 6980682 /lib/tls/libc-2.3.6.so
    b7f67000-b7f69000 rwxp b7f67000 00:00 0
    b7f69000-b7f6b000 r-xp 00000000 03:02 6980688 /lib/tls/libdl-2.3.6.so
    b7f6b000-b7f6d000 rwxp 00001000 03:02 6980688 /lib/tls/libdl-2.3.6.so
    b7f6d000-b7f6e000 rwxp b7f6d000 00:00 0
    b7f6e000-b7f7c000 r-xp 00000000 03:02 6980708 /lib/tls/libpthread-2.3.6.so
    b7f7c000-b7f7e000 rwxp 0000d000 03:02 6980708 /lib/tls/libpthread-2.3.6.so
    b7f7e000-b7f80000 rwxp b7f7e000 00:00 0
    b7f83000-b7f85000 r-xs 00000000 03:02 6521989 /usr/lib/j2se1.4-sun/jre/lib/ext/dnsns.jar
    b7f85000-b7f8b000 r-xp 00000000 03:02 6537250 /usr/lib/j2se1.4-sun/jre/lib/i386/native_threads/libhpi.so
    b7f8b000-b7f8c000 rwxp 00006000 03:02 6537250 /usr/lib/j2se1.4-sun/jre/lib/i386/native_threads/libhpi.so
    b7f8c000-b7f8d000 rwxp b7f8c000 00:00 0
    b7f8d000-b7f8e000 r-xp b7f8d000 00:00 0
    b7f8e000-b7f90000 rwxp b7f8e000 00:00 0
    b7f90000-b7fa5000 r-xp 00000000 03:02 6964464 /lib/ld-2.3.6.so
    b7fa5000-b7fa7000 rwxp 00015000 03:02 6964464 /lib/ld-2.3.6.so
    bf6c3000-bf6c6000 ---p bf6c3000 00:00 0
    bf6c6000-bf8c3000 rwxp bf6c6000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: net.sf.l2j.gameserver.GameServer
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
    LD_LIBRARY_PATH=/usr/lib/j2se1.4-sun/jre/lib/i386/client:/usr/lib/j2se1.4-sun/jre/lib/i386:/usr/lib/j2se1.4-sun/jre/../lib/i386
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x28c460], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:testing/unstable
    uname:Linux 2.6.17 #4 SMP PREEMPT Wed May 10 13:53:45 CEST 2006 i686
    libc:glibc 2.3.6 NPTL 2.3.6
    rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
    load average:0.00 0.11 0.08
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1003220k(219224k free), swap 2096440k(2096360k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for linux-x86, built on Oct 12 2006 10:54:08 by java_re with gcc 3.2.1-7a (J2SE release)
    Message was edited by:
    PantelisKap

    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb279fb2c, pid=16446, tid=3084670656
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)
    # Problematic frame:
    # J net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(Lorg/w3c/dom/Node;)V
    --------------- T H R E A D ---------------
    Current thread (0x0805c9c8): JavaThread "main" [_thread_in_Java, id=16446]
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x004f964e
    Registers:
    EAX=0x6cae9ef8, EBX=0x00000000, ECX=0xfffffffc, EDX=0x8cdbc580
    ESP=0xbf871400, EBP=0xbf871498, ESI=0x0036574e, EDI=0x00000000
    EIP=0xb279fb2c, CR2=0x004f964e, EFLAGS=0x00010207
    Top of Stack: (sp=0xbf871400)
    0xbf871400: 00000000 8cdbc568 6cae9cf8 ffffffff
    0xbf871410: 708cb1d8 b76df649 8ca83a58 00000002
    0xbf871420: 00000000 00000023 bf871478 b26b3084
    0xbf871430: 00000023 b278513f 6cae61b0 708cfb00
    0xbf871440: 708ca048 bf871458 6cae9da8 b27936fa
    0xbf871450: 00000073 00000023 00000023 00000d41
    0xbf871460: ffffffff 8cdbc568 6cae9cf8 ffffffff
    0xbf871470: 00000000 708cb1d8 bf871498 00000001
    Instructions: (pc=0xb279fb2c)
    0xb279fb1c: 4f 0f 85 f1 ff ff ff 8b 75 b0 89 46 10 c1 ee 09
    0xb279fb2c: c6 86 00 3f 0e b2 00 8b 75 0c 8b 76 10 89 75 b0
    Stack: [0xbf675000,0xbf875000), sp=0xbf871400, free space=2033k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    J net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(Lorg/w3c/dom/Node;)V
    J net.sf.l2j.gameserver.skills.DocumentSkill.parseDocument(Lorg/w3c/dom/Document;)V
    j net.sf.l2j.gameserver.skills.DocumentBase.parse()Lorg/w3c/dom/Document;+66
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(Ljava/io/File;)Ljava/util/List;+44
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(Ljava/util/Map;)V+35
    j net.sf.l2j.gameserver.SkillTable.<init>()V+27
    j net.sf.l2j.gameserver.SkillTable.getInstance()Lnet/sf/l2j/gameserver/SkillTable;+10
    j net.sf.l2j.gameserver.skills.DocumentBase.attachSkill(Lorg/w3c/dom/Node;Ljava/lang/Object;Lnet/sf/l2j/gameserver/skills/Condition;)V+86
    J net.sf.l2j.gameserver.skills.DocumentBase.parseTemplate(Lorg/w3c/dom/Node;Ljava/lang/Object;)V
    J net.sf.l2j.gameserver.skills.DocumentItem.parseItem(Lorg/w3c/dom/Node;)V
    J net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(Lorg/w3c/dom/Document;)V
    j net.sf.l2j.gameserver.skills.DocumentBase.parse()Lorg/w3c/dom/Document;+66
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadData(Ljava/util/Map;Ljava/util/List;)Ljava/util/List;+52
    j net.sf.l2j.gameserver.skills.SkillsEngine.loadWeapons(Ljava/util/Map;)Ljava/util/List;+14
    J net.sf.l2j.gameserver.ItemTable.<init>()V
    v ~OSRAdapter
    j net.sf.l2j.gameserver.ItemTable.getInstance()Lnet/sf/l2j/gameserver/ItemTable;+10
    j net.sf.l2j.gameserver.GameServer.<init>()V+213
    j net.sf.l2j.gameserver.GameServer.main([Ljava/lang/String;)V+70
    v ~StubRoutines::call_stub
    V [libjvm.so+0x17a75c]
    V [libjvm.so+0x28afd8]
    V [libjvm.so+0x17a58f]
    V [libjvm.so+0x1a4e32]
    V [libjvm.so+0x196042]
    C [java+0x1873]
    C [libc.so.6+0x14ea8] __libc_start_main+0xc8
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x083d9568 JavaThread "GerenalSTPool-3" [_thread_blocked, id=16463]
    0x083d99b0 JavaThread "GerenalSTPool-2" [_thread_blocked, id=16462]
    0x083a6738 JavaThread "GameTimeController" daemon [_thread_blocked, id=16461]
    0x082574d0 JavaThread "GerenalSTPool-1" [_thread_blocked, id=16460]
    0x08235a18 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=16458]
    0x0822c690 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=16457]
    0x0822bd18 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=16456]
    0x0822b570 JavaThread "Timer-0" daemon [_thread_blocked, id=16454]
    0x080a53f0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=16452]
    0x080a3e90 JavaThread "CompilerThread0" daemon [_thread_blocked, id=16451]
    0x080a2db0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=16450]
    0x0809cb30 JavaThread "Finalizer" daemon [_thread_blocked, id=16449]
    0x0809be40 JavaThread "Reference Handler" daemon [_thread_blocked, id=16448]
    =>0x0805c9c8 JavaThread "main" [_thread_in_Java, id=16446]
    Other Threads:
    0x080992e0 VMThread [id=16447]
    0x080a6890 WatcherThread [id=16453]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 3072K, used 840K [0x6ca20000, 0x6cd70000, 0x6f180000)
    eden space 2752K, 30% used [0x6ca20000, 0x6caf23b0, 0x6ccd0000)
    from space 320K, 0% used [0x6cd20000, 0x6cd20000, 0x6cd70000)
    to space 320K, 0% used [0x6ccd0000, 0x6ccd0000, 0x6cd20000)
    tenured generation total 40172K, used 31252K [0x6f180000, 0x718bb000, 0x8ca20000)
    the space 40172K, 77% used [0x6f180000, 0x710051d8, 0x71005200, 0x718bb000)
    compacting perm gen total 8192K, used 4319K [0x8ca20000, 0x8d220000, 0x90a20000)
    the space 8192K, 52% used [0x8ca20000, 0x8ce57d68, 0x8ce57e00, 0x8d220000)
    ro space 8192K, 68% used [0x90a20000, 0x90f9ed48, 0x90f9ee00, 0x91220000)
    rw space 12288K, 48% used [0x91220000, 0x917e9e68, 0x917ea000, 0x91e20000)
    Dynamic libraries:
    08048000-08057000 r-xp 00000000 03:02 6996556 /usr/lib/j2sdk1.5-sun/bin/java
    08057000-08059000 rwxp 0000e000 03:02 6996556 /usr/lib/j2sdk1.5-sun/bin/java
    08059000-084e8000 rwxp 08059000 00:00 0 [heap]
    6ca20000-6cd70000 rwxp 6ca20000 00:00 0
    6cd70000-6f180000 rwxp 6cd70000 00:00 0
    6f180000-718bb000 rwxp 6f180000 00:00 0
    718bb000-8ca20000 rwxp 718bb000 00:00 0
    8ca20000-8d220000 rwxp 8ca20000 00:00 0
    8d220000-90a20000 rwxp 8d220000 00:00 0
    90a20000-90f9f000 r-xs 00001000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    90f9f000-91220000 rwxp 90f9f000 00:00 0
    91220000-917ea000 rwxp 00580000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    917ea000-91e20000 rwxp 917ea000 00:00 0
    91e20000-91ef0000 rwxp 00b4a000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    91ef0000-92220000 rwxp 91ef0000 00:00 0
    92220000-92224000 r-xs 00c1a000 03:02 6980776 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/classes.jsa
    92224000-92620000 rwxp 92224000 00:00 0
    b1560000-b1563000 ---p b1560000 00:00 0
    b1563000-b15e0000 rwxp b1563000 00:00 0
    b15e0000-b15e3000 ---p b15e0000 00:00 0
    b15e3000-b1660000 rwxp b15e3000 00:00 0
    b1660000-b1663000 ---p b1660000 00:00 0
    b1663000-b16e0000 rwxp b1663000 00:00 0
    b16e0000-b16e3000 ---p b16e0000 00:00 0
    b16e3000-b1760000 rwxp b16e3000 00:00 0
    b1760000-b1763000 ---p b1760000 00:00 0
    b1763000-b17e0000 rwxp b1763000 00:00 0
    b17e0000-b17e3000 ---p b17e0000 00:00 0
    b17e3000-b1860000 rwxp b17e3000 00:00 0
    b1860000-b1863000 ---p b1860000 00:00 0
    b1863000-b18e0000 rwxp b1863000 00:00 0
    b18e0000-b18e3000 ---p b18e0000 00:00 0
    b18e3000-b1960000 rwxp b18e3000 00:00 0
    b1960000-b1966000 r-xp 00000000 03:02 6980787 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnio.so
    b1966000-b1967000 rwxp 00005000 03:02 6980787 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnio.so
    b1967000-b1978000 r-xp 00000000 03:02 6980786 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnet.so
    b1978000-b1979000 rwxp 00011000 03:02 6980786 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libnet.so
    b1979000-b1bd2000 r-xs 00000000 03:02 7766468 /root/lineage2server160/gameserver/l2j-gameserver.jar
    b1bd2000-b1c39000 r-xs 00000000 03:02 7766471 /root/lineage2server160/gameserver/mysql-connector-java-3.1.10-bin.jar
    b1c39000-b1cb1000 r-xs 00000000 03:02 7766462 /root/lineage2server160/gameserver/c3p0-0.9.0.4.jar
    b1cb1000-b1dd8000 r-xs 00000000 03:02 7766467 /root/lineage2server160/gameserver/jython.jar
    b1dd8000-b1e1d000 r-xs 00000000 03:02 7766461 /root/lineage2server160/gameserver/bsh-2.0.jar
    b1e1d000-b1e64000 r-xs 00000000 03:02 7766466 /root/lineage2server160/gameserver/javolution.jar
    b1e64000-b1e8f000 r-xs 00000000 03:02 7766460 /root/lineage2server160/gameserver/bsf.jar
    b1e8f000-b1e9e000 r-xs 00000000 03:02 7766465 /root/lineage2server160/gameserver/ibmaio.jar
    b1e9e000-b1f62000 r-xs 00000000 03:02 6995979 /usr/lib/j2sdk1.5-sun/jre/lib/ext/localedata.jar
    b1f62000-b1f8d000 r-xs 00000000 03:02 6995977 /usr/lib/j2sdk1.5-sun/jre/lib/ext/sunpkcs11.jar
    b1f8d000-b1fb4000 r-xs 00000000 03:02 6995976 /usr/lib/j2sdk1.5-sun/jre/lib/ext/sunjce_provider.jar
    b1fb4000-b1fb5000 ---p b1fb4000 00:00 0
    b1fb5000-b2034000 rwxp b1fb5000 00:00 0
    b2034000-b2037000 ---p b2034000 00:00 0
    b2037000-b20b4000 rwxp b2037000 00:00 0
    b20b4000-b20b7000 ---p b20b4000 00:00 0
    b20b7000-b2134000 rwxp b20b7000 00:00 0
    b2134000-b2137000 ---p b2134000 00:00 0
    b2137000-b21b4000 rwxp b2137000 00:00 0
    b21b4000-b21b7000 ---p b21b4000 00:00 0
    b21b7000-b2234000 rwxp b21b7000 00:00 0
    b2234000-b2237000 ---p b2234000 00:00 0
    b2237000-b22b4000 rwxp b2237000 00:00 0
    b22b4000-b22b5000 ---p b22b4000 00:00 0
    b22b5000-b2340000 rwxp b22b5000 00:00 0
    b2340000-b235c000 rwxp b2340000 00:00 0
    b235c000-b2370000 rwxp b235c000 00:00 0
    b2370000-b2449000 rwxp b2370000 00:00 0
    b2449000-b244b000 rwxp b2449000 00:00 0
    b244b000-b245c000 rwxp b244b000 00:00 0
    b245c000-b2471000 rwxp b245c000 00:00 0
    b2471000-b2549000 rwxp b2471000 00:00 0
    b2549000-b254d000 rwxp b2549000 00:00 0
    b254d000-b2569000 rwxp b254d000 00:00 0
    b2569000-b257c000 rwxp b2569000 00:00 0
    b257c000-b25f4000 rwxp b257c000 00:00 0
    b25f4000-b27ec000 rwxp b25f4000 00:00 0
    b27ec000-b45f4000 rwxp b27ec000 00:00 0
    b45f4000-b4e64000 r-xs 00000000 03:02 6980848 /usr/lib/j2sdk1.5-sun/jre/lib/charsets.jar
    b4e64000-b4e79000 r-xs 00000000 03:02 6980813 /usr/lib/j2sdk1.5-sun/jre/lib/jce.jar
    b4e79000-b4efe000 r-xs 00000000 03:02 6980846 /usr/lib/j2sdk1.5-sun/jre/lib/jsse.jar
    b4efe000-b4f67000 rwxp b4efe000 00:00 0
    b4f67000-b757d000 r-xs 00000000 03:02 6980850 /usr/lib/j2sdk1.5-sun/jre/lib/rt.jar
    b757d000-b758c000 r-xp 00000000 03:02 6980783 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libzip.so
    b758c000-b758e000 rwxp 0000e000 03:02 6980783 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libzip.so
    b758e000-b75af000 r-xp 00000000 03:02 6980781 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so
    b75af000-b75b1000 rwxp 00020000 03:02 6980781 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so
    b75b1000-b75bc000 r-xp 00000000 03:02 6980780 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libverify.so
    b75bc000-b75bd000 rwxp 0000b000 03:02 6980780 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libverify.so
    b75bd000-b75c6000 r-xp 00000000 03:02 6980876 /lib/tls/libnss_files-2.3.6.so
    b75c6000-b75c8000 rwxp 00008000 03:02 6980876 /lib/tls/libnss_files-2.3.6.so
    b75c8000-b75d0000 r-xp 00000000 03:02 6980878 /lib/tls/libnss_nis-2.3.6.so
    b75d0000-b75d2000 rwxp 00007000 03:02 6980878 /lib/tls/libnss_nis-2.3.6.so
    b75d2000-b75d9000 r-xp 00000000 03:02 6980874 /lib/tls/libnss_compat-2.3.6.so
    b75d9000-b75db000 rwxp 00006000 03:02 6980874 /lib/tls/libnss_compat-2.3.6.so
    b75db000-b75ed000 r-xp 00000000 03:02 6980873 /lib/tls/libnsl-2.3.6.so
    b75ed000-b75ef000 rwxp 00011000 03:02 6980873 /lib/tls/libnsl-2.3.6.so
    b75ef000-b75f1000 rwxp b75ef000 00:00 0
    b75f5000-b75f7000 r-xs 00000000 03:02 6995978 /usr/lib/j2sdk1.5-sun/jre/lib/ext/dnsns.jar
    b75f7000-b75ff000 rwxs 00000000 03:02 8552461 /tmp/hsperfdata_root/16446
    b75ff000-b7622000 r-xp 00000000 03:02 6980871 /lib/tls/libm-2.3.6.so
    b7622000-b7624000 rwxp 00022000 03:02 6980871 /lib/tls/libm-2.3.6.so
    b7624000-b7990000 r-xp 00000000 03:02 6980774 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libjvm.so
    b7990000-b79af000 rwxp 0036b000 03:02 6980774 /usr/lib/j2sdk1.5-sun/jre/lib/i386/client/libjvm.so
    b79af000-b7dc6000 rwxp b79af000 00:00 0
    b7dc6000-b7eee000 r-xp 00000000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7eee000-b7ef3000 r-xp 00127000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7ef3000-b7ef5000 rwxp 0012c000 03:02 6980867 /lib/tls/libc-2.3.6.so
    b7ef5000-b7ef8000 rwxp b7ef5000 00:00 0
    b7ef8000-b7efa000 r-xp 00000000 03:02 6980870 /lib/tls/libdl-2.3.6.so
    b7efa000-b7efc000 rwxp 00001000 03:02 6980870 /lib/tls/libdl-2.3.6.so
    b7efc000-b7efd000 rwxp b7efc000 00:00 0
    b7efd000-b7f0b000 r-xp 00000000 03:02 6980864 /lib/tls/libpthread-2.3.6.so
    b7f0b000-b7f0d000 rwxp 0000d000 03:02 6980864 /lib/tls/libpthread-2.3.6.so
    b7f0d000-b7f14000 rwxp b7f0d000 00:00 0
    b7f14000-b7f1a000 r-xp 00000000 03:02 6980769 /usr/lib/j2sdk1.5-sun/jre/lib/i386/native_threads/libhpi.so
    b7f1a000-b7f1b000 rwxp 00006000 03:02 6980769 /usr/lib/j2sdk1.5-sun/jre/lib/i386/native_threads/libhpi.so
    b7f1b000-b7f1c000 rwxp b7f1b000 00:00 0
    b7f1c000-b7f1d000 r-xp b7f1c000 00:00 0
    b7f1d000-b7f1f000 rwxp b7f1d000 00:00 0
    b7f1f000-b7f34000 r-xp 00000000 03:02 6964594 /lib/ld-2.3.6.so
    b7f34000-b7f36000 rwxp 00014000 03:02 6964594 /lib/ld-2.3.6.so
    bf675000-bf678000 ---p bf675000 00:00 0
    bf678000-bf875000 rwxp bf678000 00:00 0 [stack]
    ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: net.sf.l2j.gameserver.GameServer
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
    LD_LIBRARY_PATH=/usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x325bd0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x28a010], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x28c460], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x28be90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:4.0
    uname:Linux 2.6.17 #4 SMP PREEMPT Wed May 10 13:53:45 CEST 2006 i686
    libc:glibc 2.3.6 NPTL 2.3.6
    rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
    load average:1.31 0.62 0.38
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1003220k(251136k free), swap 2096440k(2096396k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for linux-x86, built on Oct 12 2006 10:54:08 by java_re with gcc 3.2.1-7a (J2SE release)

  • Problem of accesing MS Acess database on Linux using Java

    Below is my java code and errors found. Can anyone guide me tell me what is the problem and how to success access the .mdb file using Java on Linux?
    import java.sql.*;
    class readmdb
    {      public static void main(String[] args)
    {    String url;
    Connection con;
    Statement stmt;
    try
    {     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException e)
    {    System.out.print("ClassNotFoundException: ");
    System.out.println(e.getMessage());
    try
    {     con = DriverManager.getConnection("jdbc:odbc:DRIVER={/usr/local/lib/libmdbodbc.o.O}};DBQ=/home/powerstation/db/Database.mdb");
    stmt = con.createStatement();
    stmt.close();
    con.close();
    catch(SQLException ex)
    { System.err.println("SQLException: " + ex.getMessage());
    Errors messages found after i executed the java code
    shown above on linux platform.
    Exception in thread "main"
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    atjava.sql.DriverManager.getConnection(DriverManager.java:193)
    at readmdb.main(readmdb.java:27)

    jschell,
    ODBC shell is the odbc.ini or odbcinst.ini? No.
    The shell is something that you explicitly installed. Just like you installed Apache, or perl, or a C++ compiler, or even a CD driver.
    If yes,
    What is the difference between odbc.in and
    odbcinst.ini? No idea. But on a windows box those are ini files that specify odbc info. I don't think ini files are going to help on linux.
    Which of them will be execute when i
    want to establish a connection using "jdbc:odbc:...."
    in DriverManager.getConnection?I am rather sure that neither of them would 'execute'
    >
    Is it MS Access ODBC linux driver is the file like
    libodbc.so, libmdbodbc.so, libmdbsql.so and so on?No idea, but I doubt it.
    What makes you think that you even have a MS Access ODBC linux driver on your box?
    Then, can u tell me which is MS Access ODBC linux
    driver or what is the driver file name for MS Access
    ODBC linux driver?Nope.
    If you installed a MS Access ODBC linux driver, then the ODBC shell will know where it is.
    And if you did install such a driver you should post the link where you got it here, because as far as I know, there is no such driver (nor is there one for MS SQL Server.)

  • Need to communicate c server on linux & java client on windows

    Hi!! I am new to socket programing in both C and Java.
    From let I downloaded some client server example for c and java and tried that to link !! (I allways learn this way , and I need to do that little urget )
    though cient server in linux is working perfectly fine and same for java. But problem is when I tried to communicate C server on linux and java client on windows, I end up with getting some junk characters. Though they are connected successfully.
    Here goes code for java client:
    package whatever;
    import java.io.*;
    import java.net.*;
    public class Requester{
         Socket requestSocket;
         ObjectOutputStream out;
         ObjectInputStream in;
         String message;
         Requester(){}
         void run()
              try{
                   //1. creating a socket to connect to the server
                   requestSocket = new Socket("192.168.72.128", 2006);
                   System.out.println("Connected to localhost in port 2004");
                   //2. get Input and Output streams
                   out = new ObjectOutputStream(requestSocket.getOutputStream());
                   out.flush();
                   in = new ObjectInputStream(requestSocket.getInputStream());
                   System.out.println("above do");
                   //3: Communicating with the server
                   do{
                        try{
                             System.out.println("in do");
                             //message = (String)in.readObject();
                             System.out.println("in try");
                             //System.out.println("server>" + message);
                             System.out.println("server>" + "message");
                             sendMessage("Hi my server");
                             message = "bye";
                             sendMessage(message);
                             System.out.println("try completed");
                        catch(Exception e){
                             e.printStackTrace();
                   }while(!message.equals("bye"));
              catch(UnknownHostException unknownHost){
                   System.err.println("You are trying to connect to an unknown host!");
              catch(IOException ioException){
                   ioException.printStackTrace();
              finally{
                   //4: Closing connection
                   try{
                        in.close();
                        out.close();
                        requestSocket.close();
                   catch(IOException ioException){
                        ioException.printStackTrace();
         void sendMessage(String msg)
              try{
                   String stringToConvert= "hello world";
                   byte[] theByteArray = stringToConvert.getBytes();
                      System.out.println(theByteArray.length);
                   out.writeObject(theByteArray);
                   out.flush();
                   System.out.println("client>" + msg);
              catch(IOException ioException){
                   ioException.printStackTrace();
              catch(Exception ex){
                   ex.printStackTrace();
         public static void main(String args[])
              Requester client = new Requester();
              client.run();
    And for C server
    / server
        #include <stdio.h>
            #include <sys/socket.h>
            #include <arpa/inet.h>
            #include <stdlib.h>
            #include <string.h>
            #include <unistd.h>
            #include <netinet/in.h>
            #define MAXPENDING 5    /* Max connection requests */
            #define BUFFSIZE 32
            void Die(char *mess) { perror(mess); exit(1); }
        void HandleClient(int sock) {
                char buffer[BUFFSIZE];
                int received = -1;
                /* Receive message */
                if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                    Die("Failed to receive initial bytes from client");
                /* Send bytes and check for more incoming data in loop */
                while (received > 0) {
                /* Send back received data */
                    if (send(sock, buffer, received, 0) != received) {
                        Die("Failed to send bytes to client");
    //            fprintf("%s",buffer);
                fprintf(stdout, "message Recieved: %s\n", buffer);
                    //Die("was not able to echo socket message");               
                /* Check for more data */
                    if ((received = recv(sock, buffer, BUFFSIZE, 0)) < 0) {
                        Die("Failed to receive additional bytes from client");
                close(sock);
        //     A TCP ECHO SERVER
        int main(int argc, char *argv[]) {
                int serversock, clientsock;
                    struct sockaddr_in echoserver, echoclient;
                    if (argc != 2) {
                      fprintf(stderr, "USAGE: echoserver <port>\n");
                    exit(1);
                /* Create the TCP socket */
                    if ((serversock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
                      Die("Failed to create socket");
                /* Construct the server sockaddr_in structure */
                    memset(&echoserver, 0, sizeof(echoserver));      /* Clear struct */
                    echoserver.sin_family = AF_INET;                  /* Internet/IP */
                    echoserver.sin_addr.s_addr = htonl(INADDR_ANY);  /* Incoming addr */
                    echoserver.sin_port = htons(atoi(argv[1]));      /* server port */
        // A TCP ECHO SERVER ENDS
        // A TCP ECHO SERVER BINDING AND LISTNING
      /* Bind the server socket */
                  if (bind(serversock, (struct sockaddr *) &echoserver, sizeof(echoserver)) < 0) {
                        Die("Failed to bind the server socket");
              /* Listen on the server socket */
                  if (listen(serversock, MAXPENDING) < 0) {
                  Die("Failed to listen on server socket");
        // A TCP ECHO SERVER BINDING AND LISTNING
        // SOCKET FACTORY
    /* Run until cancelled */
                while (1) {
                        unsigned int clientlen = sizeof(echoclient);
                          /* Wait for client connection */
                        if ((clientsock =
                          accept(serversock, (struct sockaddr *) &echoclient, &clientlen)) < 0) {
                            Die("Failed to accept client connection");
                          fprintf(stdout, "Client connected: %s\n", inet_ntoa(echoclient.sin_addr));
                          HandleClient(clientsock);
        // SOCKET FACTORY ENDSI know that it is not C forum but I found no better place to post it
    Thanks

    kajbj wrote:
    ManMohanVyas wrote:
    hii!! just trying to make it a little more explinatory
    1) what I am trying to accomplish by the above code is: - just need to echo/print from the Server , message send by the Client. I know code is not that good but should be able to perform this basic operation( according to me ).You are wrong. I told you that it won't work as long as you are using ObjectOutputStream and ObjectInputStream. You shouldn't write objects.
    2) Message sent by the client is "hello world"(hard coded).No, it's not. You are writing a serialized byte array.
    3) what I am getting at the client end is "*message recieved: ur*" (before that It shows the Ip of client machine)
    It should print "hello world ".See above.
    You are having a problem, and I have told you what the problem is.hey I dont know what went wrong but . I posted all this just next to my first post ...before you posted !!
    And hard coded byte array includes "hello world"...may be I am not able to explain properly.

  • Java server program on Linux problem

    Ok, i've written a simple java server using java.nio and have tested it on my windows machine. Then people can connect and it works as it should.
    However, when i run the server on my linux box it starts as it should, but no users can connect to it. Its like the connections never come through to the java program... What can cause this? Some firewall stuff etc?
    I've tested running a server written in C on the same port (both the java and the c server uses TCP) and then people can connect to it without any problems.
    So it seems to be some security thing in java, or in linux in connection with java programs.
    Anyone can enlight me on how to get the java server to work?
    Best wishes

    What version of the JDK are you using, and which linux kernel?
    From the Java Bug Database:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5056395
    Synopsis        nio does not seem to work with Linux kernel 2.6.4 (and probably above)
    Category      java:classes_nio
    Reported Against      1.4.2_04
    Release Fixed      1.5(tiger-rc)� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Linux Java server

    I'm creating a socket server in java language on Linux System, and I would like to launch it as a demon; it means that I want my server to start automatically after a reboot and to be launched in a script localised in the /etc/rc.d/init.d directory
    I've already done that with a socket server written in C language (using fork() and dup() functions to "daemonize" my server), but I don't find equivalence in Java. I've tried to use the function "SetDaemon", but my server don't become a son of the init process ...
    Is it possible or not ?
    PS: sorry for my english ...

    Java can't demonize itself the same way as C programs do. Usually a shell script does that job. It sets all required variables (classpath & co) and starts the java process in the background (using &). Look at the way Tomcat does it for some hints.

  • Java Program destroys Linux Server Display or Server logs out Automatically

    hi,
    i am facing problem when my servlet program is running.
    my servlet starts a process at server which is a simple java program which publishes PDF,
    XML, RTF files and lates long to run for about 45 minutes.
    i give a call to a shell file on the server (Red Hat Linux 9.0) which in turns calls a java
    program that runs on gnome-terminal.
    i have started Tomcat from SSh for that i have exported DISPLAY (Environment variable) from
    .bash_profile. i need to do this because i need graphics environment (X11 Windows) for jfor
    which is used print jpeg images in PDF and RTF reports.
    PROBLEM
    Some time my server display gets destroyed or the server gets Logout automatically, when my
    process is running.
    following is sode to start a gnome-terminal
    strCommand="gnome-terminal -x /root/PWAppSh/StartPartialRunOff.sh PartialRunOffApp "+
    strpubType + " "  +  strGroupNumber +" "+ id + " " + Cur_Time+" "+ strPubDate +" "+
    strFromDate +" "+ strToDate ;
    p = rt.getRuntime().exec(strCommand);
    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(strRootPath
    + "/pw/WEB-INF/classes/pid.txt")));
                             pid= "";
                             while((pid = br.readLine()) != null)
                                  getPid=pid;
                             ses.setAttribute("process",getPid);
                             ses.setAttribute("RunType",strrunType);
                             System.out.println("#Get Process ID:"+getPid);
                             FileOutputStream fos = new
    FileOutputStream(strRootPath+"/pw/System/Mgmt/Sessions/RunoffOutput.txt");
                             Stdout_Stderr errorGobbler = new
                                  Stdout_Stderr(p.getErrorStream(), "ERROR");
                             // any output?
                             Stdout_Stderr outputGobbler = new
                                  Stdout_Stderr(p.getInputStream(), "OUTPUT",
    fos);
                             // kick them off
                             errorGobbler.start();
                             outputGobbler.start();
                             // any error???
                             int exitVal = p.waitFor();
                             System.out.println("StartRunoff ExitValue: " +
    exitVal);shell script that get executed from servlet is as followes
    cd /
    cd /share/Tomcat-4/jakarta-tomcat-4.1.31/webapps/pw/WEB-INF/classes
         echo $$ > pid.txt
         echo "Path: `pwd`"
         echo "Process ID:" $$
         chmod 777 pid.txt
         echo Redirecting ProcessID
         echo "Current shell : " $SHELL   
         export
    PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.2_08/bin:/usr/java/j2sdk1.4.2_08/lib:.:/share/amol/l
    ib/.:
         export
    CLASSPATH=.:/share/amol/lib/activation-1.0.1.jar:/share/amol/lib/ant.jar:/share/amol/lib/ava
    lon-framework-cvs-20020806.jar:/share/amol/lib/batik.jar:/share/amol/lib/fop.jar:/share/amol
    /lib/jfor-0.7.2rc1.jar:/share/amol/lib/xalan-2.4.1.jar:/share/amol/lib/mail-1.2.jar:/share/a
    mol/lib/xerces-1.2.3.jar:/share/amol/lib/jimi-1.0.jar:/share/amol/lib/logkit-1.0.1.jar:/shar
    e/amol/lib/firebirdsql-full.jar:/share/amol/lib/xercesImpl-2.2.1.jar
         exec java -server -Xmx256m -Xoss200M PW/Runoff/$1 $2 $3 $4 $5 $6 $7setting that i have done in .bash_profile file
    DISPLAY=$HOST:0
    export DISPLAY HOSTcan any one suggest or any solution to problem why my linux server Logsout ar display gets
    destroyed when my Program is runnig on Gnome terminal.
    kindly help me,
    Thanks in advance for ur most important suggestion or solution.

    Sounds a lot like a bug in some of the native libraries you use (or even in AWT). Try looking into your log files (especially for X and for your tomcat) to find out if any error messages are printed.
    Additionally there are X servers out there that don't need any concrete display hardware to run (Xvfb comes to my mind, but IIRC there are more modern alternatives available). Usign that might or might not solve your problem, but would be a good idea either way.

Maybe you are looking for