[Help]Install JAVA on VBOX

Results 1 to 22 of 22
  1. #1
    Valued Member tawdarky is offline
    MemberRank
    Nov 2008 Join Date
    RomaniaLocation
    125Posts

    [Help]Install JAVA on VBOX

    Hwo to install jdk1.5.0_05 on VBOX ?I tryed a few times but pwAdmin stopped working after i installed it.


  2. #2
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by tawdarky View Post
    Hwo to install jdk1.5.0_05 on VBOX ?I tryed a few times but pwAdmin stopped working after i installed it.
    I take it you are using Romulan's jdk1.5.0_05

    To install this copy the jdk1.5.0_05 to your /usr/java/ folder using WinSCP.

    On your vbox type
    Code:
    cd /usr/java/
    tar xfvz jdk1.5.0_05.tar.gz
    chmod -R 755 /usr/java/jdk1.5.0_05
    Next edit your .bashrc and change the second to last line to this.
    Spoiler:
    # ~/.bashrc: executed by bash(1) for non-login shells.
    # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
    # for examples

    # If not running interactively, don't do anything
    [ -z "$PS1" ] && return

    # don't put duplicate lines in the history. See bash(1) for more options
    #export HISTCONTROL=ignoredups

    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    shopt -s checkwinsize

    # make less more friendly for non-text input files, see lesspipe(1)
    [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

    # set variable identifying the chroot you work in (used in the prompt below)
    if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
    fi

    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
    *)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
    esac

    # Comment in the above and uncomment this below for a color prompt
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

    # If this is an xterm set the title to user@host:dir
    case "$TERM" in
    xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
    *)
    ;;
    esac

    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.

    #if [ -f ~/.bash_aliases ]; then
    # . ~/.bash_aliases
    #fi

    # enable color support of ls and also add handy aliases
    if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
    fi

    # some more ls aliases
    #alias ll='ls -l'
    #alias la='ls -A'
    #alias l='ls -CF'

    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    #if [ -f /etc/bash_completion ]; then
    # . /etc/bash_completion
    #fi

    export JAVA_HOME=/usr/java/jdk1.5.0_05
    export CLASSPATH=/root/apache-tomcat-5.5.28/common/lib/jsp-api.jar:/root/apache-tomcat-5.5.28/common/lib/servlet-api.jar


    Edit your .profile and change the last line to this
    Spoiler:
    # ~/.profile: executed by Bourne-compatible login shells.

    if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    fi

    mesg n
    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_17/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME="root"

    PATH=$PATH:$HOME/bin:/usr/lib/mysql/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME="ROOT"

    export USERNAME BASH_ENV PATH
    export CLASSPATH=.:/usr/java/jdk1.6.17/lib/dt.jar:/usr/java/jdk1.6.0_17/lib/tools.jar:/usr/java/jdk1.6.0_17/lib/mysql-connector-java-5.0.8-bin.jar
    export PATH=$JAVA_HOME/bin:$PATH
    export JAVA_HOME=/usr/java/jdk1.5.0_05


    Next edit the 3rd line in tomcat_start.sh to this
    Spoiler:
    echo ""
    echo "=== APACHE TOMCAT ==="
    export JAVA_HOME=/usr/java/jdk1.5.0_05/jre
    apache-tomcat-5.5.28/bin/startup.sh
    sleep 5
    echo "=== DONE! ==="
    echo ""


    Next edit the 3rd line in tomcat_stop.sh to this
    Spoiler:
    echo ""
    echo "=== APACHE TOMCAT ==="
    export JAVA_HOME=/usr/java/jdk1.5.0_05/jre
    apache-tomcat-5.5.28/bin/shutdown.sh
    sleep 5
    echo "=== DONE! ==="
    echo ""


    Download the lasted pwAdmin from
    http://pwadmin.codeplex.com

    Delete your old pwAdmin and copy the new version across to your /apache-tomcat5.5.28/webapps folder

    edit your /root/apache-tomcat5.5.28/webapps/pwAdmin/.pwadminconf.jsp
    Spoiler:
    <%@page import="java.io.*"%>

    <%
    //-------------------------------------------------------------------------------------------------------------------------
    //------------------------------- SETTINGS --------------------------------------------------------------------------------
    //-------------------------------------------------------------------------------------------------------------------------

    //String iweb_password = "63a9f0ea7bb98050796b649e85481845";
    String iweb_password = "4417086f7ca83a0f21ed7f7ccd29361e";

    String db_host = "localhost";
    String db_port = "3306";
    String db_user = "root";
    String db_password = "hrace009";
    String db_database = "dbo";

    // Type of your Items Database required for mapping ID's to Names
    // Options are my or pwi
    String item_labels = "pwi";

    // Absolute Path to your PW-Server main directory (startscript, stopscript, /gamed)
    String pw_server_path = "/PWServer/";

    // If you have hundreds of characters or heavy web acces through this site
    // It is recommend to turn the realtime character list feature off (false)
    // to prevent server from overload injected by character list generation
    boolean enable_character_list = true;

    String pw_server_name = "Titan";
    String pw_server_exp = "15x";
    String pw_server_sp = "15x";
    String pw_server_drop = "15x";
    String pw_server_coins = "15x";
    String pw_server_description = "+ Your server description here<br>+ 2 x 2.4 GHz, 2048 MB RAM, 100 MBit LAN<br>+ all dungeons open<br>+ tideborn nirvana weapons<br>+ World bosses";

    //-------------------------------------------------------------------------------------------------------------------------
    //----------------------------- END SETTINGS ------------------------------------------------------------------------------
    //-------------------------------------------------------------------------------------------------------------------------

    if(request.getSession().getAttribute("items") == null)
    {
    String[] items = new String[28001];

    try
    {
    BufferedReader br = new BufferedReader(new FileReader(new File(request.getRealPath("/include/items") + "/my.dat")));
    if(item_labels.compareTo("pwi") == 0)
    {
    br = new BufferedReader(new FileReader(new File(request.getRealPath("/include/items") + "/pwi.dat")));
    }
    int count = 0;
    String line;
    while((line = br.readLine()) != null && count < 28001)
    {
    items[count] = line;
    count++;
    }
    br.close();
    }
    catch(Exception e)
    {
    }

    request.getSession().setAttribute("items", items);
    }
    %>


    edit your /root/apache-tomcat5.5.28/webapps/pwAdmin/.pwconf
    Spoiler:
    [GameDBClient]
    type = tcp
    port = 29400
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [DeliveryClient]
    type = tcp
    port = 29100
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [FactionClient]
    type = tcp
    port = 29500
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [UniqueNameClient]
    type = tcp
    port = 29401
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    ;so_broadcast = 1
    tcp_nodelay = 0
    accumulate = 268435456
    isec = 2
    iseckey = baxiyEwt4fuqrysyoylfy7Fxbmhobo
    osec = 2
    oseckey = baxitf91jvrQarnjwbyvlcdxqdvuqp

    [ThreadPool]
    config = (1,2)


    Delete the contents of your /root/apache-tomcat5.5.28/work/ folder

    then hopefully everything should work

  3. #3
    RaGEZONER fgru is offline
    MemberRank
    Sep 2009 Join Date
    germanyLocation
    1,510Posts

    Re: [Help]Install JAVA on VBOX

    i have problem with jdk1.5.0_05 i use jdk1.5.0_21 - same way to install

    ---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------

    btw. i think in .profile u need to change all /usr/java/jdk1.6.0_17 to :/usr/java/jdk1.5.x_x

  4. #4
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by fgru View Post
    i have problem with jdk1.5.0_05 i use jdk1.5.0_21 - same way to install

    ---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------

    btw. i think in .profile u need to change all /usr/java/jdk1.6.0_17 to :/usr/java/jdk1.5.x_x
    Im pretty sure you do not touch anything else. pwAdmin runs off the jdk1.5 but the rest of your server needs jdk1.6 to run. Changing anything else will screw up your server.

    You only need to change the last line in your .profile to the jdk1.5

  5. #5
    RaGEZONER fgru is offline
    MemberRank
    Sep 2009 Join Date
    germanyLocation
    1,510Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by hrace009 View Post
    you can use jdk-1_5_0_21, it's not a problem as long it still jdk-1_5_0_XXXXXXXX

    download
    jdk-1_5_0_21-linux-i586.bin from ronny1982
    jdk-1_5_0_05-linux-i586.bin from Romulan
    jdk-1_5_0_21-linux-i586.bin from official JAVA thanks to Vision@Net to find it for me and help me on it

    how to make it worked support with XML mode at pwAdmin?
    put your jdk-1_5_0_21-linux-i586.bin to /usr/java/ with winSCP. and leave jdk-1_6_0_17 directory in there and don't ever touch it or you will be dieeeeee

    chmod jdk-1_5_0_21-linux-i586.bin from 644 to 755, or for simple way, at winSCP right click jdk-1_5_0_21-linux-i586.bin and chose properties, find word Octal change those number to 755

    now at your console

    type: hrace009@server07:#./usr/java/jdk-1_5_0_21-linux-i586.bin

    just hit spacebar, and let the installer do it for you.
    if it asking for press ENTER just press it until your keyboard broken just kidding

    now finaly find your .profile and .bashrc

    find words : /usr/java/jdk1.6.0_17/jre, change it to /usr/java/jdk1.5.0_21/jre

    then save it...

    reboot your server....

    enter your user login and password
    user:ronny1982_pretygurlz
    password: romulan_jerk
    just kidding

    then start your tomcat_start.sh, run http://172.18.0.7:8083/pwAdmin

    gentelment start your enggine!!! ( i mean start your server )
    open character database.... chose one character. then press XML MODE and you will see a miracle of pwAdmin

    lol i forget, change those http://172.18.0.7:8083/pwAdmin to http://192.168.0.10:8080/pwAdmin

    and edit your tomcat_start.sh to be like this:

    echo "=== STARTING APACHE TOMCAT ==="
    #export JAVA_HOME=/usr/java/jdk1.5.0_21/jre
    apache-tomcat-5.5.28/bin/startup.sh
    sleep 0
    echo "=========== DONE! ============"
    echo ""

    ive changed all - ive no problem with the server
    Last edited by fgru; 19-04-10 at 09:03 PM.

  6. #6
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    What I posted was my .profile off my server and it works for me so I guess it doesn't really matter which jdk it uses for the other entry.

  7. #7
    Valued Member tawdarky is offline
    MemberRank
    Nov 2008 Join Date
    RomaniaLocation
    125Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by Drakaer View Post
    I take it you are using Romulan's jdk1.5.0_05

    To install this copy the jdk1.5.0_05 to your /usr/java/ folder using WinSCP.

    On your vbox type
    Code:
    cd /usr/java/
    tar xfvz jdk1.5.0_05.tar.gz
    chmod -R 755 /usr/java/jdk1.5.0_05
    Next edit your .bashrc and change the second to last line to this.
    Spoiler:
    # ~/.bashrc: executed by bash(1) for non-login shells.
    # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
    # for examples

    # If not running interactively, don't do anything
    [ -z "$PS1" ] && return

    # don't put duplicate lines in the history. See bash(1) for more options
    #export HISTCONTROL=ignoredups

    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    shopt -s checkwinsize

    # make less more friendly for non-text input files, see lesspipe(1)
    [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

    # set variable identifying the chroot you work in (used in the prompt below)
    if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
    fi

    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
    *)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
    esac

    # Comment in the above and uncomment this below for a color prompt
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

    # If this is an xterm set the title to user@host:dir
    case "$TERM" in
    xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
    *)
    ;;
    esac

    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.

    #if [ -f ~/.bash_aliases ]; then
    # . ~/.bash_aliases
    #fi

    # enable color support of ls and also add handy aliases
    if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
    fi

    # some more ls aliases
    #alias ll='ls -l'
    #alias la='ls -A'
    #alias l='ls -CF'

    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    #if [ -f /etc/bash_completion ]; then
    # . /etc/bash_completion
    #fi

    export JAVA_HOME=/usr/java/jdk1.5.0_05
    export CLASSPATH=/root/apache-tomcat-5.5.28/common/lib/jsp-api.jar:/root/apache-tomcat-5.5.28/common/lib/servlet-api.jar


    Edit your .profile and change the last line to this
    Spoiler:
    # ~/.profile: executed by Bourne-compatible login shells.

    if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    fi

    mesg n
    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_17/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME="root"

    PATH=$PATH:$HOME/bin:/usr/lib/mysql/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME="ROOT"

    export USERNAME BASH_ENV PATH
    export CLASSPATH=.:/usr/java/jdk1.6.17/lib/dt.jar:/usr/java/jdk1.6.0_17/lib/tools.jar:/usr/java/jdk1.6.0_17/lib/mysql-connector-java-5.0.8-bin.jar
    export PATH=$JAVA_HOME/bin:$PATH
    export JAVA_HOME=/usr/java/jdk1.5.0_05


    Next edit the 3rd line in tomcat_start.sh to this
    Spoiler:
    echo ""
    echo "=== APACHE TOMCAT ==="
    export JAVA_HOME=/usr/java/jdk1.5.0_05/jre
    apache-tomcat-5.5.28/bin/startup.sh
    sleep 5
    echo "=== DONE! ==="
    echo ""


    Next edit the 3rd line in tomcat_stop.sh to this
    Spoiler:
    echo ""
    echo "=== APACHE TOMCAT ==="
    export JAVA_HOME=/usr/java/jdk1.5.0_05/jre
    apache-tomcat-5.5.28/bin/shutdown.sh
    sleep 5
    echo "=== DONE! ==="
    echo ""


    Download the lasted pwAdmin from
    http://pwadmin.codeplex.com

    Delete your old pwAdmin and copy the new version across to your /apache-tomcat5.5.28/webapps folder

    edit your /root/apache-tomcat5.5.28/webapps/pwAdmin/.pwadminconf.jsp
    Spoiler:
    <%@page import="java.io.*"%>

    <%
    //-------------------------------------------------------------------------------------------------------------------------
    //------------------------------- SETTINGS --------------------------------------------------------------------------------
    //-------------------------------------------------------------------------------------------------------------------------

    //String iweb_password = "63a9f0ea7bb98050796b649e85481845";
    String iweb_password = "4417086f7ca83a0f21ed7f7ccd29361e";

    String db_host = "localhost";
    String db_port = "3306";
    String db_user = "root";
    String db_password = "hrace009";
    String db_database = "dbo";

    // Type of your Items Database required for mapping ID's to Names
    // Options are my or pwi
    String item_labels = "pwi";

    // Absolute Path to your PW-Server main directory (startscript, stopscript, /gamed)
    String pw_server_path = "/PWServer/";

    // If you have hundreds of characters or heavy web acces through this site
    // It is recommend to turn the realtime character list feature off (false)
    // to prevent server from overload injected by character list generation
    boolean enable_character_list = true;

    String pw_server_name = "Titan";
    String pw_server_exp = "15x";
    String pw_server_sp = "15x";
    String pw_server_drop = "15x";
    String pw_server_coins = "15x";
    String pw_server_description = "+ Your server description here<br>+ 2 x 2.4 GHz, 2048 MB RAM, 100 MBit LAN<br>+ all dungeons open<br>+ tideborn nirvana weapons<br>+ World bosses";

    //-------------------------------------------------------------------------------------------------------------------------
    //----------------------------- END SETTINGS ------------------------------------------------------------------------------
    //-------------------------------------------------------------------------------------------------------------------------

    if(request.getSession().getAttribute("items") == null)
    {
    String[] items = new String[28001];

    try
    {
    BufferedReader br = new BufferedReader(new FileReader(new File(request.getRealPath("/include/items") + "/my.dat")));
    if(item_labels.compareTo("pwi") == 0)
    {
    br = new BufferedReader(new FileReader(new File(request.getRealPath("/include/items") + "/pwi.dat")));
    }
    int count = 0;
    String line;
    while((line = br.readLine()) != null && count < 28001)
    {
    items[count] = line;
    count++;
    }
    br.close();
    }
    catch(Exception e)
    {
    }

    request.getSession().setAttribute("items", items);
    }
    %>


    edit your /root/apache-tomcat5.5.28/webapps/pwAdmin/.pwconf
    Spoiler:
    [GameDBClient]
    type = tcp
    port = 29400
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [DeliveryClient]
    type = tcp
    port = 29100
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [FactionClient]
    type = tcp
    port = 29500
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    so_broadcast = 1
    udp_nodelay = 1

    [UniqueNameClient]
    type = tcp
    port = 29401
    address = 192.168.0.10
    so_sndbuf = 65536
    so_rcvbuf = 65536
    ibuffermax = 1048576
    obuffermax = 1048576
    ;so_broadcast = 1
    tcp_nodelay = 0
    accumulate = 268435456
    isec = 2
    iseckey = baxiyEwt4fuqrysyoylfy7Fxbmhobo
    osec = 2
    oseckey = baxitf91jvrQarnjwbyvlcdxqdvuqp

    [ThreadPool]
    config = (1,2)


    Delete the contents of your /root/apache-tomcat5.5.28/work/ folder

    then hopefully everything should work
    Same thing.pwAdmin won't work.

  8. #8
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by tawdarky View Post
    Same thing.pwAdmin won't work.
    You cant connect to pwAdmin at all?
    Could you connect to pwAdmin with jdk1.6?
    Make sure your ips are correct in .pwconfig

    Post screenshots of your .profile, .bashrc, tomcat_start.sh, .pwconfig and .pwadminconf.jsp

    You can try using the jdk1.5.0_21 and try changing the other line in your .profile that has /usr/java/jdk1.6.0_17

    What I posted earlier should work since we are both using the same vbox guide and setup.

  9. #9
    Valued Member tawdarky is offline
    MemberRank
    Nov 2008 Join Date
    RomaniaLocation
    125Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by Drakaer View Post
    You cant connect to pwAdmin at all?
    Could you connect to pwAdmin with jdk1.6?
    Make sure your ips are correct in .pwconfig

    Post screenshots of your .profile, .bashrc, tomcat_start.sh, .pwconfig and .pwadminconf.jsp

    You can try using the jdk1.5.0_21 and try changing the other line in your .profile that has /usr/java/jdk1.6.0_17

    What I posted earlier should work since we are both using the same vbox guide and setup.
    NVM i did it at last.I needed to get iWeb XML editing to work.And it works perfect now thanks a lot man.

  10. #10
    Apprentice jesse1997 is offline
    MemberRank
    Feb 2008 Join Date
    8Posts

    Re: [Help]Install JAVA on VBOX

    someone here has some pictures how to use the winscp and exctract the bin file into my server?

  11. #11
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    WinSCP is so easy to use you dont really need screenshots.

    Basically download it, install it, run it.
    When you run it you will have a login screen.
    Simply enter your server IP as the host, username as the username (root), and the password as the password (hrace009).
    Then click connect.
    It will then try to connect to your server. If WinSCP fails to connected either your IP, username or password is wrong, you havent started your server yet, or you dont have SSH (secure shell) installed. If you are using hrace's vbox image you shouldnt have the last issue.
    Once you have connected you will see some sort of file explorer.
    In the left pane you will see the files on your computer and on the right pane you will see the server files on the virtual machine.
    Simply use the file manager like any other and drag files across that you want to copy.
    In this case you want to navigate to /usr/java/ Once here drag your java across.
    If you are using a bin file simply type in vbox
    Code:
    /usr/java/jdk1.5.0_XX.bin
    And press enter.
    Then keep pressing enter until it reaches the end of the messages then it will install java.
    If you are using a tarball (.tar.gz) (this is my preference) navigate to /usr/java/ and copy across jdk1.5.0_XX.tar.gz
    type in vbox
    Code:
    cd /usr/java/
    tar xfvz jdk1.5.0_XX.tar.gz
    It will then extract java to /usr/java/
    Now we want to give ourselfs permission to java so type
    Code:
    chmod -R 755 /usr/java/jdk1.5.0_XX
    Then modify the rest of the files as stated above. In winSCP you can right click on a file and choose edit in order to change the java paths.

  12. #12
    Enthusiast caomhainn is offline
    MemberRank
    Sep 2008 Join Date
    CanadaLocation
    38Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by Drakaer View Post
    WinSCP is so easy to use you dont really need screenshots.

    Basically download it, install it, run it.
    When you run it you will have a login screen.
    Simply enter your server IP as the host, username as the username (root), and the password as the password (hrace009).
    Then click connect.
    It will then try to connect to your server. If WinSCP fails to connected either your IP, username or password is wrong, you havent started your server yet, or you dont have SSH (secure shell) installed. If you are using hrace's vbox image you shouldnt have the last issue.
    Once you have connected you will see some sort of file explorer.
    In the left pane you will see the files on your computer and on the right pane you will see the server files on the virtual machine.
    Simply use the file manager like any other and drag files across that you want to copy.
    In this case you want to navigate to /usr/java/ Once here drag your java across.
    If you are using a bin file simply type in vbox
    Code:
    /usr/java/jdk1.5.0_XX.bin
    And press enter.
    Then keep pressing enter until it reaches the end of the messages then it will install java.
    If you are using a tarball (.tar.gz) (this is my preference) navigate to /usr/java/ and copy across jdk1.5.0_XX.tar.gz
    type in vbox
    Code:
    cd /usr/java/
    tar xfvz jdk1.5.0_XX.tar.gz
    It will then extract java to /usr/java/
    Now we want to give ourselfs permission to java so type
    Code:
    chmod -R 755 /usr/java/jdk1.5.0_XX
    Then modify the rest of the files as stated above. In winSCP you can right click on a file and choose edit in order to change the java paths.
    i did everything as u said and now i just can't start server ... any idea how to fix this please?

  13. #13
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    Which Java are you using and by cannot start the server do you mean you cant reach pwAdmin or that the server fails to start?
    Are you using pwAdmin or iweb?

    Can you post the contents of your .profile, .bashrc, tomcat_start.sh files

    Also did you edit the files in pwAdmin to reflect your server settings. You need to modify .pwadminconf.jsp and .pwconf.conf in pwAdmin in order for pwAdmin to connect properly.

  14. #14
    Enthusiast caomhainn is offline
    MemberRank
    Sep 2008 Join Date
    CanadaLocation
    38Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by Drakaer View Post
    Which Java are you using and by cannot start the server do you mean you cant reach pwAdmin or that the server fails to start?
    Are you using pwAdmin or iweb?

    Can you post the contents of your .profile, .bashrc, tomcat_start.sh files

    Also did you edit the files in pwAdmin to reflect your server settings. You need to modify .pwadminconf.jsp and .pwconf.conf in pwAdmin in order for pwAdmin to connect properly.
    My bad, nvm, i replaced the old pwAdmin with the latest 1 and now everything works perfectly :P thank you very much once again :P

    i could access pwAdmin but when i was trying to start server pwAdmin was saying Starting up server failed. But now it works. Thx again.
    Last edited by caomhainn; 05-06-10 at 02:20 AM.

  15. #15
    Apprentice jesse1997 is offline
    MemberRank
    Feb 2008 Join Date
    8Posts

    Re: [Help]Install JAVA on VBOX

    any software for the iweb xml editor?

  16. #16
    RaGEZONER fgru is offline
    MemberRank
    Sep 2009 Join Date
    germanyLocation
    1,510Posts

    Re: [Help]Install JAVA on VBOX

    software ? what do you mean

  17. #17
    Enthusiast nytehawk is offline
    MemberRank
    Aug 2010 Join Date
    34Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by fgru View Post
    says no such file or directory

  18. #18
    3D Illusionist Drakaer is offline
    MemberRank
    Apr 2010 Join Date
    In My Own WorldLocation
    946Posts

    Re: [Help]Install JAVA on VBOX

    Did you copy the file to the right place "/usr/java/"?
    Also make sure you are typing the name of the file correctly depending on what file you downloaded.

  19. #19
    Novice DHAVILAN is offline
    MemberRank
    Sep 2010 Join Date
    4Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by nytehawk View Post
    says no such file or directory
    u need to put ../usr/java its two dots infront not one

  20. #20
    Member dietchse is offline
    MemberRank
    Oct 2010 Join Date
    jkt/indonesiaLocation
    95Posts

    Re: [Help]Install JAVA on VBOX

    Delete the contents of your /root/apache-tomcat5.5.28/work/ folder

    then hopefully everything should work [/QUOTE]

    1st i want to say a realy big Thank to All Ragezoners
    This is my first post, thanks to All ragezoner who has given many instructions,so finally I can build my own server for my own fun

    But i have some problem and realy stuck with this ...

    [spoiler=ServerControl]

    Uploaded with ImageShack.us[/spoiler]

    [spoiler=ServerConfiguration]

    Uploaded with ImageShack.us[/spoiler]

    [spoiler=Character]

    Uploaded with ImageShack.us[/spoiler]

    Pliss Someone How to Fix this or give me some clue...

    Sory For my Bad English im from Indonesia ,I use Translate

  21. #21
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: [Help]Install JAVA on VBOX


  22. #22
    Enthusiast FhadheL is offline
    MemberRank
    Mar 2011 Join Date
    IndonesiaLocation
    44Posts

    Re: [Help]Install JAVA on VBOX

    Quote Originally Posted by fgru View Post
    you can use jdk-1_5_0_21, it's not a problem as long it still jdk-1_5_0_XXXXXXXX

    download
    jdk-1_5_0_21-linux-i586.bin from ronny1982
    jdk-1_5_0_05-linux-i586.bin from Romulan
    jdk-1_5_0_21-linux-i586.bin from official JAVA thanks to Vision@Net to find it for me and help me on it

    how to make it worked support with XML mode at pwAdmin?
    put your jdk-1_5_0_21-linux-i586.bin to /usr/java/ with winSCP. and leave jdk-1_6_0_17 directory in there and don't ever touch it or you will be dieeeeee

    chmod jdk-1_5_0_21-linux-i586.bin from 644 to 755, or for simple way, at winSCP right click jdk-1_5_0_21-linux-i586.bin and chose properties, find word Octal change those number to 755

    now at your console

    type: hrace009@server07:#./usr/java/jdk-1_...linux-i586.bin

    just hit spacebar, and let the installer do it for you.
    if it asking for press ENTER just press it until your keyboard broken just kidding

    now finaly find your .profile and .bashrc

    find words : /usr/java/jdk1.6.0_17/jre, change it to /usr/java/jdk1.5.0_21/jre

    then save it...

    reboot your server....

    enter your user login and password
    user:ronny1982_pretygurlz
    password: romulan_jerk
    just kidding

    then start your tomcat_start.sh, run http://172.18.0.7:8083/pwAdmin

    gentelment start your enggine!!! ( i mean start your server )
    open character database.... chose one character. then press XML MODE and you will see a miracle of pwAdmin

    lol i forget, change those http://172.18.0.7:8083/pwAdmin to http://192.168.0.10:8080/pwAdmin

    and edit your tomcat_start.sh to be like this:

    echo "=== STARTING APACHE TOMCAT ==="
    #export JAVA_HOME=/usr/java/jdk1.5.0_21/jre
    apache-tomcat-5.5.28/bin/startup.sh
    sleep 0
    echo "=========== DONE! ============"
    echo ""
    why when I change ".profile; .bashrc; tomcat_start.sh; tomcat_stop.sh" the file size in server change to 0 after i restart the vBox, something wrong ?



Advertisement