- This topic has 21 replies, 3 voices, and was last updated 18 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
afuieMemberI 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=trueI 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/profileThen 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!April 9, 2007 at 11:09 am #268584
Riyad KallaMemberafuie,
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
April 9, 2007 at 3:46 pm #268601
dgavendaMemberI 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?
April 9, 2007 at 4:17 pm #268603
Riyad KallaMemberCan 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?
April 10, 2007 at 7:28 am #268628
dgavendaMemberThe Visual Designer is not there and I get the msg that states design views are unavailable due to internal browser.
April 10, 2007 at 10:00 am #268637
Riyad KallaMemberI 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.
April 10, 2007 at 10:51 am #268644
dgavendaMemberrkalla,
In case it matters, I am using a trial version.
Dan
April 10, 2007 at 10:56 am #268645
Riyad KallaMemberDan, 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.
April 10, 2007 at 11:02 am #268646
dgavendaMemberNo…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?
April 10, 2007 at 1:01 pm #268650
Riyad KallaMemberJust using an
ls -lFa
in the terminal should show you the permissions and owners of the files as they were uncompressed as.
April 10, 2007 at 1:14 pm #268652
dgavendaMemberdgavenda:~/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*April 10, 2007 at 1:52 pm #268656
Riyad KallaMemberInteresting…
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?
April 10, 2007 at 2:07 pm #268657
dgavendaMemberEclipse 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 executableHmmmm….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
fiI 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/bashPATH=$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?
April 10, 2007 at 3:27 pm #268660
Riyad KallaMemberI 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 🙂
April 11, 2007 at 8:28 am #268684
dgavendaMemberOk…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=trueAnd get a seg fault when starting eclipse.
Thoughts on how we can get this working??
Dan
-
AuthorPosts