facebook

JSP problems in MyEclipse under Ubuntu Linux 6.10

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #268551 Reply

    afuie
    Member

    I am a Chinese starter in J2EE,When I open a JSP in MyEclipse under Unbuntu 6.10,it says:

    VIsual Editor Disabled
    The Linux WYSIWYG design panel is still under development.To access an experimental version of this design panel restart with the commmandline argument -Dlinux.experimental=true

    I have do as Riyad said in http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-16297-highlight-dlinux+experimental.html,
    I added
    export MOZILLA_FIVE_HOME=””
    /home/xiaoquan/Java/eclipse/eclipse -vm /usr/lib/jvm/java-6-sun/bin/java -vmargs -Dlinux.experimental=true
    to /etc/profile

    Then I restarted my PC,after I log in, the Eclipse run,then I couldn’t do other thins but use Eclipse through the JSP problem has been solved, what can I do if I want to use not MyEclipse normally only,but Ubuntu?

    Thanks
    Best wishes!

    #268584

    Riyad Kalla
    Member

    afuie,
    You aren’t suppose to add those to your /etc/profile file, but instead to a script you use to launch MyEclipse. So something like this:

    create file: /home/xiaoquan/myeclipse.sh

    
    export MOZILLA_FIVE_HOME=""
    /home/xiaoquan/Java/eclipse/eclipse -vm /usr/lib/jvm/java-6-sun/bin/java -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M -Dlinux.experimental=true
    

    then be sure to:

    
    chmod u+x /home/xiaoquan/myeclipse.sh
    
    #268601

    dgavenda
    Member

    I have seen this problem with Ubuntu and MyEclipse and the workaround does NOT work. Disclaimer: I come from the Netbeans camp so I am relatively new to Eclipse and MyEclipse.

    Here is my script that does not allow the visual designer:

    #!/bin/bash

    PATH=$PATH:./
    ECLIPSE_HOME=”/usr/lib/eclipse”
    MYECLIPSE_HOME=”/home/dgavenda/code/MyEclipse_5.1.1GA”

    # Uncomment following line to enable Visual HTML Designer and JavaScrip Debugger
    export MOZILLA_FIVE_HOME=””

    cd $ECLIPSE_HOME
    echo “mozilla_five_home=$MOZILLA_FIVE_HOME”
    eclipse -product com.genuitec.myeclipse.product.ide -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=256M -Dlinux.experimental=true -Dosgi.splashLocation=”/home/dgavenda/code/MyEclipse_5.1.1GA/eclipse/MyEclipseSplash.bmp”

    Any thoughts?

    #268603

    Riyad Kalla
    Member

    Can you be more specific what you mean by “does NOT work”. Are you still getting the popup telling you how to enable it when you try and open it? Is it crashing? Are you getting an exception?

    #268628

    dgavenda
    Member

    The Visual Designer is not there and I get the msg that states design views are unavailable due to internal browser.

    #268637

    Riyad Kalla
    Member

    I don’t know why that is happening… the trick to getting it to work is using the:

    export MOZILLA_FIVE_HOME=””

    Which you are doing… I’m not sure why it’s still reporting the issue to you. I’ll try and test some things on my end and see if I can reproduce this issue.

    #268644

    dgavenda
    Member

    rkalla,

    In case it matters, I am using a trial version.

    Dan

    #268645

    Riyad Kalla
    Member

    Dan, has the trial expired?

    Also did you install Eclipse or MyEclipse as different users OR are you trying to run it as a different user than it’s installed as? The trial needs you to install and run all under the same account.

    #268646

    dgavenda
    Member

    No…trial is good until 5/5/07.

    I am pretty sure I installed eclipse and myeclipse as the same user. Is there anyway I can check this to ensure this is the case?

    #268650

    Riyad Kalla
    Member

    Just using an

    ls -lFa

    in the terminal should show you the permissions and owners of the files as they were uncompressed as.

    #268652

    dgavenda
    Member

    dgavenda:~/code/MyEclipse_5.1.1GA$ ls -laF
    total 1192
    drwxrwxr-x 5 dgavenda dgavenda 4096 2007-04-09 15:36 ./
    drwxr-xr-x 8 dgavenda dgavenda 4096 2007-04-10 10:59 ../
    drwxrwxr-x 4 dgavenda dgavenda 4096 2007-04-05 15:19 eclipse/
    drwxrwxr-x 2 dgavenda dgavenda 4096 2007-04-05 15:21 MyEclipse 5.1.1 GA/
    -rw-rw-r– 1 dgavenda dgavenda 1158677 2007-04-05 15:23 MyEclipse_5.1.1_GA_InstallLog.log
    -rw-r–r– 1 dgavenda dgavenda 495 2007-04-09 15:32 MyEclipse_experimental_no_internal_web_browser.sh
    -rw-r–r– 1 dgavenda dgavenda 495 2007-04-09 15:32 MyEclipse_experimental_no_internal_web_browser.sh~
    -rwxr-xr-x 1 dgavenda dgavenda 495 2007-04-09 09:26 MyEclipse_experimental.sh*
    -rw-r–r– 1 dgavenda dgavenda 469 2007-04-09 09:26 MyEclipse_experimental.sh~
    -rwxrwxr-x 1 dgavenda dgavenda 469 2007-04-05 15:20 MyEclipse.sh*
    -rw-rw-r– 1 dgavenda dgavenda 481 2007-04-05 15:20 MyEclipse.sh.backup
    drwxrwxr-x 2 dgavenda dgavenda 4096 2007-04-05 15:23 MyEclipse-UninstallerData/
    -rwxr-xr-x 1 dgavenda dgavenda 539 2007-04-09 15:36 startup_script_exp_no_wb.sh*
    -rw-r–r– 1 dgavenda dgavenda 449 2007-04-09 15:35 startup_script_exp_no_wb.sh~
    -rwxr-xr-x 1 dgavenda dgavenda 495 2007-04-09 14:58 startup_script_exp.sh*

    dgavenda:/opt/apache-tomcat-6.0.10/webapps/dan$ ls -laF `which eclipse`
    -rwxr-xr-x 1 root root 4918 2007-04-04 07:23 /usr/bin/eclipse*

    #268656

    Riyad Kalla
    Member

    Interesting…

    it looks like you have ME and Eclipse installed under ~/code/MyEclipse_5.1.1GA, as your user name, which is fine.

    But then it looks like “eclipse” in your path is executing /usr/bin/eclipse, and in your script you just use the executable ‘eclipse’ and not the fully qulified path to the one installed under your ~/code/MyEclipse_5.1.1GA/eclipse dir… what does /usr/bin/eclipse point at?

    #268657

    dgavenda
    Member

    Eclipse is not installed in ~/code/MyEclipse…/ Just ME.

    dgavenda:/usr/bin$ ls -la eclipse
    -rwxr-xr-x 1 root root 4918 2007-04-04 07:23 eclipse
    dgavenda:/usr/bin$ file eclipse
    eclipse: Bourne-Again shell script text executable

    Hmmmm….this is starting to get frustrating. In the /usr/bin/eclipse script there is some lines:

    # Set path for the Mozilla SWT binding
    MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME%*/}
    if [ -n “$MOZILLA_FIVE_HOME” -a -e $MOZILLA_FIVE_HOME/libgtkembedmoz.so ]; then
    :
    elif [ -e /usr/lib/firefox/libgtkembedmoz.so ]; then
    export MOZILLA_FIVE_HOME=/usr/lib/firefox
    elif [ -e /usr/lib/firefox/libgtkembedmoz.so ]; then
    export MOZILLA_FIVE_HOME=/usr/lib/firefox
    elif [ -e /usr/lib/xulrunner/libgtkembedmoz.so ]; then
    export MOZILLA_FIVE_HOME=/usr/lib/firefox
    elif [ -e /usr/lib/mozilla-firefox/libgtkembedmoz.so ]; then
    export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
    elif [ -e /usr/lib/mozilla/libgtkembedmoz.so ]; then
    export MOZILLA_FIVE_HOME=/usr/lib/mozilla
    else
    $DIALOG \
    –warning \
    –title=”Integrated browser support not working” \
    –text=”This Eclipse build doesn’t have support for the integrated browser.”
    [ $? -eq 0 ] || exit 1
    fi

    I commented them out hoping this would work….got a seg fault. So, that is not it. Also, modified my start-script:
    dgavenda:~/code/MyEclipse_5.1.1GA$ cat startup_script_exp_no_wb.sh
    #!/bin/bash

    PATH=$PATH:./
    ECLIPSE_HOME=”/usr/lib/eclipse”
    MYECLIPSE_HOME=”/home/dgavenda/code/MyEclipse_5.1.1GA”

    # Uncomment following line to enable Visual HTML Designer and JavaScrip Debugger
    export MOZILLA_FIVE_HOME=””

    cd $ECLIPSE_HOME
    echo “mozilla_five_home=$MOZILLA_FIVE_HOME”
    eclipse -product com.genuitec.myeclipse.product.ide -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=256M -Dlinux.experimental=true -Dosgi.splashLocation=”/home/dgavenda/code/MyEclipse_5.1.1GA/eclipse/MyEclipseSplash.bmp”

    echo “AFTER – mozilla_five_home=$MOZILLA_FIVE_HOME”

    Here’s the output:

    dgavenda:~/code/MyEclipse_5.1.1GA$ ./startup_script_exp_no_wb.sh
    mozilla_five_home=
    using specified vm: /usr/lib/jvm/java-1.5.0-sun/
    AFTER – mozilla_five_home=

    Any ideas?

    #268660

    Riyad Kalla
    Member

    I think if we keep trying to make this system-wide install of Eclipse work with your personal install of MyEclipse, we are going to go nuts.

    Just for trial and sanity sake, please download Eclipse 3.2.2 SDK from eclipse.org, unzip it into your home dir, say ~/code/eclipse-3.2.2, and then fire it up, go to Help > Software Updates > Manage Configuration, then add a new extension and point it at your MyEclipse dir under your home dir, and restart. Then open your existing workspace and keep working.

    From there you can create a new script in your new eclipse dir that sets the MOZILLA_FIVE_HOME. Let’s just get this thing working first, keep all our hair, and figure out the other issues later 🙂

    #268684

    dgavenda
    Member

    Ok…I have done everything you suggested.

    1) d/l eclipse 3.2.2 tarball and install ~/code/eclipse

    2) ran it and created the ME extension

    3) created the script to set MOZILLA_FIVE_HOME to “”
    Here’s the script:

    export MOZILLA_FIVE_HOME=””
    echo “BEFORE – mozilla_five_home=$MOZILLA_FIVE_HOME”
    ./eclipse -Dlinux.experimental=true
    echo “AFTER – mozilla_five_home=$MOZILLA_FIVE_HOME”

    Ready for the hair-pulling-out?? It restarted eclipse a couple times and after that I get the dialog with the “use -Dlinux experimental” msg.

    I chg’ed the script to:

    export MOZILLA_FIVE_HOME=””
    ./eclipse -vmargs -Dosgi.splashLocation=”/home/dgavenda/code/MyEclipse_5.1.1GA/eclipse/MyEclipseSplash.bmp” -Dlinux.experimental=true

    And get a seg fault when starting eclipse.

    Thoughts on how we can get this working??

    Dan

Viewing 15 posts - 1 through 15 (of 22 total)
Reply To: JSP problems in MyEclipse under Ubuntu Linux 6.10

You must be logged in to post in the forum log in